cli_mkvg command

Purpose

Create a volume group on all nodes in a cluster.

Syntax


cli_mkvg   [ -B ] [ -P Partitions ] [ -t factor ] [ -C ] [ -G ] [ -x ] [ -s Size ] 
	    [ -V MajorNumber ] [ -v LogicalVolumes ] [ -y VolumeGroup ] 
	    PhysicalVolume ...

Description

You can use C-SPOC to run the mkvg command with parameters, and make the new logical volume definition available on all cluster nodes.

Flags

-B
Creates a big-type volume group. This type of volume group can accommodate up to 128 physical volumes and 512 logical volumes. Because the vgda space was increased substantially, every vgda update operation (creating a logical volume, changing a logical volume, and adding a physical volume) might take considerably longer to run.
-C
Creates an enhanced concurrent capable volume group. You can use this flag only in a configured PowerHA® SystemMirror® cluster. You can use this flag to create an enhanced concurrent capable volume group.

Enhanced concurrent volume groups use group services. Group services are available with PowerHA SystemMirror and must be configured before you activate a volume group in this mode.

Only enhanced concurrent capable volume groups are supported by a 64-bit kernel. Concurrent capable volume groups are not supported by a 64-bit kernel.

-P Partitions
Specifies the total number of partitions in the volume group. The Partitions variable is represented in units of 1024 partitions. The following values are valid for this flag:
  • 32
  • 64
  • 128
  • 256
  • 512
  • 768
  • 1024
  • 2048
The default value is 32 k (32768 partitions). You can use the chvg command to increase the number of partitions up to the maximum of 2048 k (2097152 partitions). This flag is only valid with the -s flag.
-s size
Sets the number of megabytes (MB) in each physical partition. The size variable is expressed in units of megabytes from 1 (1 MB) - 131072 (128 GB). The size variable must be equal to a power of 2 (example 1, 2, 4, 8). The default value for 32 physical volume groups and 128 physical volume groups is the lowest value that remains within the limitation of 1016 physical partitions per physical volume. The default value for scalable volume groups is the lowest value to accommodate 2040 physical partitions per physical volume.
-t factor
Changes the limit of the number of physical partitions per physical volume, which is specified by a factor. The factor must be 1 - 16 for 32 physical volumes groups. The factor must be 1 - 64 for 128 physical volume groups. The maximum number of physical partitions per physical volume for this volume group changes to a factor of x 1016. The default is the lowest value to remain within the physical partition limit of factor x 1016. The maximum number of physical volumes that can be included in the volume group is maxpvs/factor. This flag is ignored if you use the -s flag.
-V majornumber
Specifies the major number of the volume group that is created.
-v
Specifies the number of logical volumes that can be created. The following values are valid for this flag:
  • 256
  • 512
  • 1024
  • 2048
  • 4096
The default value is 256. You can use the chvg command to increase the number of logical volumes up to the maximum of 4096. This flag is only valid with the -s flag. The last logical volume is reserved for metadata.
-y volumegroup
Specifies the volume group name rather than having the name generated automatically. The volume group names must be unique system wide and can range 1-15 characters. The name cannot begin with a prefix already defined in the predefined device database (PdDv) class in the device configuration database for other devices. The volume group name that is created is sent to standard output. The volume group name can contain only the following characters:
  • a - z
  • 0 - 9
  • _ (underscore character)
  • - (minus character)
  • . (period character)

Example

To create a volume group that contains disks named hdisk3, hdisk5, and hdisk6 with a physical partition size set to 1 megabyte, enter:
cli_mkvg -s 1 hdisk3 hdisk5 hdisk6