LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

MIrroring Problem using lvextend: Striped mirrors are not supported

 
SOLVED
Go to solution
sysad1_1
Advisor

MIrroring Problem using lvextend: Striped mirrors are not supported

Hi Gurus,

Need your help. I am trying to mirror my LV's using three PV's. This is my command:

ccbr2prd root:/tmp/mirror> lvextend -m 1 /dev/vgtest01/lvname /dev/dsk/c37t12d4 /dev/dsk/c37t12d5 /dev/dsk/c37t12d6
Striped mirrors are not supported. To enable mirroring options (-m, -M, -c),
do not specify the striping options (-i, -I) when creating logical volumes.

Reason for mirroring is that we presented a new storage and will remove old one. Help me please.
17 REPLIES 17
Shibin_2
Honored Contributor
Solution

Re: MIrroring Problem using lvextend: Striped mirrors are not supported

Do you have any striping enabled?

Can you send lvdisplay /dev/vgtest01/lvname ?
Regards
Shibin
Michal Kapalka (mikap)
Honored Contributor

Re: MIrroring Problem using lvextend: Striped mirrors are not supported

hi,

check this thread from ITRC :

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1137690

a specially advice from Torsten.

mikap
sysad1_1
Advisor

Re: MIrroring Problem using lvextend: Striped mirrors are not supported

here's one screenshot of one of the LV's i want to mirror

root:/tmp/mirror> lvdisplay /dev/DMXvgfs1bcv/lvctrlm
--- Logical volumes ---
LV Name /dev/DMXvgfs1bcv/lvctrlm
VG Name /dev/DMXvgfs1bcv
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 2544
Current LE 159
Allocated PE 159
Stripes 3
Stripe Size (Kbytes) 64
Bad block NONE
Allocation strict
IO Timeout (Seconds) default


sysad1_1
Advisor

Re: MIrroring Problem using lvextend: Striped mirrors are not supported

the current VG is using 3 PVs from the old storage amounting to 139gigavytes.
(/dev/dsk/cOldtxdx /dev/dsk/cOldtydy /dev/dsk/cOldtzdz)

i extended the VG using 3 PV's from the new storage (/dev/dsk/cNewtxdx /dev/dsk/cNew/tydy & /dev/dsk/cNewtzdz) which in total is also 139 gig.

Since we are planning to migrate I am trying to mirror all LV's to the PV's which came from the new storage.

The current LV's are striped to the PV's from the old storage that is why I am mirroring my LV to the three PV's from the new storage.

lvextend -m 1 /dev/vgxxx/lvolxx /dev/dsk/cNewtxdx /dev/dsk/cNew/tydy /dev/dsk/cNewtzdz
lvreduce -m 0 /dev/vgxxx/lvolxx /dev/dsk/cOldtxdx /dev/dsk/cOldtydy /dev/dsk/cOldtzdz

If this is successful I will then do a vgreduce to remove all the PV's from the old storage
Shibin_2
Honored Contributor

Re: MIrroring Problem using lvextend: Striped mirrors are not supported

No choice. Striped mirrors are not supported. If you want to migrate, create new VG and LV, then restore the data to new one.
Regards
Shibin
Bill Hassell
Honored Contributor

Re: MIrroring Problem using lvextend: Striped mirrors are not supported

Striped mirrors are only available with 11.31.


Bill Hassell, sysadmin
sysad1_1
Advisor

Re: MIrroring Problem using lvextend: Striped mirrors are not supported

how come that my existing setup is striped?
my box is running hp-ux 11.11

present LV's are striped across 3 pv's
sysad1_1
Advisor

Re: MIrroring Problem using lvextend: Striped mirrors are not supported

here's a screenshot of lvdisplay -v

ccbr2prd root:/tmp/mirror> lvdisplay -v /dev/DMXvgfs1bcv/lvctrlm | more
--- Logical volumes ---
LV Name /dev/DMXvgfs1bcv/lvctrlm
VG Name /dev/DMXvgfs1bcv
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 2544
Current LE 159
Allocated PE 159
Stripes 3
Stripe Size (Kbytes) 64
Bad block NONE
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c10t2d3 53 53
/dev/dsk/c12t3d3 53 53
/dev/dsk/c10t2d2 53 53

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c10t2d2 00523 current
00001 /dev/dsk/c10t2d3 00523 current
00002 /dev/dsk/c12t3d3 00523 current
00003 /dev/dsk/c10t2d2 00524 current
00004 /dev/dsk/c10t2d3 00524 current
00005 /dev/dsk/c12t3d3 00524 current
00006 /dev/dsk/c10t2d2 00525 current
00007 /dev/dsk/c10t2d3 00525 current
00008 /dev/dsk/c12t3d3 00525 current
00009 /dev/dsk/c10t2d2 00526 current
00010 /dev/dsk/c10t2d3 00526 current
00011 /dev/dsk/c12t3d3 00526 current
00012 /dev/dsk/c10t2d2 00527 current
00013 /dev/dsk/c10t2d3 00527 current
00014 /dev/dsk/c12t3d3 00527 current
00015 /dev/dsk/c10t2d2 00528 current
Terry.giblin
Frequent Advisor

Re: MIrroring Problem using lvextend: Striped mirrors are not supported

For the record HP UX has supported "striped mirror's" or is it "mirrored stripes" since 10:20, I remember my old friend, the famous -d option.

You can not stripe a mirror, but you can mirror a stripe.

But it also depends on many other factors as well.

I assume you solve your problem.