mkmdiskgrp

You can use the mkmdiskgrp command to create a new managed disk group. Managed disk groups are collections of managed disks. Each group is divided into chunks, called extents. These extents are then used to create virtual disks.

Syntax

Read syntax diagramSkip visual syntax diagram>>- svctask -- -- mkmdiskgrp -- --+-------------------------+--->
                                  '- -name -- new_name_arg -'

>-- --+---------------------------------+-- -------------------->
      '- -mdisk --+- mdisk_id_list ---+-'
                  '- mdisk_name_list -'

>-- -ext -- extent_size ---------------------------------------><

Parameters

-name new_name_arg
Optionally specifies a name to assign to the new group.
-mdisk mdisk_id_list | mdisk_name_list
Optionally specifies the name of the managed disk IDs or names to add to the group. You can create an empty MDisk group by not specifying the -mdisk flag.
-ext extent_size
Specifies the size of the extents for this group in MB. The -ext argument can have values of: 16, 32, 64, 128, 256, or 512 (MB).

Description

This command creates a new group, assigning the name (if given). The ID of the new group is returned if the command is successful.

Optionally, you can specify a list of managed disks that will be added to this group. These managed disks cannot belong to another group, and they must have a mode of unmanaged. Use the svcinfo lsmdiskcandidate command to get a list of suitable candidates.

Each managed disk that is a member of this group will be split into extents. The storage available on these disks will be added to a pool of extents available in this group. When a virtual disk is created from this group, free extents from the pool will be used, in accordance with the policy chosen when creating the virtual disk.

All managed disks subsequently added to this group will be split into extents of the same size as assigned to the group.

When choosing an extent size, take into account the amount of storage you want to virtualize in this group. The system maintains a mapping of extents between virtual disks and managed disks. The SAN Volume Controller can only manage a finite number of extents (4 194 304). One cluster can virtualize the following number of extents:

Note:Note: When an image mode VDisk is created, the MDisk group will increase in capacity by the size of the image mode VDisk (not the MDisk capacity) as the image mode VDisk may be smaller than the MDisk itself. If an extent is migrated from the image mode VDisk or MDisk to elsewhere in the group then the VDisk becomes a striped VDisk (for example, no longer image mode) and at this point the available capacity may increase, as the extra capacity available on the MDisk (for example, that which was not part of the image mode VDisk) becomes available.

Possible failures

Examples

An invocation example

svctask mkmdiskgrp -mdisk mdisk13 -ext 512

The resulting output

MDisk Group, id [1], successfully created

(C) Copyright International Business Machines Corporation 2003, 2004