exportvg Command
Purpose
Exports the definition of a volume group from a set of physical volumes.
Syntax
exportvg [-b] VolumeGroup
Description
The exportvg command removes the definition of the volume group specified by the VolumeGroup parameter from the system. Since all system knowledge of the volume group and its contents are removed, an exported volume group can no longer be accessed. The exportvg command does not modify any user data in the volume group.
A volume group is a nonshared resource within the system; it should not be accessed by another processor until it has been explicitly exported from its current processor and imported on another. The primary use of the exportvg command, coupled with the importvg command, is to allow portable volumes to be exchanged between processors. Only a complete volume group can be exported, not individual physical volumes.
Using the exportvg command and the importvg command, you can also switch ownership of data on physical volumes shared between two processors.
You can use the System Management Interface Tool (SMIT) smit exportvg fast path to run this command.
- A volume group that has a paging space volume on it cannot be exported while the paging space is active. Before exporting a volume group with an active paging space volume, ensure that the paging space is not activated automatically at system initialization, and then reboot the system.
- The mount point information of a logical volume would be missing from the LVCB (logical volume control block) if it is longer than 128 characters. If the mount points are longer than 128 characters, you must edit the /etc/filesystems file manually when you run the importvg command to import this volume group completely.
Flags
- -b
- Backs up the performance tunable parameters of the volume group that are set with the lvmo command before the exportvg command exports the volume group. When you use this flag, the exportvg command output displays the name of the file in which the performance tunable parameters are saved.
Exit Status
This command returns the following exit values:
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
Security
Examples
To remove volume group vg02 from the system, enter:
exportvg vg02
The definition of vg02 is removed from the system and the volume group cannot be accessed.
Files
Item | Description |
---|---|
/usr/sbin | Directory where the exportvg command resides. |