ファイルvmdk仮想ディスクが見つかりません
ファイルvmdk仮想ディスクが見つかりません
問題:仮想マシンの移行後、仮想ディスクvmdkファイルが見つかりません.仮想マシンは修復を開始できません.
1,まずvSphere clientのSSHポートをオンにする -- -- - -SSH- -
2仮想マシンが破損している仮想マシンの場所を特定find / -name "*172.16.2.12"
cd /vmfs/volumes/5df3037a-d30a045c-62a0-0894ef4fa40c/linux-172.16.2.12
3、表示ls -l
-rw------- 1 root root 42949672960 Aug 14 13:59 linux-172.16.2.12-flat.vmdk
-rw------- 1 root root 8684 Aug 15 01:13 linux-172.16.2.12.nvram
-rw------- 1 root root 0 Aug 14 13:43 linux-172.16.2.12.vmsd
-rw------- 1 root root 3021 Aug 14 15:42 linux-172.16.2.12.vmx
-rw------- 1 root root 214748364800 Aug 14 14:37 linux-172.16.2.12_1-flat.vmdk
-rw------- 1 root root 214748364800 Aug 14 12:19 linux-172.16.2.12_2-flat.vmdk
-rw------- 1 root root 483 Jun 12 08:38 linux-172.16.2.12_2.vmdk
# linux-172.16.2.12_2.vmdk ,
# linux-172.16.2.12.vmdk,linux-172.16.2.12_1.vmdk
4、修復# linux-172.16.2.12.vmdk,linux-172.16.2.12_1.vmdk
# ,
vmkfstools -c 42949672960 -a lsilogic cipan1.vmdk
#cipan1.vmdk linux-172.16.2.12.vmdk
vmkfstools -c 214748364800 -a lsilogic cipan2.vmdk
#cipan2.vmdk linux-172.16.2.12_1.vmdk
# cipan1.vmdk linux-172.16.2.12.vmdk
mv cipan1.vmdk linux-172.16.2.12.vmdk
# cipan2.vmdk linux-172.16.2.12_1.vmdk
mv cipan2.vmdk linux-172.16.2.12_1.vmdk
ls -l
-rw------- 1 root root 42949672960 Aug 17 02:10 linux-172.16.2.12-flat.vmdk
-rw------- 1 root root 8684 Aug 17 02:24 linux-172.16.2.12.nvram
-rw------- 1 root root 479 Aug 17 02:08 linux-172.16.2.12.vmdk
-rw------- 1 root root 3000 Aug 17 02:10 linux-172.16.2.12.vmx
-rw------- 1 root root 214748364800 Aug 17 02:09 linux-172.16.2.12_1-flat.vmdk
-rw------- 1 root root 483 Aug 17 02:08 linux-172.16.2.12_1.vmdk
-rw------- 1 root root 214748364800 Aug 17 02:10 linux-172.16.2.12_2-flat.vmdk
-rw------- 1 root root 483 Aug 17 02:08 linux-172.16.2.12_2.vmdk
# **-flat.vmdk **.vmdk , **.vmdk **.flat.vmdk cipan1/2-flat.vmdk,
5、修正## RW 83886080 VMFS "linux-172.16.2.12-flat.vmdk",
vi linux-172.16.2.12.vmdk
# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=8226dd02
parentCID=ffffffff
isNativeSnapshot="no"
createType="vmfs"
# Extent description
RW 83886080 VMFS "linux-172.16.2.12-flat.vmdk"
# The Disk Data Base
#DDB
ddb.adapterType = "lsilogic"
ddb.geometry.cylinders = "5221"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.longContentID = "6dd446f4d6cc3e5a04d32c728226dd02"
ddb.uuid = "60 00 C2 9a 12 fe 85 5d-11 3e 54 e1 e3 cd 98 69"
ddb.virtualHWVersion = "11"
vi linux-172.16.2.12_1.vmdk
# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=df194f9c
parentCID=ffffffff
isNativeSnapshot="no"
createType="vmfs"
# Extent description
RW 419430400 VMFS "linux-172.16.2.12_1-flat.vmdk"
# The Disk Data Base
#DDB
ddb.adapterType = "lsilogic"
ddb.geometry.cylinders = "26108"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.longContentID = "a87db942cad1c41970236d93df194f9c"
ddb.uuid = "60 00 C2 97 be 1f d3 28-01 ec 22 e2 a9 7b a6 9e"
ddb.virtualHWVersion = "11"
6、エラーfailed to lock the fileに遭遇# linux-172.16.2.12.vmx
disk.locking = "FALSE"
VMの再起動、すべて正常
-- -- - -SSH- -
find / -name "*172.16.2.12"
cd /vmfs/volumes/5df3037a-d30a045c-62a0-0894ef4fa40c/linux-172.16.2.12
ls -l
-rw------- 1 root root 42949672960 Aug 14 13:59 linux-172.16.2.12-flat.vmdk
-rw------- 1 root root 8684 Aug 15 01:13 linux-172.16.2.12.nvram
-rw------- 1 root root 0 Aug 14 13:43 linux-172.16.2.12.vmsd
-rw------- 1 root root 3021 Aug 14 15:42 linux-172.16.2.12.vmx
-rw------- 1 root root 214748364800 Aug 14 14:37 linux-172.16.2.12_1-flat.vmdk
-rw------- 1 root root 214748364800 Aug 14 12:19 linux-172.16.2.12_2-flat.vmdk
-rw------- 1 root root 483 Jun 12 08:38 linux-172.16.2.12_2.vmdk
# linux-172.16.2.12_2.vmdk ,
# linux-172.16.2.12.vmdk,linux-172.16.2.12_1.vmdk
# linux-172.16.2.12.vmdk,linux-172.16.2.12_1.vmdk
# ,
vmkfstools -c 42949672960 -a lsilogic cipan1.vmdk
#cipan1.vmdk linux-172.16.2.12.vmdk
vmkfstools -c 214748364800 -a lsilogic cipan2.vmdk
#cipan2.vmdk linux-172.16.2.12_1.vmdk
# cipan1.vmdk linux-172.16.2.12.vmdk
mv cipan1.vmdk linux-172.16.2.12.vmdk
# cipan2.vmdk linux-172.16.2.12_1.vmdk
mv cipan2.vmdk linux-172.16.2.12_1.vmdk
ls -l
-rw------- 1 root root 42949672960 Aug 17 02:10 linux-172.16.2.12-flat.vmdk
-rw------- 1 root root 8684 Aug 17 02:24 linux-172.16.2.12.nvram
-rw------- 1 root root 479 Aug 17 02:08 linux-172.16.2.12.vmdk
-rw------- 1 root root 3000 Aug 17 02:10 linux-172.16.2.12.vmx
-rw------- 1 root root 214748364800 Aug 17 02:09 linux-172.16.2.12_1-flat.vmdk
-rw------- 1 root root 483 Aug 17 02:08 linux-172.16.2.12_1.vmdk
-rw------- 1 root root 214748364800 Aug 17 02:10 linux-172.16.2.12_2-flat.vmdk
-rw------- 1 root root 483 Aug 17 02:08 linux-172.16.2.12_2.vmdk
# **-flat.vmdk **.vmdk , **.vmdk **.flat.vmdk cipan1/2-flat.vmdk,
## RW 83886080 VMFS "linux-172.16.2.12-flat.vmdk",
vi linux-172.16.2.12.vmdk
# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=8226dd02
parentCID=ffffffff
isNativeSnapshot="no"
createType="vmfs"
# Extent description
RW 83886080 VMFS "linux-172.16.2.12-flat.vmdk"
# The Disk Data Base
#DDB
ddb.adapterType = "lsilogic"
ddb.geometry.cylinders = "5221"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.longContentID = "6dd446f4d6cc3e5a04d32c728226dd02"
ddb.uuid = "60 00 C2 9a 12 fe 85 5d-11 3e 54 e1 e3 cd 98 69"
ddb.virtualHWVersion = "11"
vi linux-172.16.2.12_1.vmdk
# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=df194f9c
parentCID=ffffffff
isNativeSnapshot="no"
createType="vmfs"
# Extent description
RW 419430400 VMFS "linux-172.16.2.12_1-flat.vmdk"
# The Disk Data Base
#DDB
ddb.adapterType = "lsilogic"
ddb.geometry.cylinders = "26108"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.longContentID = "a87db942cad1c41970236d93df194f9c"
ddb.uuid = "60 00 C2 97 be 1f d3 28-01 ec 22 e2 a9 7b a6 9e"
ddb.virtualHWVersion = "11"
# linux-172.16.2.12.vmx
disk.locking = "FALSE"