subscribe iconSubscribe to this information

Exporting volume groups and logical volume storage pools

You can use the exportvg command to export a volume group or logical volume storage pool.

Before you start, complete the following tasks:
  1. Determine whether the volume group or logical volume storage pool that you plan to export is a parent to the virtual media repository or to any file storage pools by completing the following steps:
    1. Run the lsrep command to determine whether the volume group or logical volume storage pool that you plan to export is a parent of the virtual media repository. The Parent Pool field displays the parent volume group or logical volume pool of the virtual media repository.
    2. Run the following command to determine whether a file storage pool is a child of the volume group or logical volume pool that you plan to export:
      lssp -detail -sp FilePoolName
      The results list the parent volume group or logical volume storage pool of the file storage pool.
  2. If the volume group or logical volume storage pool that you plan to export is a parent of the virtual media repository or a file storage pool, then complete the following steps.
    Table 1. Prerequisites steps if the volume group or logical volume storage pool is a parent of the virtual media repository or a file storage pool
    Parent of Virtual Media Repository Parent of a file storage pool
    1. Unload the backing device of each file-backed optical virtual target device (VTD) that has a media file loaded, by completing the following steps:
      1. Retrieve a list of the file-backed optical VTDs by running the following command:
        lsmap -all -type file_opt
      2. For each device that shows a backing device, run the following command to unload the backing device:
        unloadopt -vtd VirtualTargetDevice
    2. Unmount the Virtual Media Repository file system by running the following command:
      unmount /var/vio/VMLibrary
    1. Unconfigure the virtual target devices (VTDs) associated with the files contained in the file storage pools by completing the following steps:
      1. Retrieve a list of VTDs by running the following command:
        lssp -bd -sp FilePoolName
        where FilePoolName is the name of a file storage pool that is a child of the volume group or logical volume storage pool that you plan to export.
      2. For each file that lists a VTD, run the following command:
        rmdev -dev VirtualTargetDevice -ucfg
    2. Unmount the file storage pool by running the following command:
      unmount /var/vio/storagepools/FilePoolName
      where FilePoolName is the name of the file storage pool to be unmounted.
To export the volume group or logical volume storage pool, run the following commands:
  1. deactivatevg VolumeGroupName
  2. exportvg VolumeGroupName
To import a volume group or logical volume storage pool, see Importing volume groups and logical volume storage pools.

Send feedback | Rate this page

Last updated: Thu, June 12, 2014