用命令行打开工具帮助文档说明如下:下面有帮大家翻译,照顾E文不好的同学

VMware Virtual Disk Manager – build 471780.
Usage: vmware-vdiskmanager.exe OPTIONS <disk-name> | <mount-point>
Offline disk manipulation utility
Operations, only one may be specified at a time:
-c : create disk. Additional creation options must
be specified. Only local virtual disks can be
created.
-d : defragment the specified virtual disk. Only
local virtual disks may be defragmented.
-k : shrink the specified virtual disk. Only local
virtual disks may be shrunk.
-n <source-disk> : rename the specified virtual disk; need to
specify destination disk-name. Only local virtual
disks may be renamed.
-p : prepare the mounted virtual disk specified by
the mount point for shrinking.
-r <source-disk> : convert the specified disk; need to specify
destination disk-type. For local destination disks
the disk type must be specified.
-x <new-capacity> : expand the disk to the specified capacity. Only
local virtual disks may be expanded.
-R : check a sparse virtual disk for consistency and atte
mpt
to repair any errors.
-e : check for disk chain consistency.
-D : make disk deletable. This should only be used on di
sks
that have been copied from another product.

Other Options:
-q : do not log messages

Additional options for create and convert:
-a <adapter> : (for use with -c only) adapter type
(ide, buslogic, lsilogic). Pass lsilogic for other a
dapter types.
-s <size> : capacity of the virtual disk
-t <disk-type> : disk type id

Disk types:
0 : single growable virtual disk
1 : growable virtual disk split in 2GB files
2 : preallocated virtual disk
3 : preallocated virtual disk split in 2GB files
4 : preallocated ESX-type virtual disk
5 : compressed disk optimized for streaming
6 : thin provisioned virtual disk – ESX 3.x and above

 The capacity can be specified in sectors, KB, MB or GB. The acceptable ranges:                       ide adapter : [1MB, 2040.0GB]                       scsi adapter: [1MB, 2040.0GB]    ex 1: vmware-vdiskmanager.exe -c -s 850MB -a ide -t 0 myIdeDisk.vmdk    ex 2: vmware-vdiskmanager.exe -d myDisk.vmdk    ex 3: vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 0 destinationDisk.vm

dk
ex 4: vmware-vdiskmanager.exe -x 36GB myDisk.vmdk
ex 5: vmware-vdiskmanager.exe -n sourceName.vmdk destinationName.vmdk
ex 6: vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 4 -h esx-name.mycomp
any.com \
-u username -f passwordfile “[storage1]/path/to/targetDisk.vmdk”
ex 7: vmware-vdiskmanager.exe -k myDisk.vmdk
ex 8: vmware-vdiskmanager.exe -p <mount-point>
(A virtual disk first needs to be mounted at <mount-point>)

    具体解释如下:                        VMware Virtual Disk Manager –内部版本471780。

用法:vmware-vdiskmanager.exe选项<disk-name> | <安装点>
离线磁盘操作实用程序
操作,一次只能指定一个:
-c:创建磁盘。必须有其他创建选项
被指定。仅本地虚拟磁盘可以
创建。
-d:对指定的虚拟磁盘进行碎片整理。只要
本地虚拟磁盘可能已碎片整理。
-k:收缩指定的虚拟磁盘。仅本地
虚拟磁盘可能会缩小。
-n <源磁盘>:重命名指定的虚拟磁盘;需要
指定目标磁盘名称。仅本地虚拟
磁盘可能会重命名。
-p:准备由指定的挂载虚拟磁盘
缩小的安装点。
-r <源磁盘>:转换指定的磁盘;需要指定
目标磁盘类型。对于本地目标磁盘
必须指定磁盘类型。
-x <新容量>:将磁盘扩展到指定容量。只要
本地虚拟磁盘可能会扩展。
-R:检查稀疏虚拟磁盘的一致性和atte
mpt
修复任何错误。
-e:检查磁盘链一致性。
-D:使磁盘可删除。仅应在di上使用
s
从另一产品复制的文件。

其他选项:
-q:不记录消息

用于创建和转换的其他选项:
-a <适配器> :(仅与-c一起使用)适配器类型
(ide,buslogic,lsilogic)。将lsilogic传递给其他人
阻尼器类型。
-s <大小>:虚拟磁盘的容量
-t <disk-type>:磁盘类型标识

磁盘类型:
0:单个可增长虚拟磁盘
1:可扩展的虚拟磁盘分为2GB文件
2:预分配的虚拟磁盘
3:将预分配的虚拟磁盘拆分为2GB文件
4:预分配的ESX型虚拟磁盘
5:压缩磁盘针对流进行了优化
6:精简配置的虚拟磁盘– ESX 3.x及更高版本

 可以以扇区,KB,MB或GB指定容量。 可接受范围:                       IDE适配器:[1MB,2040.0GB]                       scsi适配器:[1MB,2040.0GB]    例1:vmware-vdiskmanager.exe -c -s 850MB-助手-t 0 myIdeDisk.vmdk    例2:vmware-vdiskmanager.exe -d myDisk.vmdk    例3:vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 0 destinationDisk.vm

dk
例4:vmware-vdiskmanager.exe -x 36GB myDisk.vmdk
例5:vmware-vdiskmanager.exe -n sourceName.vmdk destinationName.vmdk
例6:vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 4 -h esx-name.mycomp
any.com \
-u用户名-f密码文件“ [storage1] /path/to/targetDisk.vmdk”
前7:vmware-vdiskmanager.exe -k myDisk.vmdk
例8:vmware-vdiskmanager.exe -p <安装点>
(首先需要在<mount-point>挂载虚拟磁盘)

©著作权归作者所有:来自51CTO博客作者yewei1023的原创作品,如需转载,请注明出处,否则将追究法律责任

更多相关文章

  1. 介绍几款 Python 类型检查工具
  2. 为什么range不是迭代器?range到底是什么类型?
  3. Plotly中4种文本类型设置详解
  4. centos 磁盘管理详解
  5. GitHub 热门:微软新开源的 Python 静态类型检查器
  6. 7、文件系统与磁盘划分
  7. Bokeh中独特的数据类型简介: ColumnDataSource | Bokeh 小册子
  8. Python数据类型-List介绍(下)-列表推导式
  9. Python数据类型-List介绍(上)

随机推荐

  1. android 检测耳机是否插入
  2. TableLayout
  3. 手把手教你怎么去除Android(安卓)APP里面
  4. Android(安卓)大图压缩处理,避免OOM
  5. android全屏,去掉title栏的办法
  6. android单元测试Test run failed: Unable
  7. 简约之美Kotlin(一)Android(安卓)Studio创
  8. Android Studio-Gradle项目中添加JNI生成
  9. android 一个奇怪的bug
  10. Android开发如何正确使用WebView