Operating System - HP-UX
1835272 Members
2542 Online
110078 Solutions
New Discussion

Which disk did I boot from?

 
SOLVED
Go to solution
Darrell Allen
Honored Contributor

Which disk did I boot from?

Hello everyone,

I'm using MirrorDisk on 11.0. I've successfully mirrored the boot disk and booted from it but I haven't found a way to tell which disk I'm currently booted from. Is there a command that will tell me that?

Thanks.
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
8 REPLIES 8

Re: Which disk did I boot from?

#setboot
this command will give you the primary boot path and secondary boot path of the PDC .
the primary boot path is where the system will use for booting,
once you have booted it doesnt matter where you booted from.
(this is assuming you hv done your mirroring correctly).
Strive for perfection
MANOJ SRIVASTAVA
Honored Contributor

Re: Which disk did I boot from?

Hi Darell


1. setboot
2. lvlnboot -v


Manoj Srivastava
James R. Ferguson
Acclaimed Contributor
Solution

Re: Which disk did I boot from?

Hi Darrel:

# echo boot_string/S|adb /stand/vmunix /dev/mem

This will show you the actual path from which you booted.

...JRF...
Peggy Fong
Respected Contributor

Re: Which disk did I boot from?

Hi

While setboot tells you primary path and alternate path it doesn't tell you if someone booted from which path.

When you do lvlnboot -v /dev/vg00 does the order of the disks change (boot disks) when you boot from the mirror disk? If so, that would be one way to check.

No guarantee but try lssf /dev/root
lssf /dev/rroot since this is accessed prior to LVM may be the hardware address will point to the disk that was booted.

As mentioned previously, it should matter which disk was used...but you never know :)

Hope this helps
Peggy
federico_3
Honored Contributor

Re: Which disk did I boot from?

Use setboot
Vincenzo Restuccia
Honored Contributor

Re: Which disk did I boot from?

setboot see the disk of boot and alternate boot,with lifcp /dev/dsk/cxtyd0:AUTO - you can see the lif area of boot.
Bill McNAMARA_1
Honored Contributor

Re: Which disk did I boot from?

have a look at the dmesg output after boot.

Later,
Bill
It works for me (tm)
Darrell Allen
Honored Contributor

Re: Which disk did I boot from?

Thank you all for replying. I appreciate all of them however James gets the gold star as his answer to the question was dead on.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)