-
Recent Posts
Archives
- July 2020
- April 2020
- February 2020
- January 2020
- December 2019
- November 2019
- August 2019
- July 2019
- June 2019
- May 2019
- February 2019
- January 2019
- November 2018
- October 2018
- September 2018
- August 2018
- June 2018
- May 2018
- April 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- August 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- September 2016
- August 2016
- March 2016
- December 2015
- November 2015
- October 2015
- September 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- November 2014
- October 2014
- September 2014
- August 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
Categories
Monthly Archives: May 2013
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
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
solaris linux create sparse file
# dd of=sparse-file bs=1k seek=55120 count=0 0+0 records in 0+0 records out 0 bytes transferred in 0.000030 secs (0 bytes/sec) nfs : ls -lh sparse-file -rw-r–r– 1 user1 daemon 54M May 12 20:08 sparse-file
Posted in linux, solaris
Leave a comment
7000 automatic login to systemshell
1. Make sure autologin is set up correctly 2. run the following command: # ssh -t 192.168.4.130 confirm shell (where 192.168.4.130 is the appliance) 3. example: query zpools # ssh -t 192.168.4.130 confirm shell zpool list NAME SIZE ALLOC FREE … Continue reading
Posted in solaris
Leave a comment
7000 split brain prevention
Preventing “Split-Brain” Conditions A common failure mode in clustered systems is known as âsplit-brainâ; in this condition, each of the clustered heads believes its peer has failed and attempts takeover. Absent additional logic, this condition can cause a broad spectrum … Continue reading
Posted in solaris
Leave a comment
7000 list projects filesystems and snapshots
This scripts requires automatic login on 7000 node It lists all projects, filesystems and snapshots. # vi fs #!/usr/bin/bash >data echo type:project:filesystem:snapshot echo ————————— for pr in `ssh node141 shares list` do echo “pr:${pr}::” echo “pr:${pr}::”>>data for fs in `ssh … Continue reading
Posted in solaris
Leave a comment
7000 get snapshot info
appl40:> shares select reversed select repshare snapshots select new get space_data space_data = 304K
Posted in solaris
Leave a comment
7000 datasets
determine datasets: # ssh root@192.168.73.141 analytics datasets list DATASET STATE INCORE ONDISK NAME dataset-000 active 710K 32.6K arc.accesses[hit/miss] dataset-001 active 242K 31.2K arc.l2_accesses[hit/miss] dataset-002 active 242K 31.2K arc.l2_size dataset-003 active 242K 31.2K arc.size dataset-004 active 880K 32.5K arc.size[component] dataset-005 active … Continue reading
Posted in solaris
Leave a comment
7000 datacollection example
This poorman’s example uses 1 script, 1 datacollectionfile and 1 html file 1. script (shares) collects project information from hardcoded 7000 node and stores it in file: collect then it creates an html file. 3. in browser load: http://localhost/test.html script: … Continue reading
Posted in solaris
Leave a comment
7000 get projects from node
#!/usr/bin/bash #get projects set `ssh root@192.168.73.141 shares list` counter=0 while test $# -gt 0 do let counter=$counter+1 shares[$counter]=$1 shift done #count projects count=`echo ${#shares[@]}` echo $0: $count projects found #get data item=1 while test $item -le $count do ssh root@192.168.73.141 … Continue reading
Posted in Uncategorized
Leave a comment