esxi6.5磁盘格式转换

  • Post author:
  • Post category:其他

在打开某个虚拟机是报如下错误:
VMware ESX 无法打开虚拟磁盘“/vmfs/volumes/3a500015-174735eb-5e3b-a0369f85b178/nfsd/nfsd.vmdk”以进行群集。请确认该虚拟磁盘是使用“厚”选项创建的。
查看虚拟机磁盘,其中名为nfsd.vmdk的虚拟磁盘格式为厚置备,延迟置零,而其他虚拟磁盘格式都为厚置备,置零
打开esxi的ssh服务,通过ssh登录esxi后进入虚拟磁盘所在目录,并执行如下命令查看磁盘格式:

vmkfstools -t0 ./nfsd.vmdk

执行结果如下:

[           0:   183500800] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 238962081792 -->  239145582592)]
[   183500800:    85983232] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239145582592 -->  239231565824)]
[   269484032:     3145728] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239231565824 -->  239234711552)]
[   272629760:   265289728] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239234711552 -->  239500001280)]
[   537919488:     4194304] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239500001280 -->  239504195584)]
[   542113792:     6291456] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239504195584 -->  239510487040)]
[   548405248:     4194304] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239510487040 -->  239514681344)]
[   552599552:   253755392] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239514681344 -->  239768436736)]
[   806354944:     3145728] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239768436736 -->  239771582464)]
[   809500672:     1048576] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239771582464 -->  239772631040)]
[   810549248:     1048576] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239772631040 -->  239773679616)]
[   811597824:   263192576] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 239773679616 -->  240036872192)]
[  1074790400:    82837504] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 240036872192 -->  240119709696)]
[  1157627904:     2097152] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 240119709696 -->  240121806848)]
[  1159725056:   536870912] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 240121806848 -->  240658677760)]
[  1696595968:    80740352] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 240658677760 -->  240739418112)]
[  1777336320:   403701760] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 240739418112 -->  241143119872)]
[  2181038080:   124780544] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 241228054528 -->  241352835072)]
[  2305818624:    81788928] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 241143119872 -->  241224908800)]
[  2387607552:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 241352835072 -->  241889705984)]
[  2924478464:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 241889705984 -->  242426576896)]
[  3461349376:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 242426576896 -->  242963447808)]
[  3998220288:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 242963447808 -->  243500318720)]
[  4535091200:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 243500318720 -->  244037189632)]
[  5071962112:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 244037189632 -->  244574060544)]
[  5608833024:    29360128] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 244574060544 -->  244603420672)]
[  5638193152:   536870912] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 244603420672 -->  245140291584)]
[  6175064064:   232783872] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 245140291584 -->  245373075456)]
[  6407847936:    11534336] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 245373075456 -->  245384609792)]
[  6419382272:    57671680] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 245384609792 -->  245442281472)]
[  6477053952:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 245442281472 -->  245979152384)]
[  7013924864:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 245979152384 -->  246516023296)]
[  7550795776:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 246516023296 -->  247052894208)]
[  8087666688:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 247052894208 -->  247589765120)]
[  8624537600:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 247589765120 -->  248126636032)]
[  9161408512:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 248126636032 -->  248663506944)]
[  9698279424:   502267904] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 248663506944 -->  249165774848)]
[ 10200547328:   313524224] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 249165774848 -->  249479299072)]
[ 10514071552:    52428800] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 249479299072 -->  249531727872)]
[ 10566500352:   115343360] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 464281141248 -->  464396484608)]
[ 10681843712:   115343360] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 786520080384 -->  786635423744)]
[ 10797187072:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 786637520896 -->  787174391808)]
[ 11334057984:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 787174391808 -->  787711262720)]
[ 11870928896:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 787711262720 -->  788248133632)]
[ 12407799808:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 788248133632 -->  788785004544)]
[ 12944670720:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 788785004544 -->  789321875456)]
[ 13481541632:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 789321875456 -->  789858746368)]
[ 14018412544:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 789858746368 -->  790395617280)]
[ 14555283456:   207618048] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 790395617280 -->  790603235328)]
[ 14762901504:   413138944] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 790603235328 -->  791016374272)]
[ 15176040448:   152043520] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 791048880128 -->  791200923648)]
[ 15328083968:    25165824] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 791200923648 -->  791226089472)]
[ 15353249792:    31457280] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 791016374272 -->  791047831552)]
[ 15384707072:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 791226089472 -->  791762960384)]
[ 15921577984:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 791762960384 -->  792299831296)]
[ 16458448896:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 792299831296 -->  792836702208)]
[ 16995319808:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 792836702208 -->  793373573120)]
[ 17532190720:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 793373573120 -->  793910444032)]
[ 18069061632:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 793910444032 -->  794447314944)]
[ 18605932544:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 794447314944 -->  794984185856)]
[ 19142803456:   182452224] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 794984185856 -->  795166638080)]
[ 19325255680:     1048576] --> [VMFS -- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 795166638080 -->  795167686656)]
[ 19326304256:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 795167686656 -->  795704557568)]
[ 19863175168:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 795704557568 -->  796241428480)]
[ 20400046080:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 796241428480 -->  796778299392)]
[ 20936916992:   536870912] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 796778299392 -->  797315170304)]
[ 21473787904:     1048576] --> [VMFS Z- LVID:3a4fffb9-b50ec73c-86ab-a0369f85b178/3a4fffb6-46077ba4-938e-a0369f85b178/1:( 797315170304 -->  797316218880)]

在执行结果中显示如下为zeroedthick格式的磁盘,也就是厚置备,延迟置零
在这里插入图片描述
在执行结果中显示如下为eagerzeroedthick格式的磁盘,也就是厚置备,置零
在这里插入图片描述
执行以下命令,将磁盘格式转换为eagerzeroedthick

vmkfstools --eagerzero ./nfsd.vmdk

执行结果如下:

[root@localhost:/vmfs/volumes/3a500015-174735eb-5e3b-a0369f85b178/nfsd] vmkfstools --eagerzero ./nfsd.vmdk
Eagerly zeroing: 100% done.ockSize: 1048576

参考资料:
https://docs.vmware.com/cn/VMware-vSphere/6.5/com.vmware.vsphere.storage.doc/GUID-0AC9C948-4D0A-4634-99B8-E10CC09EFE47.html


版权声明:本文为m0_60356178原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。