Originally posted by: SystemAdmin
I have used all three commands. It depends on what you want to do.
1. mklvcopy mklvcopy is used to create 1 or 2 copies of an existing LV in the same volume group.
There are certain restrictions if you are are using striped filesysem.
Also you need the same amount of free PP's on other disks to quarantee the copy will complete.
I have used this many times to guarantee oracle availability.
2. cplv I have used the cplv when I want to move or copy a filesystem or lv from one Volume group to another volume group.
If cplv is used to move a filesystem ALL permissions are retained on the filesystem.
Yes, The lv MUST be offline to quarantee a clean copy.
3. mirrorvg I have used this command to mirror a COMPLETE Volume Group. This means ALL lv's in the volume group are mirrored.
Also the quorum for the VG is changed.
Depending on the release of the OS you will need to varyoff the volume group and varyon the volume group for the quorum values to be activated.
All three commands use all PPs in the source LVs. mklvcopy and mirrorvg use the exact same number of PP's for the copies since they are in the same Volume Group.
The cplv is a little different - since PP's can be different sizes across Volume Groups. The cplv will use the required number of PP's in the target that will be able to hold the source lv PP's . Kind of get what I am talking about ? .
#AIX-Forum