Operating System - HP-UX
1753925 Members
8836 Online
108810 Solutions
New Discussion юеВ

Alternate Boot Path fails

 
SOLVED
Go to solution
Hans Kamann
Advisor

Alternate Boot Path fails

System contains four drives in vg00:
c1t5d0 ( Primary Boot Path)
c1t8d0 ( Alternate Bot Path)
c0t14d0 Boot Disk
c0t15d0 Boot Disk ( mirror for c1t5d0)
All Drives are "Seagate ST32272WC"
System is only capable of booting from primary boot path. When trying to boot from alternate boot path I receive message:
"Boot Device not ready"
"Retying boot device"
ioscan -fnC disk reports all drives "claimed"
dd if=/dev/rdsk/cxxxxx of=/dev/null bs=1024k works as expected on all drives.
Any suggestions ?

12 REPLIES 12
Vijaya Kumar_3
Respected Contributor

Re: Alternate Boot Path fails

Hi,
I hope you forgot to make it as a bootable device. You are required to use -B option to pvcreate command to make a device bootable.

Did you use -B option to pvcreate command before creating a mirror?

"Boot device not reay" means your boot area is corrupted and you may be required to mirror it again.


Thanks
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Vijaya Kumar_3
Respected Contributor

Re: Alternate Boot Path fails

FYI,

Mirroring Boot disk is clearly documented here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=148246

Hope this helps
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Hans Kamann
Advisor

Re: Alternate Boot Path fails

Thanks for your reply, but what is the correct way to remove (!) and recreate the boot / mirror ?
Pete Randall
Outstanding Contributor

Re: Alternate Boot Path fails

Unfortunately, you'll have to start over again since the only way to make a device bootable is via the pvcreate command.


Pete

Pete
Hans Kamann
Advisor

Re: Alternate Boot Path fails

All right, starting from PVCREATE is explained in the manual. But I do not know how to remove /dev/dsk/c1t8d0 from the root volume group including mirrors.
Stephen Doud
Honored Contributor

Re: Alternate Boot Path fails

According to your message, you have 4 intended boot devices in vg00?
What is the difference between the Primary Boot Path device at c1t5d0 and the Boot Disk at c0t14d0? did you want 1 boot device and 3 boot mirrors? Is c1t8d0 (alt. boot path) not a boot mirror? If so, how can it be part of vg00 and yet be an alternate boot device?

To remove a disk as a mirror, use this syntax:
/usr/sbin/lvreduce [-A autobackup] -m mirror_copies lv_path [pv_path ...]

example:
lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c0t15d0

Repeat for all mirror lvols on c0t15d0
(use pvdisplay -v /dev/dsk/c0t15d0 ?| more to see if it has any extents left on it)

After the extents of each logical volume mirror have been removed from c0t15d0, remove the disk from the VG using VGREDUCE:
vgreduce /dev/vg00 /dev/dsk/c0t15d0

This will take c0t15d0 out of /etc/lvmtab.
You may then use pvcreate to install the space needed for the boot block:

pvcreate -f -B /dev/rdsk/c0t15d0

Then add the disk back into vg00:
vgextend /dev/vg00 /dev/dsk/c0t15d0
Then re-mirror each logical volume, lvol1 - lvol N (all vg00 lvols). Example:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t15d0

Repeat for each lvol.
When the mirroring is completed, insure the boot area has been installed:

# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t15d0
(-lq allows the VG to activate if quorum is not met).


See if the boot mirror is accepted as a boot device:
lvlnboot -v /dev/vg00
If you don't see the line:
/dev/dsk/c0t15d0 (The it's not yet accepted as a boot device by LVM.
To make this happen, use this series of commands:

lvlnboot -b /dev/vg00/lvol1 # /stand
lvlnboot -r /dev/vg00/lvol3 # /
lvlnboot -s /dev/vg00/lvol2 # swap
lvlnboot -d /dev/vg00/lvol2 # dump
lvlnboot -R /dev/vg00


Repeat the lvlnboot -v command to insure the alternate boot mirror is accepted as a boot device. It should look something like this:

# lvlnboot -v vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t14d0 ( /dev/dsk/c0t15d0 () -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t15d0
Root: lvol3 on: /dev/dsk/c0t15d0
Swap: lvol2 on: /dev/dsk/c0t15d0
Dump: lvol2 on: /dev/dsk/c0t15d0, 0


Finally - test it as a boot device.

-StephenD
Hoefnix
Honored Contributor

Re: Alternate Boot Path fails

First you have to check if only mirrors of lvols are on the pv.
Then do a :
lvreduce -m 0 /dev/vg00/lvolx /dev/dsk/cxtxdx

Use the cxtxdx from the disk that you like to reassign as mirror from the start.(NOT your PRIM Boot disk!!)

When all mirrors are removed from this disk do:
vgreduce /dev/vg00 /dev/dsk/cxtxdx
Then you should be able to do a pvremove:
pvremove /dev/rdsk/cxtxdx

I think that brings you at the start.
Regards,
Peter

Hans Kamann
Advisor

Re: Alternate Boot Path fails

More info from lvlnboot:

Boot: lvol1 on: /dev/dsk/c0t14d0
/dev/dsk/c0t15d0
Root: lvol3 on: /dev/dsk/c0t14d0
/dev/dsk/c0t15d0
Swap: lvol2 on: /dev/dsk/c0t14d0
/dev/dsk/c0t15d0
Dump: lvol2 on: /dev/dsk/c0t14d0


Steven E. Protter
Exalted Contributor

Re: Alternate Boot Path fails

How I do it:

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com