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

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

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 shadow migration example

example

Posted in solaris | Leave a comment

7000 collect filesystemusage and create html

space.rc

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 adminguide oracle

guide

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

7000 reset SP password

howto

Posted in solaris | Leave a comment

linux suse kiwi

kiwi cookbook

Posted in Uncategorized | Leave a comment

linux suse zypper cheatsheet

zypper cheatsheet

Posted in linux | Leave a comment