Create VDisk-to-host mappings using the CLI Scenario: typical usage for the command-line interface Creating a FlashCopy consistency group and adding mappings using the CLI

This task provides step-by-step instructions about how to create VDisk-to-host mappings.

Prerequisites

We are going to map the VDisks named, mainvdisk1 and mainvdisk2, to the host named demohost1. We are also going to map the VDisks named, bkpvdisk1 and bkpvdisk2, to the host named demohost2. The VDisks, mainvdisk1 and mainvdisk2, are contained in the managed disk (MDisk) group, mainmdiskgroup; while the VDisks, bkpvdisk1 and bkpvdisk2, are contained in the MDisk group, bkpmdiskgroup.

Steps

Perform the following steps to create VDisk-to-host mappings:

  1. Open a command prompt window.
  2. Type the svctask mkvdiskhostmap to create VDisk-to-host mappings.
    Example

    In our hypothetical scenario, the commands to create VDisk-to-host mappings are:

    svctask mkvdiskhostmap -host demohost1 mainvdisk1
    svctask mkvdiskhostmap -host demohost1 mainvdisk2
    svctask mkvdiskhostmap -host demohost2 bkpvdisk1
    svctask mkvdiskhostmap -host demohost2 bkpvdisk2
    

    The above set of commands map each VDisk to a host.

Related topics Scenario: typical usage for the command-line interface Creating a FlashCopy consistency group and adding mappings using the CLI

(C) Copyright International Business Machines Corporation 2003, 2004