ESXI8中修改虚拟机磁盘格式

厚置备改精简置备

ESXI8中修改虚拟机磁盘格式_第1张图片

改后 ESXI8中修改虚拟机磁盘格式_第2张图片

所以,先开启SSH、Shell服务

ESXI8中修改虚拟机磁盘格式_第3张图片

 流程如下: ESXI8中修改虚拟机磁盘格式_第4张图片

 使用root登录SSH
[root@localhost:~] 

[root@localhost:~] cd "/vmfs/volumes/HDD1/SOESC"

[root@localhost:/vmfs/volumes/64398ef2-3cb0bdb4-2552-e8611f32b3ac/SOESC] ls -lh *.vmdk
-rw-------    1 root     root       52.0G May 15 15:37 SOESC-flat.vmdk
-rw-------    1 root     root         509 May 15 15:40 SOESC.New.vmdk


[root@localhost:/vmfs/volumes/64398ef2-3cb0bdb4-2552-e8611f32b3ac/SOESC] vmkfstools -i SOESC.vmdk -d thin SOESC.New.vmdk
Destination disk format: VMFS thin-provisioned
Cloning disk 'SOESC.vmdk'...
Clone: 100% done.

[root@localhost:/vmfs/volumes/64398ef2-3cb0bdb4-2552-e8611f32b3ac/SOESC] ls -lh *.vmdk
-rw-------    1 root     root       52.0G May 15 15:31 SOESC-flat.vmdk
-rw-------    1 root     root       52.0G May 15 15:37 SOESC.New-flat.vmdk
-rw-------    1 root     root         509 May 15 15:40 SOESC.New.vmdk
-rw-------    1 root     root         456 May 15 15:34 SOESC.vmdk

[root@localhost:/vmfs/volumes/64398ef2-3cb0bdb4-2552-e8611f32b3ac/SOESC] mv SOESC.vmdk SOESC.vmdk.bak
[root@localhost:/vmfs/volumes/64398ef2-3cb0bdb4-2552-e8611f32b3ac/SOESC] mv SOESC-flat.vmdk SOESC-flat.vmdk.bak


[root@localhost:/vmfs/volumes/64398ef2-3cb0bdb4-2552-e8611f32b3ac/SOESC] mv SOESC.New-flat.vmdk SOESC-flat.vmdk
[root@localhost:/vmfs/volumes/64398ef2-3cb0bdb4-2552-e8611f32b3ac/SOESC] mv SOESC.New.vmdk SOESC.vmdk
[root@localhost:/vmfs/volumes/64398ef2-3cb0bdb4-2552-e8611f32b3ac/SOESC] ls -lh *.vmdk
-rw-------    1 root     root       52.0G May 15 15:37 SOESC-flat.vmdk
-rw-------    1 root     root         509 May 15 15:40 SOESC.vmdk


[root@localhost:/vmfs/volumes/64398ef2-3cb0bdb4-2552-e8611f32b3ac/SOESC] vi SOESC.vmdk

# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=fffffffe
parentCID=ffffffff
createType="vmfs"

# Extent description
RW 109051904 VMFS "SOESC-flat.vmdk"     (改前:RW 109051904 VMFS "SOESC.New-flat.vmdk" )

# The Disk Data Base
#DDB

ddb.adapterType = "lsilogic"
ddb.deletable = "true"
ddb.geometry.cylinders = "6788"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.longContentID = "ea7af554461e7ac300947eabfffffffe"
ddb.thinProvisioned = "1"
ddb.uuid = "60 00 C2 9e a7 83 a8 3d-b3 bf 54 36 6c d4 b2 f2"
ddb.virtualHWVersion = "14"
~
~
~
- SOESC.vmdk 1/23 4%

注意:可以按 i 开始在光标位置编辑,也可以按 shift+o

           在光标上方的新行上编辑,或者按 o 在光标下方的新行上编辑。

保存:先按 Esc,再按“:”,输入wq,然后按 Enter。

VMware VI使用说明:
https://kb.vmware.com/s/article/1020302?lang=zh_CN
 

你可能感兴趣的:(VMware,服务器,运维,虚拟化,VMware)