LVM and VxVM

extending an LV which is mirrored

 
Kavita Poonia
Regular Advisor

extending an LV which is mirrored

Hello there,

I have got some doubt regarding lvextend.I need to extend an LV to 2816 MB which is in volume group vg00 and it is mirrored.Then should I use the below command:

lvextend -m 1 -L 2816 /dev/vg00/lvol5

fsadm -F vxfs -b 2816m /opt


And should I also need to make a copy of file /etc/lvmconf/vg00.conf as the logical volume is in vg00 which is a root volume group.

Please reply as soon as possible

Thanks a lot

Regards
Kavita
2 REPLIES 2
Norm Diederich
Honored Contributor

Re: extending an LV which is mirrored

Kavita,

If you have advanced JFS then you can extend online with SAM.

If not, you are going to need to boot in single user mode so that /opt can be unmounted.

Interrup the BOOT

hpux -iS

Assuming /opt is unmounted, the following two commands will extend the lv and file sytem.

lvextend -L 2816 /dev/vg00/lvol5

(you don't need to specify the mirror after it has been configured)

extendfs /dev/vg00/rlvol5

At this point you can mount the file system and continue your boot.

Regards,
Norm
Emil Velez
Honored Contributor

Re: extending an LV which is mirrored

with online jfs that should take care of the filesystem level

If you extend a logical volume and it is mirrored it finds extents on the disks in the VG for the mirror. Unless you have a 2 disk vg and the first disk is all full that should not be a problem. Luckilly you are not talking about lvol1,2,3 which have certain rules about being contiguous.