Shrinking a VDisk using the CLI Advanced functions with the CLI Migrating extents using the CLI

This task provides step-by-step instructions for shrinking a VDisk using the CLI.

VDisks can be reduced in size should it be required. However, if the VDisk contains data that is being used, under no circumstances should you attempt to shrink a VDisk without first backing up your data. The SAN Volume Controller arbitrarily reduces the capacity of the VDisk by removing a partial, one or more extents from those allocated to the VDisk. You cannot control which extents are removed and so you cannot guarantee that it is unused space that is removed.

Attention: Attention: This feature should only be used to make a target or auxiliary VDisk the same size as the source or master VDisk when creating FlashCopy mappings or Remote Copy relationships. You should also ensure that the target VDisk is not mapped to any hosts prior to performing this operation.
Steps

Perform the following steps to shrink a VDisk:

  1. Validate that the VDisk is not mapped to any host objects. If the VDisk is mapped, data is displayed.
  2. You can determine the exact capacity of the source or master VDisk. Issue the following command:
    svcinfo lsvdisk -bytes <vdiskname>
  3. Shrink the VDisk by the required amount. Issue the following command:
    svctask shrinkvdisksize -size <capacitytoshrinkby> -unit
    <unitsforreduction> <vdiskname/ID>

Related topics Advanced functions with the CLI Migrating extents using the CLI

(C) Copyright International Business Machines Corporation 2003, 2004