Operating System - HP-UX
1838334 Members
3100 Online
110125 Solutions
New Discussion

boot host from the secondary disk aka external disk

 
SOLVED
Go to solution
hpuxhelp
Regular Advisor

boot host from the secondary disk aka external disk

After mirroring the disk from root vg00 to the external disk EMC, how would I boot it to secondary
disk? lvlnboot -R will this do it?
In addition, there are sequence of doing mirroring
boot swap root... how would I know which disk is belongs to boot and mirror to what particular disks?
will lvdisplay shows all??? on boot, root, swap ??
Thanks
3 REPLIES 3
Sridhar Bhaskarla
Honored Contributor
Solution

Re: boot host from the secondary disk aka external disk

Hi,

You would setup the mirror disk as the boot disk in two ways.

1. Use the command "setboot" to set the boot disk.

setboot will simply display the current settings and use the command

"setboot -p your_path" to set the primary. You would use -a to set the alterate path.

2. Boot the system and stop at the boot admin prompt. You will find the options there to set the boot paths.

Per your second question, lvdisplay -v /dev/vg00/lvol? will show the information about the lvol details. Remember that /stand lvol should be the first lvol on the root disk followed by primary swap and root volumes. "pvdisplay -v /dev/dsk/your_bootdisk" will show how the disk is laid.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
hpuxhelp
Regular Advisor

Re: boot host from the secondary disk aka external disk

Please verify if I want to check on which disks are holding my OS information, it is the boot disk? This is where i can boot it to 11.0 or 10.20 ?? is this correct ?
Sridhar Bhaskarla
Honored Contributor

Re: boot host from the secondary disk aka external disk

Hi,

Do an lvlnboot -v and look for the disks that are marked as "Boot disk"s. These are the disks that have the boot (/stand), root (/) and swap/dump (swapinfo ) logical volumes and other logical volumes in the root disks.

Another way is, do vgdisplay -v |more and search for "PV Name"s in it. For each of the PVs (/dev/dsk/c?t?d?) that you found in vgdisplay -v, do a "pvdisplay -v /dev/dsk/c?t?d?)" to look at more information.

As I indicated before, use "setboot" command to find out the disk from which you booted. setboot without any options will show the path information. You need to correspond it to your boot disk.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try