VXVM - Creating A Mirrored Volume From Two Concatinated Plexes
VXVM - Creating A Mirrored Volume From Two Concatinated Plexes
We have a host with two disk controllers c1 & c2 and with 4 disks of equal size – c1t0d0 , c1t1d0 , c2t0d0
and c2t1d0
This can be done by two way. Either by the menu utility vxdiskadm
# vxdiskadm => Add or initialize disks
or directly by using this command four times-
# vxdiskadd cxtxdx
In Both case you have to answer some questions. It will even ask you to create our new diskgroup – mydg
# vxdisk list
So on each disk we can use “0” as the offset to create the first subdisk .
Just showing the tasks related to first disk disk01
Now we will create the second subdisk disk01-02 on disk01 using this offset info.
Check that disk01 now contains two subdisk disk01-01 and disk01-02
# vxprint –htr
Create Subdisks accordingly on disk02,disk03 and disk04.. Keep the subdisk sizes same in each disk.>
Creating Plexes
Now we will create a Plex – datamirror only from sd – disk03-01 and then attach sd- disk04-01 to it
separately just to learn . But Doing it in single step is better.
You can directly create the Mirrored Volume form both of the plexes-
# vxmake –U fsgen vol data plex=data-main,data-mirror
Now the status of your newly created volume & plexes would be
# vxprint -htr
27.06.04