Expanding a Virtual disk that is mapped to an AIX host Expanding VDisks Expanding a Virtual disk that is mapped to a Windows 2000 host

This topic includes step-by-step instructions for expanding a virtual disk (VDisk) that is mapped to an AIX host.

Prerequisites

VDisks that are in participating in Flash Copy mappings or in Remote Copy relationships cannot be expanded.

Determine the exact size of the source or master VDisk by issuing the following command-line interface (CLI) command:

svcinfo lsvdisk -bytes <vdiskname>
Context

This feature can be used in two ways:

Steps

Perform the following steps to expand a VDisk that is mapped to an AIX host:

  1. Determine the VDisk you wish to expand and remember its <vdiskname>.
  2. Verify that this VDisk is mapped to an AIX host.
  3. Determine the volume group that contains the VDisk (you must know the VDisk to hdisk relationship)
  4. Quiesce all I/O operations to all volumes that belong to the volume group and sync the filesystems mounted on this volume group.
  5. Check the current type of the VDisk by viewing the VDisk details in the Work with VDisks panel.
    Notes:
    Notes:
    1. If the VDisk has a type of image, it cannot be expanded.
    2. If the VDisk has a type of sequential, it becomes a striped VDisk when you expand it.
  6. Deactivate the volume group that contains this VDisk. Issue the following command from the command prompt:
    varyoffvg <volume_group>
  7. Expand the VDisk using either of the following methods:
    • From the Work with VDisks panel, select the VDisk and select the Expand task. Enter the capacity by which you wish to extend this VDisk and the select the appropriate units. Select one, more, or all of the MDisks from the list. These will be the MDisks that provide the extra capacity. Optionally, select the format checkbox if you want this extra capacity to be formatted before use.
    • From the command prompt issue the following command:
      svctask expandvdisksize
  8. 8. Re-activate the volume group so that the change in size is detected by the HBA device driver. Issue the following command from the command prompt:
    varyonvg <volume_group>
  9. Run the change volume group command to notify the LVM that the size has changed. Issue the following command from the command prompt:
    chvg -g <volume_group>
  10. Expand all the filesystems that are mounted on this VDisk (or use the new capacity as required)
Post-processing requirements

Restart I/O operations to the volume group.

Related topics Expanding VDisks Expanding a Virtual disk that is mapped to a Windows 2000 host

(C) Copyright International Business Machines Corporation 2003, 2004