The dpmhyperv CreateVirtDisk command lets you create a virtual disk image on a Hyper-V host.
This command has the following format:
dpmhyperv CreateVirtDisk [-ws_user username] [-ws_password password] [-ws_encrypted_password] -hypervHost hostname -path location -diskType {dynamic|fixed} -size drive_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 full path of the virtual disk image.
Specifies the type of the virtual disk image. Options include the following:
Indicates that the disk is of fixed size and cannot be increased later.
Indicates that the disk is of dynamic size and can be increased later on as required.
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: Create a Virtual Disk Image
This example creates a virtual disk, "01.vhd" of 5 GB.
dpmhyperv CreateVirtDisk -hypervHost hvserver -path C:\data\Disks\01.vhd -type dynamic -size 5 -async
Copyright © 2013 CA. All rights reserved. |
|