VXVM-10 (Manual)
What we will learn
in Next Few Pages,
·
Layered Volume via vxmake
·
Concat-mirror / stripe-mirror
We need
4 Subdisks
4 Plexes – 1 SD for each plex
2 volumes – 2 plexes for each volume
Did u visualize the diagram?
DG,
root@pr-01:>/# vxdg init mdg cds=off d2=c2t2d0 d3=c2t3d0 d4=c2t4d0
d5=c2t5d0
SUBDISK,
root@pr-01:>/# vxmake -g mdg sd d2-01 d2,0,1900032
root@pr-01:>/# vxmake -g mdg sd d3-01 d3,0,1900032
root@pr-01:>/# vxmake -g mdg sd d4-01 d4,0,1900032
root@pr-01:>/# vxmake -g mdg sd d5-01 d5,0,1900032
PLEX,
root@pr-01:>/# vxmake -g mdg plex layer1-01 sd=d2-01
root@pr-01:>/# vxmake -g mdg plex layer1-02 sd=d3-01
root@pr-01:>/# vxmake -g mdg plex layer2-01 sd=d4-01
root@pr-01:>/# vxmake -g mdg plex layer2-02 sd=d5-01
VOLUME,
root@pr-01:>/# vxmake -g mdg -U fsgen vol layer1
plex=layer1-01,layer1-02
root@pr-01:>/# vxmake -g mdg -U fsgen vol layer2
plex=layer2-01,layer2-02
VOLUME START,
root@pr-01:>/# vxvol -g mdg start layer1
root@pr-01:>/# vxvol -g mdg start layer2
Both volumes are supposed to be start here, b’coz after that these
will change in subvolumes. And subvolumes cannot be started
SET THE LAYERED ON (FOR MIRROR)
root@pr-01:>/# vxedit -g mdg set layered=on layer1
root@pr-01:>/# vxedit -g mdg set layered=on layer2
root@pr-01:>/# vxmake -g mdg sd test-subvol01 layer1,0,1900032
root@pr-01:>/# vxmake -g mdg sd test-subvol02 layer2,0,1900032
root@pr-01:>/# vxmake -g mdg plex plex1 sd=test-subvol01,test-subvol02
This will create default Concat-Mirror Structure
If want to create Stripe-Mirror then,
#vxmake –g mdg plex plex1
layout=stripe ncol=2 stwidth=128 sd=test-subvol01,test-subvol02
root@pr-01:>/# vxmake -g mdg -U
fsgen vol catvol plex=plex1
root@pr-01:>/# vxvol -g mdg start
catvol
VxVM vxvol INFO V-5-1-12459 Volume
layer1 of diskgroup mdg is already started
VxVM vxvol INFO V-5-1-12459 Volume
layer2 of diskgroup mdg is already started
root@pr-01:>/# vxprint -htq
Disk group: mdg
dg mdg default default
4000 1411648030.30.pr-01
dm d2 c2t2d0s2 auto
65536 1900032 -
dm d3 c2t3d0s2 auto
65536 1900032 -
dm d4 c2t4d0s2 auto
65536 1900032 -
dm d5 c2t5d0s2
auto 65536 1900032
-
v catvol - ENABLED ACTIVE
3800064 ROUND -
fsgen
pl plex1 catvol ENABLED
ACTIVE 3800064 CONCAT
- RW
sv test-subvol01 plex1
layer1 1 1900032
0 2/2 ENA
sv test-subvol02 plex1
layer2 1 1900032
1900032 2/2 ENA
v layer1 - ENABLED ACTIVE
1900032 ROUND -
fsgen
pl layer1-01 layer1 ENABLED
ACTIVE 1900032 CONCAT
- RW
sd d2-01 layer1-01 d2
0 1900032 0
c2t2d0 ENA
pl layer1-02 layer1 ENABLED
ACTIVE 1900032 CONCAT
- RW
sd d3-01 layer1-02 d3
0 1900032 0
c2t3d0 ENA
v layer2 - ENABLED ACTIVE
1900032 ROUND -
fsgen
pl layer2-01 layer2 ENABLED
ACTIVE 1900032 CONCAT
- RW
sd d4-01 layer2-01 d4
0 1900032 0
c2t4d0 ENA
pl layer2-02 layer2 ENABLED
ACTIVE 1900032 CONCAT
- RW
sd d5-01 layer2-02 d5
0 1900032 0
c2t5d0 ENA
DID U GOT what happened?
NO? Let’s explain
root@pr-01:>/# vxedit -g mdg set layered=on layer1
root@pr-01:>/# vxedit -g mdg set layered=on layer2
We initiate or direct here for mirroring that we are going to create
layered volumes
root@pr-01:>/# vxmake -g mdg sd test-subvol01 layer1,0,1900032
root@pr-01:>/# vxmake -g mdg sd test-subvol02 layer2,0,1900032
Here we made 2 subvolumes from volumes layer1 & layer2
root@pr-01:>/# vxmake -g mdg plex plex1
sd=test-subvol01,test-subvol02
Now created plex from newly created subvolumes
root@pr-01:>/# vxmake -g mdg -U
fsgen vol catvol plex=plex1
Now created Volume on the top of newly created plex
root@pr-01:>/# vxvol -g mdg start
catvol
Started the volume
NOW we can create FS on the volume “catvol” and mount it.
Superb Explanation Thanks a lot..
ReplyDeleteThanks to appreciate my work Dear, request to share if possible so that others can also be benefited
Delete