Adding MDisks to MDisk groups using the CLI Scenario: typical usage for the command-line interface Create virtual disks (VDisks)

This task provides step-by-step instructions for adding MDisks to MDisk groups using the command-line interface (CLI).

The managed disks must be in unmanaged mode. Disks that already belong to a group cannot be added to another group until they have been deleted from their current group. You can delete a managed disk from a group under the following circumstances:

Steps

Perform the following steps to add MDisks to MDisk groups:

  1. Open a command prompt window.
  2. Type the svcinfo lsmdiskgrp command to list the existing MDisks groups.
    Example

    In our hypothetical scenario, we have two MDisk groups, one with four managed disks and one with no managed disks. Type the following command:
    svcinfo lsmdiskgrp -delim :


    This command displays the following:
    id:name:status:mdisk_count:vdisk_count:
    capacity:extent_size:free_capacity
    0:mainmdiskgroup:online:4:0:1093.2GB:32:1093.2GB
    1:bkpmdiskgroup:online:0:0:0:32:0


  3. To add Mdisks to the MDisk group, issue the svctask addmdisk command.
    Example

    In our hypothetical scenario, the command to add Mdisks to the MDisk group is:
    svctask addmdisk -mdisk mdisk4:mdisk5:mdisk6:mdisk7 bkpmdiskgroup
    This command will add four MDisks mdisk4, mdisk5, mdisk6 and mdisk7 to the MDisk group called bkpmdiskgroup.

Related topics Scenario: typical usage for the command-line interface Create virtual disks (VDisks)

(C) Copyright International Business Machines Corporation 2003, 2004