In today post I will show how to create and brake a mirrored volume in Veritas Volume Manager and Logical Volume Manager.
Creating a mirror of a volume and later split it in LVM is quite easy an can be done with a few commands. I’m going to suppose that the original volume is already created.
- Extend the Volume Group that contain the
It has to be done with the same number of disks and of the same size that the ones within the VG.
If the VG are 1.0 or 2.0 version the merge can not be performed if the group is in shared mode, for the 2.1 volume groups the
lvmerge can be done in any mode.
The order to do the merge is the copy FIRST and the master SECOND. This is very important if don’t want to sync the mirror in wrong direction.
The process in VxVM is in many ways similar to the LVM one.
- Add a new disk/disks to the
vxdiskadm tool and select
Add or initialize one or more disks.
Enter the disk and answer the questions according to your configuration and exit the tool when the process is done.
To do this just disassociate the corresponding
plex from the volume.
- Reattach the
plex to the volume and reestablish the mirror.
And we are done for now, more VxVM stuff in a future post.