厚置备改精简置备

改后 

所以,先开启SSH、Shell服务

 流程如下: 

 使用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
 

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐