Operating System - HP-UX
1835115 Members
4695 Online
110076 Solutions
New Discussion

extending Lvm Mirrored disk

 
SOLVED
Go to solution
tejas pillai
New Member

extending Lvm Mirrored disk

hi,
i was just wondering if it's possible to extend
a lvm mirrored disk.
i have got a volume group comprising of 2 disk each with 18 GB .currently i have a logical volume of 12 GB mirrorred to second disk with 6 GB free on each disk.
is it possible to extend to 18 gb ?
Expect the unexpected !!!
2 REPLIES 2
Satish Y
Trusted Contributor

Re: extending Lvm Mirrored disk

Hi,

I don't know exactly whether u can do it without removing mirror copy or not, but u can do it with removing mirror copy.

1) Remove mirroring
# lvreduce -m 0 /dev/vg00/mylvol

2) Extend ur lvol
# lvextend -L18000 /dev/vg00/mylvol

3) Allocate mirrors
# lvextend -m 1 /dev/vg00/mylvol

If u want to Mirror ur logical volume onto a particular physical volume
# lvextend -m 1 /dev/vg00/mylvol /dev/dsk/c0t3d0

Cheers...
Satish.
Difference between good and the best is only a little effort
James R. Ferguson
Acclaimed Contributor
Solution

Re: extending Lvm Mirrored disk

Hi:

There is no need to break the mirror to extend the logical volume. Do your 'lvextend' increasing the size of the logical volume, and follow this with 'extendfs' [or 'fsadm' if you are using JFS]. Afterwards, you can verify that the extended extents are sync'ed with 'lvdisplay -v'.

...JRF...