The dpmhv-createVirtDisk command lets you create virtual disk.
This command has the following format:
dpmhv-createVirtDisk -host hostname -path pathname -type{fixed,dynamic} -sizeGB size [-async] [-retval] [-silent]
Specifies the name of the Hyper-V server host.
Specifies the path of the virtual disk that you want to create.
Specifies the type of the virtual disk that you want to create. Options include the following:
Specifies the virtual disk type as fixed.
Specifies the virtual disk type as dynamic.
Specifies the size of the virtual disk in gigabytes.
(Optional) Specifies the option to execute the command asynchronously. By default, this command is executed synchronously.
Note: If this command completes the execution before executing this option, it returns a job ID that is used to view the operation status.
Returns a value for further processing.
Specifies not to direct the output to the screen.
Example: Create a Virtual Disk
This example creates the virtual disk of size 1 GB.
dpmhv-createVirtDisk -host hvserver -path C:\data\Disks\01.vhd -type fixed -sizeGB 1
Copyright © 2013 CA. All rights reserved. |
|