Operating System - HP-UX
1832594 Members
2853 Online
110043 Solutions
New Discussion

Can you create a mirror copy of an LV while it is online?

 
SOLVED
Go to solution
susan.derose
Advisor

Can you create a mirror copy of an LV while it is online?

Hi,

I am not 100% sure, but there should be no reason why you can't create a mirror copy of an already existing LV online under vg00, correct?

The current LV size is 5GB and I see that I have 4319PE free and PE size for the VG is 16MB. So I should have roughly 1GB free left over after the mirroring of this LV on diskA to the target diskB.

lvcraete -m 1 /dev/vg00/lv_name /dev/disk/diskB ?
Can I do that while /dev/vg00/lv_name is online? If it makes any difference, I do have jfsonline.

Susan
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: Can you create a mirror copy of an LV while it is online?

Hi Susan:

Yes, you most certainly can mirror a logical volume when it is "online".

In fact, to mirror a logical volume, the volume group must be activated or "online".

OnlineJFS has no relationship to mirroring. LVM mirrors are strictly at the logical volume layer.

You can add ('lvextend') or remove ('lvreduce') mirrors at any time.

Regards!

...JRF...
susan.derose
Advisor

Re: Can you create a mirror copy of an LV while it is online?

Thank you James, for confirming that for me.