importvg command

Purpose

Imports a new volume group definition from a set of physical volumes.

Syntax

importvg [ -vg VolumeGroup ] PhysicalVolume

Description

The importvg command makes the previously exported volume group known to the system. The PhysicalVolume parameter specifies only one physical volume to identify the volume group; any remaining physical volumes (those belonging to the same volume group) are found by the importvg command and included in the import. An imported volume group is automatically activated. When a volume group with file systems is imported, the /etc/filesystems file is updated with values for the new logical volumes and mount points.

After importing the volume group, you must run the fsck command before the file systems can be mounted. Care should be taken to avoid using mount point longer than 128 characters as the mount point information would be missing from the LVCB (logical volume control block) if it is longer than 128 characters. In this case, the importvg command will not be able to update the /etc/filesystems file with the stanza for the newly imported logical volume.

The importvg command changes the name of a logical volume if the name already exists in the system. It prints a message and the new name to standard error, and updates the /etc/filesystems file to include the new logical volume name.

Flags

Flag name Description
-vg VolumeGroup Specifies the name to use for the new volume group. If this flag is not used, the system automatically generates a new name.

The volume group name can only contain the following characters: "A" through "Z," "a" through "z," "0" through "9," or "_" (the underscore), "-" (the minus sign), or "." (the period). All other characters are considered invalid.

Examples

  1. To import the volume group bkvg from physical volume hdisk07, type:
    importvg -vg bkvg hdisk07
    The volume group bkvg is made known to the system.

Restrictions

Mount points cannot be longer than 128 characters.




Last updated: Wed, November 18, 2020