Creates a volume group.
The mkvg command creates a new volume group using the physical volumes represented by the PhysicalVolume parameter. After creating the volume group, the mkvg command automatically activates the new volume group using the activatevg command.
Flag name | Description |
---|---|
-f | Forces the volume group to be created on the specified physical volume unless the physical volume is part of another volume group in the Device Configuration Database or a volume group that is active. |
-vg VolumeGroup | Specifies the volume group name rather than
having the name generated automatically. Volume group names must be
unique system wide and can range from 1 to 15 characters. The name
cannot begin with a prefix already defined in the PdDv class in the
Device Configuration database for other devices. The volume group
name created is sent to standard output. 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. |
mkvg hdisk3 hdisk5 hdisk6
The volume group is created with an automatically generated name, which is displayed.
mkvg -vg newvg hdisk1