Table of ContentsView in Frames

The disk resize command

The disk resize command increases or decreases the disk by a user-specified size, as long as that figure falls within the SnapDrive-specified minimum and maximum values.

Syntax for this command is:

sdcli disk resize

[ -m MachineName ]

{ -p LUNpath | UNCPath

-d MountPoint}

-z DriveSizeIncrement

[ -s SnapshotName]

[ -x LunSnapshot ]

-m MachineName
indicates the machine on which you want to execute the disk resize operation. If no machine name is specified, the command executes on your local machine.

-p LUNPath | UNCPath
specifies the LUN path include the storage system name or the UNC path to the location of the LUN file on the storage system.

-d MountPoint
specifies the mount point volume name or CSV reparse point of the LUN.

DriveSizeIncrement is the amount by which you want to increase or decrease the size of the disk. When decreasing the size of the disk, use a dash (-) before the amount to indicate a negative value. You can specify a postfix of MB, GB, or TB. If no postfix is specified, the default is MB.

-s SnapshotName
specifies the Snapshot copy name to use when making a Snapshot copy for restore.

-x LunSnapshot
specifies that a Snapshot copy is taken only for the LUNs explicitly specified in the MountPointList. When no value is specified, a Snapshot copy is made of all the LUN drives on the storage system volume.

Examples

sdcli disk resize -d G: -z -500

The preceding example shrinks the size of the disk mapped to "G:" by 500 megabytes.

sdcli disk resize -d P: -z 1GB

The preceding example increases the LUN mapped to "P:" by 1 GB. (In practice, SnapDrive expands the disk by the amount specified by -z, plus a certain increment required for system overhead.)

sdcli disk resize -d \\?\Volume{f1816466-f1d8-4b96-b547-2ce12415aee4}\ -z +100

The preceding example increases a CSV disk by 100 MB using the CSV volume name.