Thursday 17 November 2011

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#

No comments:

Post a Comment