vmkfstools change disk format or extend share disk

本文介绍如何通过两种方法更改VMDK磁盘格式,包括使用Storage vMotion及vmkfstools命令行工具。文章还提供了如何扩展Eager Zeroed Thick VMDK磁盘大小的具体步骤。

Enabling clustering features for an existing virtual disk by converting in place (1035823)clustering

通过就地转换为现有虚拟磁盘启用群集功能 (2062869)请添加链接描述

Attempts to extend the size of an EagerZeroedThick VMDK from the vSphere Client might result in a LazyZeroedThick VMDK (2054563)请添加链接描述

How to change VMDK disk format from Thin and Thick Provision Lazy Zeroed to Thick Provision Eager Zeroed

方法一Use Storage vMotion to change the disk format

方法二将虚拟磁盘转换为厚置备置零磁盘:

a) 如果 VMDK 虚拟磁盘的类型为精简置备,请使用 vmkfstools --inflatedisk 命令将此磁盘转换为厚置备置零。

例如:

vmkfstools --inflatedisk /vmfs/volumes/DatastoreName/VMName/VMName.vmdk

注意:inflate 命令会报告完成的百分比。

b) 如果 VMDK 虚拟磁盘的类型为厚置备,请使用 vmkfstools --eagerzero 命令将此磁盘转换为厚置备置零。

例如:

vmkfstools --eagerzero /vmfs/volumes/DatastoreName/VMName/VMName.vmdk

注意:eager zero 命令会报告完成的百分比。

Powering on the virtual machine fails with the error: Thin/TBZ disks cannot be opened in multiwriter mode (1033570)请添加链接描述

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2040969请添加链接描述

How to extend Share disks size

If you need to extend the VMDK and want the VMDK to be EagerZeroedThick, run this command:
For example, to extend the size of the virtual disk to 60 GB:

#vmkfstools -X 60G -d eagerzeroedthick /vmfs/volumes/Datastore_name/virtual_Machine_folder/virtualmachinedisk.vmdk

Notes:
In the preceding vmkfstools -X example, 60 GB is the size that you want the disk file to be, is not the size by which you want to extend the disk file.

If you extend the disk by using UI, you have no control over all the options to extend the disk. As a result, the EagerZeroedThick VMDK automatically becomes LazyZeroedThick.

转载于:https://blog.51cto.com/549687/2130630

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值