1832586 Members
3226 Online
110043 Solutions
New Discussion

Veritas Boot

 
SOLVED
Go to solution
MBNA SAN Team
Occasional Advisor

Veritas Boot

I have a veritas root disks mirrored. How do I find out the device from which the server boots??

Remember its a veritas disks and not LVM. So no LVM commands please??
8 REPLIES 8
Jeff Schussele
Honored Contributor

Re: Veritas Boot

Hi,

Run the following command:

setboot

It will show primary & alternate bootpaths.
You'll normally boot from the primary, but could boot from the alternate.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
MBNA SAN Team
Occasional Advisor

Re: Veritas Boot

But I need to know from which device the server has booted from..
setboot gives the primary and alternate boot paths but does not specify the actual boot from a particular device
RAC_1
Honored Contributor

Re: Veritas Boot

echo "boot_string/D"|adb -k /stand/vmunix /dev/kmem

Anil
There is no substitute to HARDWORK
MBNA SAN Team
Occasional Advisor

Re: Veritas Boot

Anil - how do u interpret the string

echo "boot_string/D"|adb -k /stand/vmunix /dev/kmem
boot_string:
boot_string: 674311984

Ashwani Kashyap
Honored Contributor

Re: Veritas Boot

#echo :boot_string/S" | adb -k .stand/vmunix /dev/kmem .

This should give you the hardware address of the disk that you booted from .
Ashwani Kashyap
Honored Contributor
Solution

Re: Veritas Boot

sorry typo , it should be

#echo "boot_string/S" | adb -k /stand/vmunix /dev/kmem
steven Burgess_2
Honored Contributor

Re: Veritas Boot

Hello counterpart

I work for your sister company in the UK

Nice to see you in the forum, look forward to speaking again

Regards

Steve
take your time and think things through
MBNA SAN Team
Occasional Advisor

Re: Veritas Boot

Thanks Anil and Ashwani. I have also found another way to find the device from dmesg.
Look for this line in dmesg

Dump device table: (start & size given in 1-Kbyte blocks)
entry 0000000000000000 - major is 31, minor is 0x2a0600; start = 310368, size = 6291456

Converting the hex - 2a060 in decimal gives u the boot device c36t0d0 which is on the hardware path 0/0/6/0/0/4/0.20.32.0.0.0.6
which has the same path from the below command output
echo "boot_string/S" | adb -k /stand/vmunix /dev/kmem
boot_string:
boot_string: (0/0/6/0/0/4/0.20.32.0.0.0.6;)/stand/vmunix

From the ioscan output we can see that the device
disk 169 0/0/4/0/0/4/0.20.32.0.0.0.6 sdisk CLAIMED DEVICE HP OPEN-V*2
/dev/dsk/c36t0d6 /dev/rdsk/c36t0d6

I would prefer the dmesg and grep in ioscan rather using adb to look into kernel and stand.