The dpmhyperv ExpandVirtDisk command expands the size of a virtual disk image on a Hyper-V host.
This command has the following format:
dpmhyperv ExpandVirtDisk [-ws_user username] [-ws_password password] [-ws_encrypted_password] -hypervHost hostname -path location -size disk_size [-async] [-pre] [-post] [-locale iso639value]
(Optional) Specifies the CA Server Automation user name.
(Optional) Specifies the CA Server Automation user password.
(Optional) Indicates whether the CA Server Automation password is encrypted.
Specifies the name of the Hyper-V host.
Defines the location of the virtual disk.
Specifies the size of the drive in GB.
Note: The size of the disk can be changed later on.
(Optional) Runs the command in the asynchronous mode.
(Optional) Generates an event before the operation is complete.
(Optional) Generates an event after the operation is complete.
(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".
Example: Expand the Size of a Virtual Disk
This example expands the size of the virtual disk image on the Hyper-V host, "hserver" to 2 GB in the asynchronous mode. This command returns the Hyper-V job ID of the created task.
dpmhyperv ExpandVirtDisk -ws_user admin -ws_password #test# -hypervHost hserver -path C:\data\Disks\1.vhd -size 2 -async
Copyright © 2013 CA. All rights reserved. |
|