mkvolgrp
The mkvolgrp command creates a volume group in a storage image.
Parameters
Notes:
- The ID is assigned during volume group creation based on the current configuration, past configuration changes, and other internal considerations. No algorithm is available to accurately predict the newly created volume group ID in every case.
- Ensure that you use the -hosttype parameter when you issue this command.
If you are using an HP-UX operating system, the number of volumes in the volume group must not exceed 7 volumes. This restriction only applies when the hostconnect attribute for the -addrdiscovery parameter is set to reportlun and the associated volume group is of type scsimap256.
- -dev storage_image_ID
- (Optional). The storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or through the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command.
- -hosttype host_type
- (Optional) Use this parameter as an alternative method for specifying the type of Volume Group.
- -type | scsimask | scsimap256 | os400mask
- (Optional). The type of the volume group.
- scsimask (default)
- Creates a SCSI mask volume group. This option is available if the host adapter supports four-byte LUN addresses.
- scsimap256
- Creates a SCSI-MAP 256 volume group.
- os400mask
- Creates an OS/400 mask volume group. The IBM® i host system typically uses fixed block volumes of 520-byte
logical block size. This option is available only if the host adapter supports four-byte LUN
addresses.Note: This volume group is also referred to as SCSI520-MASK. When an error message is displayed for the os400mask, SCSI520-MASK is referenced instead.
- -volume volume_ID | . . .
- (Optional). The array of volume IDs to include in the volume group. For the -type scsimap256 parameter, the array cannot exceed 256 volume ID entries. Otherwise, up to 64 384 entries are allowed.
- -lun lun_ID
- (Optional) The LUN ID in hexadecimal value (00 - FF) which is mapped to the specified volume ID
for a SCSI-MAP256 type volume group. If multiple volume IDs are specified by the
-volume parameter, LUN IDs are assigned consecutively in incremental
order.Note: This parameter is only valid for a SCSI-MAP 256 type volume group. If this parameter is specified for any other type of volume group, the command fails.
- Volume_Group_Name | -
- (Required). The volume group name, not to exceed 16 characters. Ensure that the name is unique within the scope of the storage image. Accepts a fully qualified volume group name or a shortened version, if the -dev parameter is specified.
Example: Creating a volume group in a storage image
dscli> mkvolgrp -dev IBM.2107-75FA120 -volume 0000-000F host_xyz_volumes
Output
Volume group V0 successfully created.