How to convert a mirror-stripe volume to a stripe-mirror
book
Article ID: 100023330
calendar_today
Updated On:
Resolution
VERITAS Volume Manager 3.0 or higher allows subdisks to bebuilt on volumes. This layered volume structure tolerates failure betterand has greater redundancy than the standard volume structure. Building astripe-mirror volume (a.k.a.. stripe-pro), a failing subdisk holding a stripecolumn no longer means loss of that entire plex. Each column is mirrored at thesubdisk level, so only that subdisk needs to be resynchronized after drivereplacement as opposed to the full plex.
To take advantage of layeredvolumes, a mirror-stripe volume can be converted to astripe-mirror using the vxassist convert command.
ForExample:
# vxassist -g test_dg make vol01 2000m layout=mirror-stripe
# vxprint -htr -gtest_dg
v vol01 - ENABLED ACTIVE 4096000 fsgen - SELECT
plvol01-01 vol01 ENABLED ACTIVE 4108944 STRIPE 4/128 RW
sd test_dg08-01vol01-01 test_dg08 0 1027216 0/0 c1t1d0 ENA
sd test_dg09-01vol01-01 test_dg09 0 1027216 1/0 c1t2d0 ENA
sd test_dg03-01vol01-01 test_dg03 0 1025136 2/0 c1t3d0 ENA
sd test_dg04-01vol01-01 test_dg04 0 1025136 3/0 c1t4d0 ENA
plvol01-02 vol01 ENABLED ACTIVE 4100592 STRIPE 4/128 RW
sd test_dg05-01vol01-02 test_dg05 0 1025136 0/0 c2t1d0 ENA
sd test_dg06-01vol01-02 test_dg06 0 1025136 1/0 c2t2d0 ENA
sd test_dg07-01vol01-02 test_dg07 0 1025136 2/0 c2t3d0 ENA
sd test_dg01-01vol01-02 test_dg01 0 1025136 3/0 c2t4d0 ENA
Shows vol01 as amirrored stripe volume. This was common prior to release 3.0.
To convertthis to a stripe-pro volume:
# vxassist -g test_dg convert vol01 layout=stripe-mirror
# vxprint -htr -gtest_dg
v vol01 - ENABLED ACTIVE 4096000 fsgen vol01-03 SELECT
pl vol01-03 vol01 ENABLED ACTIVE 4096000 STRIPE 4/128 RW
svvol01-S01 vol01-03 vol01-L01 1 1024000 0/0 2/2 ENA
v2vol01-L01 - ENABLED ACTIVE 1024000 fsgen - SELECT
p2vol01-P01 vol01-L01 ENABLED ACTIVE 1024000 CONCAT - RW
s2test_dg08-02 vol01-P01 test_dg08 0 1024000 0 c1t1d0 ENA
p2vol01-P02 vol01-L01 ENABLED ACTIVE 1024000 CONCAT - RW
s2test_dg05-02 vol01-P02 test_dg05 0 1024000 0 c2t1d0 ENA
svvol01-S02 vol01-03 vol01-L02 1 1024000 1/0 2/2 ENA
v2vol01-L02 - ENABLED ACTIVE 1024000 fsgen - SELECT
p2vol01-P03 vol01-L02 ENABLED ACTIVE 1024000 CONCAT - RW
s2test_dg09-02 vol01-P03 test_dg09 0 1024000 0 c1t2d0 ENA
p2vol01-P04 vol01-L02 ENABLED ACTIVE 1024000 CONCAT - RW
s2test_dg06-02 vol01-P04 test_dg06 0 1024000 0 c2t2d0 ENA
svvol01-S03 vol01-03 vol01-L03 1 1024000 2/0 2/2 ENA
v2vol01-L03 - ENABLED ACTIVE 1024000 fsgen - SELECT
p2vol01-P05 vol01-L03 ENABLED ACTIVE 1024000 CONCAT - RW
s2test_dg03-03 vol01-P05 test_dg03 0 1024000 0 c1t3d0 ENA
p2vol01-P06 vol01-L03 ENABLED ACTIVE 1024000 CONCAT - RW
s2test_dg07-02 vol01-P06 test_dg07 0 1024000 0 c2t3d0 ENA
svvol01-S04 vol01-03 vol01-L04 1 1024000 3/0 2/2 ENA
v2vol01-L04 - ENABLED ACTIVE 1024000 fsgen - SELECT
p2vol01-P07 vol01-L04 ENABLED ACTIVE 1024000 CONCAT - RW
s2test_dg04-02 vol01-P07 test_dg04 0 1024000 0 c1t4d0 ENA
p2vol01-P08 vol01-L04 ENABLED ACTIVE 1024000 CONCAT - RW
s2test_dg01-02 vol01-P08 test_dg01 0 1024000 0 c2t4d0 ENA
The outputshows that vol01 is a volume holding 4 subvolumes. Each subvolume represents onecolumn of the stripe. The subvolumes in this example are mirrored, displayingthe additional redundancy.
Note: There is no data moved. The vxassistconvert is almost immediate..
Issue/Introduction
How to convert a mirror-stripe volume to a stripe-mirror
Was this article helpful?
thumb_up
Yes
thumb_down
No