Author Archives: admin

ontap cli administration course outline

intro

Posted in Uncategorized | Leave a comment

ansible install on raspberry pi

apt-get install software-properties-common apt-add-repository ppa:ansible/ansible apt-get update apt-get install ansible now change the hosts file in /etc/ansible make sure you have publickey login on the hosts e.g. run: ssh-copy-id root@host1 then check with ansible: ansible -m ping all some adhoc … Continue reading

Posted in Uncategorized | Leave a comment

ansible play-book create a user

– hosts: linvms user: root vars: #password is ‘yourpass’ password: $1$xyz$X5pC0RUqKE5mOgXcDDgFk0 tasks: – user: name=peter password={{password}}

Posted in Uncategorized | Leave a comment

ansible ad-hoc

$ ansible atlanta -m copy -a “src=/etc/hosts dest=/tmp/hosts” $ ansible webservers -m file -a “dest=/srv/foo/a.txt mode=600” $ ansible webservers -m file -a “dest=/srv/foo/b.txt mode=600 owner=linuser group=linuser” $ ansible webservers -m file -a “dest=/path/to/c mode=755 owner=linuser group=linuser state=directory” $ ansible webservers … Continue reading

Posted in Uncategorized | Leave a comment

ansible-playbook example

$ cat p1.yml — – hosts: linvms vars: http_port: 80 max_clients: 200 remote_user: root tasks: – name: ensure apache is at the latest version yum: name: httpd state: latest – name: write the apache config file template: src: /etc/httpd/conf/httpd.conf dest: … Continue reading

Posted in Uncategorized | Leave a comment

centos vlan setup

# cat ifcfg-ens224 TYPE=Ethernet BOOTPROTO=none NAME=ens224 UUID=60edd252-25eb-4396-baca-f7b09a3bec5e DEVICE=ens224 ONBOOT=yes # cat ifcfg-ens224.2 TYPE=Vlan BOOTPROTO=none NAME=ens224.2 UUID=60edd252-25eb-4396-baca-f7b09a3bec5e DEVICE=ens224.2 IPADDR=192.168.2.11 PREFIX=24 ONBOOT=yes VLAN=yes

Posted in Uncategorized | Leave a comment

rsa quick overview and example

rsa quick overview and example

Posted in Uncategorized | Leave a comment

rsa

Alice_Bob_Eve

Posted in Uncategorized | Leave a comment

diffie hellman

diffie_hellman

Posted in Uncategorized | Leave a comment

ontap 9.3 licenses sim

CLUSTERED SIMULATE ONTAP LICENSES +++++++++++++++++++++++++++++++++ These are the licenses that you use with the clustered Data ONTAP version of Simulate ONTAP to enable Data ONTAP features. There are four groups of licenses in this file: – cluster base license – … Continue reading

Posted in Uncategorized | Leave a comment

Protected: docs

There is no excerpt because this is a protected post.

Posted in Uncategorized | Enter your password to view comments.

vsim_makedisks

vsim_makedisks

Posted in Uncategorized | Leave a comment

linux_module_4

Module4

Posted in Uncategorized | Leave a comment

linux_network_exercises

This page contains some PDFs with linux network exercises. 1. ssh autologin 2. ip binding Centos 7 3. linux nfs 4. cron 5. systemctl

Posted in Uncategorized | Leave a comment

genfile

#!/bin/bash if [ $# -ne 5 ] then echo “usage: $0 <start_count> <end_count> <device_to_read_from><output_filename>” echo “example: $0 1 500 /dev/sda 4096 run1” exit fi skip=0 for i in `seq $1 $2` do dd if=$3 of=${5}.$i count=1 bs=$4 skip=$skip ((skip+=1)) done

Posted in Uncategorized | Leave a comment

Linux_scripts splitfile

splitfile

Posted in Uncategorized | Leave a comment

TIME_ex

TIME_ex

Posted in Uncategorized | Leave a comment

firewalld_ex_def

firewalld_ex

Posted in Uncategorized | Leave a comment

def_exam_prep

def_exam_prep

Posted in Uncategorized | Leave a comment

linux del and undel exercise

del script #!/usr/bin/bash TRASH=/trash DB=/trash/db touch /trash/db mkdir ${TRASH} 2> /dev/null if (($# == 0)) then echo “usage: del ” fi FILE=`basename $1` DIR=`dirname $1` DIR=`echo $DIR|sed ‘s/\//_/g’` SUFFIX=`date +%Y_%m_%d_%H_%M_%S` FILE=${FILE}_${SUFFIX}_$DIR ID=`wc -l ${DB}|awk ‘{print $1}’` echo $ID ((ID+=1)) echo … Continue reading

Posted in Uncategorized | Leave a comment

NFS_autofs_ex

NFS_autofs

Posted in Uncategorized | Leave a comment

linux LVM_ex

LVM_ex

Posted in Uncategorized | Leave a comment

NFS_ex

NFS client and server

Posted in Uncategorized | Leave a comment

Linux exercises

NFS client and server LVM ip binding systemd SElinux nfs autofs working in the shell firewalld date and ntp scripts splitfile Cron

Posted in Uncategorized | Leave a comment

CERT_GUIDE_EX2

CERT_GUIDE_EX2_PDF

Posted in Uncategorized | Leave a comment

linux binding_ex

exmil

Posted in Uncategorized | Leave a comment

linux exercises cert-guide

CERT_GUIDE_EX_PDF

Posted in Uncategorized | Leave a comment

linux systemd_ex

create a service file. cp /lib/systemd/system/crond.service \ /lib/systemd/system/sleep.service edit the service file. vi /lib/systemd/system/sleep.service [Unit] Description=sleep service [Service] ExecStart=/usr/sbin/sleep.sh KillMode=process [Install] WantedBy=multi-user.target create a script to be executed. vi /usr/sbin/sleep.sh #!/usr/bin/bash sleep 1000 make the script executable chmod +x /usr/sbin/sleep.sh … Continue reading

Posted in Uncategorized | Leave a comment

linux apache virtual hosts example

Create the directory structure mkdir -p /var/www/html/www.vhost1.com mkdir -p /var/www/html/www.vhost2.com Create test web pages for each virtual host echo “vhost1” > /var/www/html/www.vhost1.com/index.html echo “vhost1” > /var/www/html/www.vhost1.com/index.html echo “vhost2” > /var/www/html/www.vhost2.com/index.html Set up ownership and permissions chown -R apache:apache /var/www/html/www.vhost1.com chown … Continue reading

Posted in Uncategorized | Leave a comment

netapp aggr efficiency

To view compaction, dedupe and compression results. cl1::*> aggr show-efficiency -aggregate n2_aggr1 Name of the Aggregate: n2_aggr1 Node where Aggregate Resides: cl1-02 Logical Size Used by Volumes, Clones, Snapshot Copies in the Aggregate: 118.8MB Total Physical Used: 126.5MB Total Storage … Continue reading

Posted in Uncategorized | Leave a comment

Netapp add snapmirror relationship with altavault nfs share

cl1::> snapmirror create -source-path svm1:vol1 -destination-path 192.168.4.244:/share/rfs/nfs -type xdp Operation succeeded: snapmirror create for the relationship with destination “192.168.4.244:/share/rfs/nfs”.

Posted in Uncategorized | Leave a comment

docker service swarm web example

Docker service swarm web 4 nodes 6 containers PDF Docker service swarm web 4 nodes 6 containers PDF

Posted in Uncategorized | Leave a comment

cdot snapmirror exercise with commands

1. Create a new SVM (SVMcl1) on cluster1 and add a LIF to the SVM: 192.168.0.200 vserver create -vserver SVMcl1 -rootvolume root -aggregate aggr1_n1 -rootvolume-security-style unix net int create -vserver SVMcl1 -lif lif1 -address 192.168.0.200 -netmask 255.255.255.0 -role data \ … Continue reading

Posted in Uncategorized | Leave a comment

cdot snapmirror exercise without commands

1. Create a new SVM (SVMcl1) on cluster1 and add a LIF to the SVM: 192.168.0.200 2. Add a 500MB volume (cl1data) to the SVM with junction-path: /data 3. Add an export-policy with a rule for the CentOS VM: (192.168.0.10) … Continue reading

Posted in Uncategorized | Leave a comment

redhat clustering

Redhat Clustering

Posted in Uncategorized | Leave a comment

cdot autosupport test

cluster1::> system node autosupport invoke -type test -node node1

Posted in Uncategorized | Leave a comment

openstack compute node on centos7

yum install -y https://rdo.fedorapeople.org/rdo-release.rpm

Posted in Uncategorized | Leave a comment

openstack storagebackends

storage backends

Posted in Uncategorized | Leave a comment

openstack lvm and cinder

If you do not specify a volume group, cinder will create his own volume group called cinder-volumes and use loopback devices for physical volumes. If you do create and specify a volume group, you should specify the volume group to … Continue reading

Posted in Uncategorized | Leave a comment

CDOT 8.3 statistics catalog example

statistics catalog instance show -object lif statistics catalog instance show -object volume statistics catalog counter show -object lif statistics catalog counter show -object volume statistics start -object lif -counter recv_data statistics stop statistics show -object lif

Posted in Uncategorized | Leave a comment

ceph

ceph

Posted in Uncategorized | Leave a comment

solaris 11 exercise zones (1)

1. The zones will have /software as root. # df -h | grep software software 20G 33K 16G 1% /software 2. Create a vnic for a new zone. # dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up … Continue reading

Posted in solaris | Leave a comment

clustermode SFO

In CMode, when a failover or takeover has taken place, the root-aggregate of the partnernode is owned by the surviving partner. How to get to the rootvolume of the partner’s root-aggregate? 1. Log in to she systemshell. 2. Run the … Continue reading

Posted in netapp | Leave a comment

netapp hwassist

There are specific Data ONTAP commands for configuring the hardware-assisted takeover feature. If you want to… Use this command… Disable or enable hardware-assisted takeover storage failover modify hwassist Set the partner address storage failover modify hwassist-partner-ip Set the partner port … Continue reading

Posted in netapp | Leave a comment

netapp adding disks

7-mode and cmode

Posted in netapp | Leave a comment

linux allocate memory

#!/bin/bash echo “Provide sleep time in the form of NUMBER[SUFFIX]” echo ” SUFFIX may be ‘s’ for seconds (default), ‘m’ for minutes,” echo ” ‘h’ for hours, or ‘d’ for days.” read -p “> ” delay echo “begin allocating memory…” … Continue reading

Posted in linux | Leave a comment

solaris 11 integrated load balancer example

ilb example

Posted in solaris | Leave a comment

solaris 11 lacp dlmp link-aggregate

1. create an aggregate (aggr0) over net1 net2 and net3 ( in vbox Adapter1=net3 Adapter2=net0 Adapter3=net1 Adapter4=net2 ) dladm create-aggr -l net1 -l net2 -l net3 aggr0 dladm modify-aggr -m trunk aggr0 (trunk is the default though) dladm show-aggr -L … Continue reading

Posted in solaris | Leave a comment

solaris11 distro_const

distribution constructor pfexec pkg install SUNWdistro-const mkdir -p /ips/manifests cp /usr/share/distro_const/dc_text_x86.xml /ips/manifests/ distro_const build /ips/manifests/dc_text_x86.xml

Posted in Uncategorized | Leave a comment

solaris 11 exercise pkg search and install

To search for a package in a particular publisher: # pkg search -s http://192.168.4.150 (output skipped) To install a package from a particular publisher: # pkg install -g http://192.168.4.150 (output skipped)

Posted in solaris | Leave a comment

solaris script to create and delete a zone

1. create a filesystem and install a zone then snapshot the filesystem and use it for cloning at zonecreation zonecfg -z basezone create set zonepath=/zonepool/basezone exit zoneadm -z base install zfs snapshot zonepool/basezone@base script: zcreate ========================================== #!/usr/bin/bash if test $# … Continue reading

Posted in solaris | Leave a comment

testje

ssh hello

Posted in Uncategorized | Leave a comment

esxi mac address

vim-cmd hostsvc/net/info | grep “mac =” mac = (string) [ mac = “00:1b:78:59:eb:52”, mac = “00:1b:78:59:eb:53”, mac = “80:ee:73:63:4e:1c”, mac = “00:1b:78:59:eb:52”,

Posted in Virtualization | Leave a comment

solaris11 network stack

solaris 11 network stack

Posted in solaris | Leave a comment

solaris11 networking getting started

oracle html Oracle New Features of Oracle Solaris 11 Network Configuration Manual and Automatic Networking Modes Manual Network Configuration Name Service Configuration Using SMF Setting the Host Name Changes to /etc/hosts Automatic Network Configuration Using Profiles Network Profiles Creating a … Continue reading

Posted in solaris | Leave a comment

solaris11 ai_installer non_global zones

installing non-global zones with ai

Posted in solaris, Uncategorized | Leave a comment

solaris 11 exercise zones (2) resource control

Situation: global zone, zone1 and zone2. First bring all processes under FSS control dispadmin -d FSS this will set the default scheduling to FSS at reboot. file: /etc/dispadmin.conf To set up a running system. priocntl -s -c FSS -i all … Continue reading

Posted in solaris | Leave a comment

distro_const example

distro_const

Posted in solaris | Leave a comment

solaris 11 exercise zones (3) clone zone

1. create webzone-1 root@global:~# zonecfg -z webzone-1 “create ; set zonepath=/zones/webzone-1” 2. install webzone-1 root@global:~# zoneadm -z webzone-1 install 3. login and configure webzone-1 root@global:~# zoneadm -z webzone-1 boot; zlogin -C webzone-1 4. create template-profile in webzone-1 root@global:~# zlogin webzone-1 … Continue reading

Posted in solaris | Leave a comment

solaris 11 exercise smf (3) system identity

# svccfg –s svc:/system/identity:node setprop config/nodename = “myhost” # svcadm refresh svc:/system/identity:node # svcadm restart svc:/system/identity:node Configuring console keyboard layout: # svccfg –s keymap:default setprop keymap/layout = UK-English # svcadm refresh keymap # svcadm restart keymap Configuring system locale: # … Continue reading

Posted in Uncategorized | Leave a comment

solaris11 create multiple repositoryservers

original url: omnios.omniti Creating Repos # Why? Because it’s easy. It’s also a good way to separate packages with different dispositions, such as core OS vs. site-specific. First, create the repo. Any directory will do, but it’s usually a good … Continue reading

Posted in solaris | Leave a comment

linux install vmwaretools (CentOS)

create /etc/yum.repos.d/vmware.repo with the following content: [vmware-tools] name=VMware Tools #baseurl=http://packages.vmware.com/tools/esx/5.1latest/rhel5/i386 #baseurl=http://packages.vmware.com/tools/esx/5.1latest/rhel5/x86_64 #baseurl=http://packages.vmware.com/tools/esx/4.0latest/rhel6/x86_64 #baseurl=http://packages.vmware.com/tools/esx/4.0latest/rhel5/i686 baseurl=http://packages.vmware.com/tools/esx/4.0latest/rhel6/i686 enabled=1 gpgcheck=1 gpgkey=http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub run the following command: yum install vmware-tools-esx-nox

Posted in linux, Virtualization | Leave a comment

solaris 11 zones (4) delegation example

Delegate zonemanagement of zone3 to user peter. # zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / solaris shared 2 zone3 running /rpool/zones/zone3 solaris excl # zonecfg -z zone3 zonecfg:zone3> add admin zonecfg:zone3:admin> set user=peter zonecfg:zone3:admin> … Continue reading

Posted in solaris | Leave a comment

solaris 11 exercise zfs (2) and intentlog (zil)

sync=standard This is the default option. Synchronous file system transactions (fsync, O_DSYNC, O_SYNC, etc) are written out (to the intent log) and then secondly all devices written are flushed to ensure the data is stable (not cached by device controllers). … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 exercise zfs (6) encryption

example with key zfs create -o encryption=on rpool/cryptfs Enter passphrase for ‘rpool/cryptfs’: Enter again: zfs snapshot rpool/cryptfs@snap1 zfs clone rpool/cryptfs@snap1 rpool/cryptclone Enter passphrase for ‘rpool/cryptclone’: Enter again: example with keyfile # pktool genkey keystore=pkcs11 keytype=aes keylen=128 label=mykey Enter PIN for … Continue reading

Posted in Uncategorized | Leave a comment

solaris11 flowadm (1)

Simple flowadm example. server1 – 192.168.4.142, nic-name – net0 client1 – 192.168.4.161 client2 – 192.168.4.6 On server1 that runs solaris 11 run the following commands: # flowadm add-flow -l net0 -a remote_ip=192.168.4.161 ssh-1 # flowadm add-flow -l net0 -a remote_ip=192.168.4.6 … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 crossbow

crossbow

Posted in Uncategorized | Leave a comment

solaris11 integrated load balancer (3)

ILB Operation Modes ILB supports stateless Direct Server Return (DSR) and Network Address Translator (NAT) modes of operation for IPv4 and IPv6, in single-legged and dual-legged topologies. Stateless DSR topology NAT mode (full-NAT and half-NAT) topology Direct Server Return Topology … Continue reading

Posted in solaris | Leave a comment

solaris11 integrated load balancer (2)

Configuring ILB This section describes the steps for setting up ILB to use a half-NAT topology to load balance traffic among two servers. See the NAT topology implementation in ILB Operation Modes. How to Configure ILB Assume a role that … Continue reading

Posted in Uncategorized | Leave a comment

solaris11 integrated load balancer (1)

How to Enable ILB Before You Begin Make sure that the system’s role-based access control (RBAC) attribute files have the following entries. If the entries are not present, add them manually. File name: /etc/security/auth_attr solaris.network.ilb.config:::Network ILB Configuration::help=NetworkILBconf.html solaris.network.ilb.enable:::Network ILB Enable … Continue reading

Posted in Uncategorized | Leave a comment

solaris11 zone delegation

Delegation of Solaris Zone Administration By darrenm on Jul 04, 2012 In Solaris 11 ‘Zone Delegation’ is a built in feature. The Zones system now uses finegrained RBAC authorisations to allow delegation of management of distinct zones, rather than all … Continue reading

Posted in Uncategorized | Leave a comment

solaris11 linkprop

From the global zone enable link protection on vnic0: We can set different modes: ip-nospoof, dhcp-nospoof, mac-nospoof and restricted. ip-nospoof: Any outgoing IP, ARP, or NDP packet must have an address field that matches either a DHCP-configured IP address or … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 FMA event classes

(svccfg setnotify -g mailto:) For convenience, the tags problem- {diagnosed,updated,repaired,resolved} describe the lifecycle of a problem diagnosed by the FMA subsystem – from initial diagnosis to interim updates and finally problem closure. These tags are aliases for underlying FMA protocol … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 svcadm listcust -M

Deleting a service from the SMF repository. 1. svcadm disable newsvc 2. svccfg delete newsvc (this will not really delete the service but it ‘MASKS’ it. 3. svcs newsvc (no instances will be found) 4. svccfg listcust -M | grep … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 zones and more

Best Way to Update Software in Zones Part III of Software Management Best Practices for Oracle Solaris 11 Express By Ginny Henningsen, August 2011 Part I – Best Way to Update Software with IPS Part II – Best Way to … Continue reading

Posted in Uncategorized | 1 Comment

solaris 11 pkg build-branch

Oracle Solaris Package Versioning Package Identifier: FMRI described the pkg.fmri attribute and the different components of the version field, including how the version field can be used to support different models of software development. This section explains how the Oracle … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 fat packages

Setting up Solaris IPS servers for multiple architecture (fat) packages Monday, August 6, 2012 This is part 2 of a three-part series on building and packaging matplotlib as a multi-architecture, Solaris IPS package. Compiling matplotlib 1.1.0 for Solaris on SPARC … Continue reading

Posted in Uncategorized | Leave a comment

solaris – cpu strands

http://sparcv9.blogspot.nl/2010/02/thread-performance-on-modern-sparc.html

Posted in oracle, solaris | Leave a comment

vmware vCenter Server appliance 5480

After deploying OVF from vSphere client, you cannot use vSphere client to connect to vCenterServer. You will get an “unknown connection error”. Use a browser to connect to port 5480 on the appliance to configure the embedded db, sso, and … Continue reading

Posted in Virtualization | Leave a comment

solaris 11 vncserver

Enable XDMCP connections by editing the /etc/gdm/custom.conf file. [xdmcp] Enable=true Restart the GDM service. # svcadm restart gdm Enable the Xvnc inetd service. # inetadm -e xvnc-inetd Connect from another machine and verify that you see the login screen and … Continue reading

Posted in solaris | Leave a comment

solaris 11 exercise ips (2) local repository

# zfs create rpool/export/repoSolaris11 # zfs set atime=off rpool/export/repoSolaris11 # pkgrepo create /export/repoSolaris11 # pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /export/repoSolaris11 ‘*’ Processing packages for publisher solaris … Retrieving and evaluating 4401 package(s)… Creating Plan \   # svccfg -s application/pkg/server setprop … Continue reading

Posted in solaris | Leave a comment

clustermode add private network

The existing cluster has two dedicated network ports. cl1-02::> net int show (network interface show) Logical Status Network Current Current Is Vserver Interface Admin/Oper Address/Mask Node Port Home ———– ———- ———- —————— ————- ——- —- cl1-02 clus1 up/- 169.254.229.226/16 cl1-02 … Continue reading

Posted in netapp | Leave a comment

Solaris privileges in perspective (2)

System Security in SolarisTM 10: Privileges and Zones in Perspective — Part 2 Peter van der Weerd In part one, I discussed the improvements made to system security by using privileges as opposed to using the su-command. It showed that priviliges can … Continue reading

Posted in Uncategorized | Leave a comment

Solaris privileges in perspective (1)

System Security in SolarisTM 10: Privileges and Zones in Perspective — Part 1 Peter van der Weerd In Unix distributions through the ages, security has been based on two entities: IDs and file permissions. Every file has a UID (user … Continue reading

Posted in Uncategorized | Leave a comment

solaris suncluster quorum issue

Sun Cluster 3.x Quorum Issue Peter van der Weerd Clustering software usually consists of a collection of scripts and binaries that unconfigure an interface, bring down an application, unmount some file systems, give away a group of disks, and reverse … Continue reading

Posted in Uncategorized | Leave a comment

clustermode 8.2 licenses

CLUSTERED SIMULATE ONTAP LICENSES +++++++++++++++++++++++++++++++++ These are the licenses that you use with the clustered Data ONTAP version of Simulate ONTAP to enable Data ONTAP features. There are four groups of licenses in this file: – cluster base license – … Continue reading

Posted in Uncategorized | Leave a comment

opensuse grub2

grub2

Posted in Uncategorized | Leave a comment

linux grub2

grub2

Posted in linux | Leave a comment

clustermode 8.2 snapmirror vault

Source Volume and Destination Volume should have the same Language! Source Volume is RW type. Destination Volume is DP type.   1. create a schedule (to be used for the updates of the vault relationship) job schedule cron create -name … Continue reading

Posted in netapp | Leave a comment

clustermode delegate volume create to vserver user

1. security login create -vserver vs1 -username user1 -application ssh -authmethod password -role vsadmin 2. vserver modify -vserver vs1 …. -aggr-list aggr1,… 3. net int show (snipped) vs1 data1 up/up 192.168.4.103/24 cl1-01 e0d false data2 up/up 192.168.4.105/24 cl1-02 e0d true … Continue reading

Posted in netapp | Leave a comment

clustermode login to other node via interconnect

(with thanks to Wietse Muizelaar) If, for whatever reason, you have to do work on a node or copy files from one node to the other node, but the data and management interfaces are unuseable, you can use the interconnect … Continue reading

Posted in netapp | Leave a comment

solaris change miniroot

gunzip < solaris_build/boot/x86.miniroot >/tmp/miniroot lofiadm -a /tmp/miniroot /dev/lofi/2 # mount /dev/lofi/2 /mnt # echo ‘iprb “pci8086,1050″‘ >>/mnt/etc/driver_aliases # tail -2 driver_aliases iprb “pci8086,1050” umount /mnt # lofiadm -d /dev/lofi/2 # gzip < /tmp/miniroot > solaris_build/boot/x86.miniroot

Posted in solaris | Leave a comment

mac osx burn usb

$ diskutil list Figure out what your USB device is called with mount or sudo dmesg | tail (e.g. /dev/disk1) and unmount the partitions on the device (i.e., /dev/disk1s1) while keeping the device proper (i.e., /dev/disk1): $ diskutil unmountDisk /dev/disk1 … Continue reading

Posted in Uncategorized | Leave a comment

clonezilla

http://www.openlogic.com/wazi/bid/188051/With-Clonezilla-Install-Once-and-Clone-Forever

Posted in linux | Leave a comment

linux opensuse custom init script

1. create the ‘program’ 2. create the init.d script 3. create the links 4. test 1. The ‘program’ is a script that writes its pid to a file in /var/run. The content of the file is used when stopping the … Continue reading

Posted in linux | Leave a comment

suse openvpn cert

Setting Up Your VPN Server Using Certificate Authority This section explains how to build a VPN server that allows more than one connection at the same time. This is done with a public key infrastructure (PKI). A PKI consists of … Continue reading

Posted in Uncategorized | Leave a comment

linux suse openvpn

VPN Server Configuration Install the package openvpn on the machine that will later become your VPN server. Open a shell, become root and create the VPN secret key: openvpn –genkey –secret /etc/openvpn/secret.key Copy the secret key to your client: scp … Continue reading

Posted in linux | Leave a comment

open suse repositories

repos

Posted in linux | Leave a comment

7000 snapvault

#!/usr/bin/bash #variables source=pool_0/local/base/source dest=pool_0/local/base/source node2=”192.168.108.61 confirm shell ” schedule=60 #functions function baseline { zfs snapshot ${source}@currentfs zfs send ${source}@currentfs|ssh ${node2} zfs receive ${dest}@currentfs echo “baseline created” } function dryrun { run=0 ret=5 echo dry while (($run

Posted in solaris | Leave a comment

7000 collect IOPS

#!/bin/bash run=0 #current cycle times=10 #number of times to run interval=5 #interval echo “Operations per second per 5 seconds” > collectfile #while run is smaller than times #dataset-026 collects the number of NFSv4 operations per second #awk reports the third … Continue reading

Posted in solaris | Leave a comment