restorevgstruct command
Purpose
Restores the user volume group.
Syntax
restorevgstruct { -ls | -vg VolumeGroupLabel [ DiskName ... ] }
Description
The restorevgstruct command restores the structure of a previously saved user volume group. If the -ls flag is specified, a list of previously-saved volume groups and the date each volume group was saved is displayed. This command does not work on rootvg.
Flags
Flag name | Description |
---|---|
DiskName... | Specifies the names of disk devices to be used instead of the disk devices saved in the volume group structure. Target disk devices must be defined as empty physical volumes; that is, they must contain a physical volume identifier and must not belong to a volume group. If the target disk devices belong to a volume group, they must be removed from the volume group using the reducevg command. Also, the target disk device cannot be a physical volume that is assigned to a shared memory pool (to be used as a paging space device by a shared memory partition). |
-ls | Displays a list of previously saved volume groups. |
-vg | Specifies the name of the VolumeGroup to restore. |
Exit Status
Examples
- To restore the volume group myvg, onto the hdisk2 and hdisk3 disks,
enter:
restorevgstruct myvg hdisk2 hdisk3
- To list all previously saved volume groups, enter:
The message generated would be similar to:restorvgstruct -ls
-rw-r--r-- 1 root system 51200 Jun 18 10:53 myvg.data -rw-r--r-- 1 root system 51200 Jun 18 10:53 myvg2.data