Operating System - HP-UX
1836428 Members
3618 Online
110100 Solutions
New Discussion

Re: Mirror on Stripped lvol

 
SOLVED
Go to solution
Sanjiv Sharma_1
Honored Contributor

Mirror on Stripped lvol

Hi,

I have 840GB vg02 consisting 12 Luns of 70 GB each. It has a single lvol1 of 840 GB stripped 4 luns at a time with an extend size of 32 KB and stripe size of 64 KB.

I want to add another 12 luns of 70 GB in vg02. Mirror it and then remove the earlier 12 luns from it.

vgdisplay and lvdisplay attached for clarity.
I have removed some parts of lvextend to reduce its size below 1MB.

Is there any concern or it is strait forward?
Is the mirroring supported here as the lvol is stripped?

thanks for your help.
Everything is possible
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: Mirror on Stripped lvol

If the lvol was created with the '-i -I' options to lvcreate then NO you can not mirror.
Shaikh Imran
Honored Contributor

Re: Mirror on Stripped lvol

Hi,
You can always play a safe game by adding the Othe luns to your existing volume group and try movin the data ( either through mirroring or pvmove ).Once you have confirmed that the data is moved to the required disk ( LUNS ). You can remove the unwanted or else keep the same and remove the new one.
Here is a small example :

Moving a Mirrored Logical Volume to Another Disk :
Suppose you have a mirrored logical volume (/dev/vg01/lvol4). The mirror copy is
on a disk that you want to remove from the system (/dev/dsk/c7t0d0).
There is room on another disk (/dev/dsk/c5t0d0) in the same volume
group for the mirror copy.
You can move a logical volumeâ s mirror copy from one disk to another by
using pvmove (1M).
To move the copy, you issue the following command:
pvmove -n /dev/vg01/lvol4 /dev/dsk/c7t0d0 \
/dev/dsk/c5t0d0
Synchronizing a Mirrored Logical Volume At times, the data in
your mirrored copy or copies of a logical volume can become out of sync,
or â staleâ . For example, this might happen if LVM cannot access a disk as
a result of disk power failure. Under such circumstances, in order for
each mirrored copy to re-establish identical data, synchronization must
occur. Usually, synchronization occurs automatically, although there are
times when it must be done manually.

Hope This Helps
I'll sleep when i am dead.