Operating System - HP-UX
1833563 Members
3392 Online
110061 Solutions
New Discussion

Problem while mirroring root disk in 10.20 on R390

 
V Panchapakesan
Advisor

Problem while mirroring root disk in 10.20 on R390

Dear,
Mail is bit long.
I've mirrored my root disk (9GB F/W/D) (lvol1(boot) 80MB;lvol2(swap) 512MB and lvol3(/) 1300MB) using the following steps
1. pvcreate -B /dev/rdsk/c1t5d0 (9GB F/W/D disk)
2. vgextend /dev/vg00 /dev/dsk/c1t5d0
3. mkboot /dev/rdsk/c1t5d0
4. mkboot -a "hpux -l q (;)/vmunix" /dev/rdsk/c1t5d0
5. lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t5d0
6. lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t5d0
7. lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t5d0
8. lvlnboot -b /dev/vg00/lvol1
9. lvlnboot -v -r /dev/vg00/lvol3
10. lvlnboot -s /dev/vg00/lvol2
** Here it gives error "Lvlnboot:unable to extend IODC max address".
11. lvlnboot -R /dev/vg00
12. lvlnboot -v
showns both disks in root VG, boot lvol1 on both disks, root lvol3 on both disks but swap is shown only in first disk.
If I do lvdisplay -v /dev/vg00/lvol2 the status is current and is mirrored.
When I tried booting from the mirrored disk it failed booting (obviously due to failure of swap mirroring).
Can anybody tell me why this happend and what is the solution.


I WANT TO BELIEVE
5 REPLIES 5
Thierry Poels_1
Honored Contributor

Re: Problem while mirroring root disk in 10.20 on R390

hi,
LVOL1, LVOL2 and LVOL3 have to be mirrored in sequence!
the rest should be fine,
good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Stefan Farrelly
Honored Contributor

Re: Problem while mirroring root disk in 10.20 on R390


Why did you extend your mirrors in order lvol1, lvol3 then lvol2 ?? You should do them in order 12,3 etc.

The error you got is because youre trying to allocate swap past the first 2 GB of your disk. Use lvrmboot to undo it, break the mirrors, and then mirror in order 1,2,3 and then do the lvlnboot commands again.

(I hope thats not a space inbetween your l and q in your hpux -lq command above. There shouldnt be)
Im from Palmerston North, New Zealand, but somehow ended up in London...
Pedro Sousa
Honored Contributor

Re: Problem while mirroring root disk in 10.20 on R390

Hi!
I would follow Stefan's idea about the order you should use - 1,2,3.

Stefan, he's not passing the 2 recommended GB!

good luck.
Vincenzo Restuccia
Honored Contributor

Re: Problem while mirroring root disk in 10.20 on R390

4. mkboot -a "hpux -l q (;)/vmunix" /dev/rdsk/c1t5d0
right is :
mkboot -a "hpux -lq (;)/stand/vmunix" /dev/rdsk/c1t5d0

Vince Inman
Frequent Advisor

Re: Problem while mirroring root disk in 10.20 on R390


a. Correct path to HP-UX kernel is /stand/vmunix
b. lvol's 1,2,3 (/stand, swap, "/") must be allocated in the order they are laid down on the primary disk. To view this, use the pvdisplay command which will show you the physical layout of the device.