Friday, April 18, 2008

AIX remove a copy of logical volume

Removing a copy of a logical volume
You can use the rmlvcopy command to remove copies of logical partitions of a logical volume. Use the rmlvcopy command to remove a set of copies for the logical partitions testlv as follows:
1. lslv -m testlv shows that testlv has three mirror copies located on hdisk5,
hdisk6, and hdisk7.
2. rmlvcopy testlv 2 hdisk6 removes copies located on hdisk6 and leaves two
mirror copies.
3. lslv -m testlv shows that testlv now has two mirror copies located on
hdisk5 and hdisk7.


Example:
# lslv -m testlv
testlv:/test
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0056 hdisk5 0056 hdisk6 0059 hdisk7
0002 0057 hdisk5 0057 hdisk6 0060 hdisk7
0003 0058 hdisk5 0058 hdisk6 0061 hdisk7
# rmlvcopy testlv 2 hdisk6
# lslv -m testlv
testlv:/test
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0056 hdisk5 0059 hdisk7
0002 0057 hdisk5 0060 hdisk7
0003 0058 hdisk5 0061 hdisk7