POWER7 information

Mapping virtual disks to physical disks

Find instructions for mapping a virtual disk on a client logical partition to its physical disk on the Virtual I/O Server.

This procedure shows how to map a virtual Small Computer Serial Interface (SCSI) disk on an AIX® or Linux client logical partition to the physical device (disk or logical volume) on the Virtual I/O Server.

To map a virtual disk to a physical disk, you need the following information. This information is gathered during this procedure:
  • Virtual device name
  • Slot number of the virtual SCSI client adapter
  • Logical unit number (LUN) of the virtual SCSI device
  • Client logical partition ID

Follow these steps to map a virtual disk on an AIX or Linux client logical partition to its physical disk on the Virtual I/O Server:

  1. Display virtual SCSI device information on the AIX or Linux client logical partition by typing the following command:
    lscfg -l devicename
    This command returns results similar to the following:
    U9117.570.1012A9F-V3-C2-T1-L810000000000  Virtual SCSI Disk Drive
  2. Record the slot number, which is located in the output, following the card location label C. This identifies the slot number of the virtual SCSI client adapter. In this example, the slot number is 2.
  3. Record the LUN, which is located in the output, following the LUN label L. In this example, the LUN is 810000000000.
  4. Record the logical partition ID of the AIX or Linux client logical partition:
    1. Connect to the AIX or Linux client logical partition. For example, using Telnet.
    2. On the AIX or Linux logical partition, run the uname -L command.
      Your results should look similar to the following:
      2  fumi02
      The logical partition ID is the first number listed. In this example, the logical partition ID is 2. This number is used in the next step.
    3. Type exit.
  5. If you have multiple Virtual I/O Server logical partitions running on your system, determine which Virtual I/O Server logical partition is serving the virtual SCSI device. Use the slot number of the client adapter that is linked to a Virtual I/O Server, and a server adapter. Use the HMC command line to list information about virtual SCSI client adapters in the client logical partition.
    Log in to the HMC, and from the HMC command line, type lshwres . Specify the managed console name for the -m parameter and the client logical partition ID for the lpar_ids parameter.
    Note:
    • The managed console name, which is used for the -m parameter, is determined by typing lssyscfg -r sys -F name from the HMC command line.
    • Use the client logical partition ID recorded in Step 4 for the -lpar_ids parameter.
    For example:
    lshwres -r virtualio --rsubtype scsi -m fumi --filter lpar_ids=2
    This example returns results similar to the following:
    lpar_name=fumi02,lpar_id=2,slot_num=2,state=null,adapter_type=client,remote_lpar_id=1,
    remote_lpar_name=fumi01,remote_slot_num=2,is_required=1,backing_devices=none  
    Record the name of the Virtual I/O Server located in the remote_lpar_name field and slot number of the virtual SCSI server adapter, which is located in the remote_slot_num=2 field. In this example, the name of the Virtual I/O Server is fumi01 and the slot number of the virtual SCSI server adapter is 2.
  6. Log in to the Virtual I/O Server.
  7. List virtual adapters and devices on the Virtual I/O Server by typing the following command:
    lsmap -all
  8. Find the virtual SCSI server adapter (vhostX) that has a slot ID that matches the remote slot ID recorded in Step 5. On that adapter, run the following command:
    lsmap -vadapter devicename
  9. From the list of devices, match the LUN recorded in step 3 with LUNs listed. This is the physical device.


Send feedback Rate this page

Last updated: Thu, April 05, 2018