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

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.
-ls Displays a list of previously saved volume groups.
-vg Specifies the name of the VolumeGroup to restore.

Exit Status

See Virtual I/O Server command exit status.

Examples

  1. To restore the volume group myvg, onto the hdisk2 and hdisk3 disks, enter:
    restorevgstruct myvg hdisk2 hdisk3
  2. To list all previously saved volume groups, enter:
    restorvgstruct -ls
    The message generated would be similar to:
    -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
    

Related Information

The activatevg command, the savevgstruct command, the chvg command, the deactivatevg command, the exportvg command, the extendvg command, the importvg command, the lsvg command, the mkvg command, and the syncvg command.


Send feedback |  Rate this page