1833541 Members
2878 Online
110061 Solutions
New Discussion

lvextend question.

 
SOLVED
Go to solution
Juan Manuel López
Valued Contributor

lvextend question.

I have a lv and fs mounted.
I need to create a mirror using lvextend -m 1
Do I need to unmount fs to perform this lv extend ? Or can I make it while the fs is mounted.

Thanks in advance.

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
6 REPLIES 6
Ian Dennison_1
Honored Contributor
Solution

Re: lvextend question.

It should not need to be unmounted.

Confirm after perfoming an extend that the Lvol is on the disk you require it to be on, by perfoming an 'lvdisplay -v'.

Share and Enjoy! ian
Building a dumber user
john korterman
Honored Contributor

Re: lvextend question.

Hi Juanma,
you do not have to unmount in order to mirror an lvol, just do this:
# lvextend -m 1

where is the device name for the disk on which you want the mirror, e.g. /dev/dsk/c1t2d0

regards,
John K.
it would be nice if you always got a second chance
T G Manikandan
Honored Contributor

Re: lvextend question.

No.
Just do a

lvextend -m 1
i.e
#lvextend -m 1 /dev/vg05/lvol1 /dev/dsk/c0t5d0
check it with
# lvdisplay -v /dev/vg07/lvol5

THanks
Ravi_8
Honored Contributor

Re: lvextend question.

Hi,

If you are using Online JFS unmounting the fs is not necessary, otherwise need to unmount
never give up
T G Manikandan
Honored Contributor

Re: lvextend question.

sorry

lvdisplay -v /dev/vg05/lvol1
Bill Hassell
Honored Contributor

Re: lvextend question.

No, you do not need to unmount an active filesystem to mirror a logical volume. The mirroring software works at the raw disk level and knows nothing about whether this volume is mounted or active. The lvextend command starts a special driver process that performs 'atomic' synchronization, a fancy term that means: each extent written to the mirror will suspend any other writes until it has completed successfully. That means that each mirrored extent exactly matches the primary disk.

HOWEVER, this will create a huge load on the logical volume so on a busy system, any activity on this lvol will appear to be very slow until the mirroring has been completed. The same thing will happen with the lvsync command.


Bill Hassell, sysadmin