You can use the exportvg command to export a
volume group or logical volume storage pool.
Before you start, complete the following tasks:
- 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:
- 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.
- 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.
- 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 |
- Unload the backing device of each file-backed optical virtual target device
(VTD) that has a media file loaded, by completing the following steps:
- Retrieve a list of the file-backed optical VTDs by running the following
command:
lsmap -all -type file_opt
- For each device that shows a backing device, run the following command
to unload the backing device:
unloadopt -vtd VirtualTargetDevice
- Unmount the Virtual Media Repository file system by running the following
command:
unmount /var/vio/VMLibrary
|
- Unconfigure the virtual target devices (VTDs) associated with the files
contained in the file storage pools by completing the following steps:
- 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.
- For each file that lists a VTD, run the following command:
rmdev -dev VirtualTargetDevice -ucfg
- 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:
- deactivatevg VolumeGroupName
- exportvg VolumeGroupName
To import a volume group or logical volume storage pool, see
Importing volume groups and logical volume storage pools.