OS Categories

Where almost everything resides.

if checking status of a device, it shows some paths in asb:iopf dead, that is cause due to an error in the SAN network, that affect the path shwoing this status. root@solaris :/root # powermt display dev=emcpower2a Pseudo name=emcpower2a Symmetrix ID=000445501078 Logical device ID=3714 state=alive; policy=SymmOpt; queued-IOs=0 ============================================================================== --------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats --- ###  Read more...

This example will show an ASCII progress bar with information about speed of the I/O. When dd will finish it will keep showing the results.

# dd if=/dev/urandom | pv | dd of=/dev/null

 

below example will use a nice dialog with the message between quotes

# (pv -n /dev/uramdom | dd of=/dev/null bs=128M) 2>&1 | dialog --gauge "Running dd command (cloning), please wait..." 10 70 0
Sometimes I get a stuck Virtual Machine that just won't go down and it's usually due to a lack of memory in the VM. When I issue a shutdown command from within the VM it starts the shutdown process but hangs part way through. Executing xe vm-shutdown uuid=<insert UUID here> --force does nothing but lock up the terminal. If this happens to you follow the steps below to forcefully shut the VM down. WARNING!! Only do this as a last resort. xe vm-list (note the VM's UUID) list_domains (find Read more...
In order to convert the Solaris ssd naming from sd# to c#t#d#, very useful as in the log files will be showed only the sd# naming, we can use the next simple set of commands to convert them. # paste -d= <(iostat -x | awk 'NR>2{print $1}') <(iostat -nx | awk 'NR>2{print "/dev/dsk/"$11}') this the output for some disks: sd0=/dev/dsk/c0t5000CCA0164B7CDCd0 sd1=/dev/dsk/c0t5000CCA0164BD734d0 sd4=/dev/dsk/c1t0d0 ssd0=/dev/dsk/c4t5000097500015190d6 ssd1=/dev/dsk/c4t5000097500015190d5 If Read more...