1838389 Members
3190 Online
110125 Solutions
New Discussion

Re: Disk Mirroring

 
SOLVED
Go to solution
Frank Sam
Occasional Advisor

Disk Mirroring

Hi i am getting this error when i am trying to mirror my test machine drive:

# mkboot –l /dev/rdsk/c2t15d0
# mkboot –a “hpux” /dev/rdsk/c2t15d0
# lvextend –m 1 /dev/vg00/lvol2 /dev/dsk/c2t2
d0

Logical volume "/dev/vg00/lvol2" has been successfully extended.
lvlnboot: LIF information corrupt or not present on "/dev/dsk/c2t2d0".
Use the "mkboot" command to initialize the LIF area.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf


I really appreciate your help,Please advise.


Thank You
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Disk Mirroring

Hi:

Did you first 'pvcreate' with the bootable option to reserve space?

# pvcreate -B /dev/rdsk/c2t15d0

Too, you must mirror lvol1, lvol2 and lvol3 (at least) in that order. You should mirror all of the logical volume in vg00 anyway, but the order of the first three matters.

Regards!

...JRF...
Frank Sam
Occasional Advisor

Re: Disk Mirroring

I am getting this message when i do pvcreate

pvcreate: The physical volume already belongs to a volume group

also this is the setup that i followed.Note that i only got this message when i was adding the second lvol. everything else synchronized perfectly.

(see the attachment if you cannot read the below.)

#mkboot â l /dev/rdsk/c2t2d0

# mkboot -a "hpux" /dev/rdsk/c2t2d0
There appear to be non-boot logical volumes on this device.
Overwriting them could destroy all the data on this device
Should the logical volumes be overwritten [y/n]? y
# lifls -l /dev/rdsk/c2t2d0
volume c2t2d0 data size 7984 directory size 8 09/07/24 13:53:41
filename type start size implement created
===============================================================
ISL -12800 584 242 0 06/04/19 14:02:34
AUTO -12289 832 1 0 06/04/19 14:02:34
HPUX -12928 840 1024 0 06/04/19 14:02:34
PAD -12290 1864 1468 0 06/04/19 14:02:34
LABEL BIN 3336 8 0 09/07/24 14:13:02


# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
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/c2t2d0
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.
lvlnboot: LIF information corrupt or not present on "/dev/dsk/c2t2d0".
Use the "mkboot" command to initialize the LIF area.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t2d0
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/c2t2d0
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

Thank You for the quick reply.

James R. Ferguson
Acclaimed Contributor
Solution

Re: Disk Mirroring

Hi:

I don't believe that your 'pvcreate' of the physical volume that you are attempting to mirror to was created as a bootable disk (with 'pvcreate -B').

At this point, 'lvreduce' the mirrored logical volumes on it; 'vgreduce' it from the vg00 volume group and _begin_ again with 'pvcreate -B'; 'vgextend' the physical disk into the existing volume group; do your 'mkboot' commands and 'lvextend -m' each logical volume in order.

Regards!

...JRF...
Frank Sam
Occasional Advisor

Re: Disk Mirroring

Hi,

It worked didnt give me that error on that step so i am gonna sync the rest of the volumes. You are the best .
Thank You
James R. Ferguson
Acclaimed Contributor

Re: Disk Mirroring

Hi (again):

> It worked didnt give me that error on that step so i am gonna sync the rest of the volumes. You are the best . Thank you

You're welcome. Please read:

http://forums13.itrc.hp.com/service/forums/helptips.do?#28

Points are a way of saying "thank you" _AND_ of leading future readers to posts that may help them solve their particular problem.

Regards!

...JRF...