Wednesday, 4 January 2012

AIX - LVM - Export Volume Group

Using exportvg command we can export VG (including all the PV’s) from one server to another server.
If you have ServerA, in this server has DATAVG with two PV’s. Now we want export DATAVG to ServerB
Before exporting the DATAVG, we should Varryoff the DATAVG, i.e. DATAVG is moved to offline.

#varryoff DATAVG (Varryoff the DATAVG)
#exportvg DATAVG (VG information removed from ODM)


Now DATAVG is exported from the ServerA, after this run the following command to verify the export.
#lsvg


It won’t show DATAVG name. Because DATAVG is exported.
Then you should remove PV from the configuration

#rmdev –dl hdisk3
#rmdev –dl hdisk4


After that we can remove the PV’s from ServerA for import DATAVG to ServerB.

No comments:

Post a Comment