System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

setboot error during root disk mirroring

SOLVED
Go to solution
rianui
Trusted Contributor

setboot error during root disk mirroring

Dear Experts,

I have a HP rp7640 which I have installed UX 11.23. After installation I went through the steps to mirror the disks but when I typed the setboot -a command, I get the error:

setboot: cannot set alteranate bootpath

Here is what I did...I pasted everything including an error I got during vgextend:

# pvcreate –f -B /dev/rdsk/c4t6d0
Physical volume "/dev/rdsk/c4t6d0" has been successfully created.

# vgextend /dev/vg00 /dev/dsk/c4t6d0
vgextend: Warning: Max_PE_per_PV for the volume group (4328) too small for this PV (4375).
Using only 4328 PEs from this physical volume.
Volume group "/dev/vg00" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# mkboot /dev/rdsk/c4t6d0

# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol2" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol3" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol5" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol6" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol7" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lv_users /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lv_users" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lv_system /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lv_system" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lv_sudo /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lv_sudo" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lv_crash /dev/dsk/c4t6d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lv_crash" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# setboot -a 1/0/0/3/0.6.0
setboot: cannot set alternate boot path
# setboot -h 1/0/0/3/0.6.0
setboot: cannot set ha_alternate boot path


6 REPLIES
Delcho Tuhchiev
Frequent Advisor

Re: setboot error during root disk mirroring

Hi,

Can you post the output of "lvlnboot -v"?

Also did you add an entry for the new disk in /stand/bootconf file?
rianui
Trusted Contributor

Re: setboot error during root disk mirroring

Hi Delcho,

1) Here is the output of lvlnboot -v:

[root@casper1 - /root ] # lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0s2 (0/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c4t6d0 (1/0/0/3/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0s2
/dev/dsk/c4t6d0
Root: lvol3 on: /dev/dsk/c0t6d0s2
/dev/dsk/c4t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0s2
/dev/dsk/c4t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0s2, 0



2) No I did not add any entry in /stand/bootconf file.
All that's pasted above is what I did after the OS installation.


Thanks and regards

Rianui
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: setboot error during root disk mirroring

Hi,

/dev/dsk/c0t6d0s2 (0/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c4t6d0 (1/0/0/3/0.6.0) -- Boot Disk


uhhh, you are trying to mirror an itanium system with the steps of an RISC system!!!!

Have a look at the appendix of this doc (page 50).

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

Regards,
Robert-Jan
Delcho Tuhchiev
Frequent Advisor

Re: setboot error during root disk mirroring

Hi, there is a whole procedure for mirroring root disk. You should follow it. In short words :

1. prepare partiton file:

3
EFI 500MB
HPUX 100%
HPSP 400MB


2.create device files for new disk (use insf!!!!)
3.verify partiton table of the new disk (use idisk!!!)
4.Populate /efi/hpux in the new EFI partition in the new disk! (use mkboot!!!)
5.Change auto file (booting from disks must be without quorum...use "boot vmunix -lq" and efi_cp to ..rdisk/newdisk_s1)
6.Check that "boot vmunix -lq" option is set to all boot disks (use efi_cp!!!)
7.Create a pv (use pvcreate with ..rdsk/newdisk_s2!!!)
8.Extend vg00 (use ..dsk/newdisk_s2)
9.Mirror all lvs from vg00 (use lvextend)
10.Add new disk to /stand/bootconf
11.Check BDRA with lvlnboot command
12.Set primary and alternate boot path (use setboot with HW paths!)
13 .Check with setboot!
If You need more iformation I suggest to read this document:

http://docs.hp.com/en/5992-1910/5992-1910.pdf
rianui
Trusted Contributor

Re: setboot error during root disk mirroring

Hi!

Thanks guys

I will use the right document for this job and follow the steps you have given me. I will let you know how that goes.

Thanks.

Rinaui
rianui
Trusted Contributor

Re: setboot error during root disk mirroring

Solution worked