Which disk server got booted ?

To find out the disk from which the server got booted, we need to use below command 

#ll  /dev/disk | grep $(echo "bootdev/x"|adb /stand/vmunix /dev/kmem | awk '/0x/ {print substr($1,5)}')

examble : 
root:server1# ll /dev/disk | grep $(echo "bootdev/x"|adb /stand/vmunix /dev/kmem | awk '/0x/ {print substr($1,5)}')
brw-r-----   1 bin        sys          1 0x000003 Jul 13  2010 disk3_p2
root:server1#

2 comments:

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks