又是vm无法开机的问题,只是这次是TSM软件恢复后的vm无法开机。解决过程还是比较有趣的。
看下报错截图:
注意了下截图中的报错是说,“父虚拟磁盘的内容ID与子虚拟磁盘中相应的父内容ID不匹配”,再仔细看下截图中所说的报错子虚拟磁盘是哪块
0000001.vmdk文件,一般是vm的快照文件。回想下IBM TSM的原理吧,恢复的时候会首先创建该vm的快照,然后基于快照去做恢复。所以那应该就是0000001.vmdk的快照文件与恢复好之后的原始磁盘文件中的ID号不一致。
再看下系统中的日志:
打开恢复后的vm所在的ESXi主机SSH,通过客户端连接到该ESXi主机中,使用以下命令进入到该vm所在的文件夹中:
-
~ # cd /vmfs/volumes/
-
/vmfs/volumes # ls
-
/vmfs/volumes # cd IDC03\(FC\)/
-
/vmfs/volumes/4fb20828-085e27bc-87e9-0025b503005e # ls
-
CentOS-6.4-64bit-mininal idc172017100027 idc172017100067(jwc-xk4)
-
MSserver idc172017100028 idc172017100071(jwc-web)
-
dns3 idc172017100030 idc172017100079
-
iMOS_backup idc172017100031 imc-portal
-
idc172017100002(ky1) idc172017100032(neusoft_portal_eapdomain) imc-selfservice
-
idc172017100019(dhcp2) idc172017100033 lib_db
-
idc172017100021(dhcp4) idc172017100034 vShield-FW-172.20.202.20
-
idc172017100023 idc172017100034_1 xg-lx2
-
idc172017100024 idc172017100034_2
-
idc172017100025 idc172017100050(hr-app)
-
/vmfs/volumes/4fb20828-085e27bc-87e9-0025b503005e # cd idc172017100032\(neusoft_portal_eapdomain\)/
-
/vmfs/volumes/4fb20828-085e27bc-87e9-0025b503005e/idc172017100032(neusoft_portal_eapdomain) # ls
-
idc172017100032(neusoft_portal_eapdomain)-000001-delta.vmdk idc172017100032(neusoft_portal_eapdomain).vmx
-
idc172017100032(neusoft_portal_eapdomain)-000001.vmdk idc172017100032(neusoft_portal_eapdomain).vmxbak
-
idc172017100032(neusoft_portal_eapdomain)-812edc42.vswp idc172017100032(neusoft_portal_eapdomain).vmxf
-
idc172017100032(neusoft_portal_eapdomain)-Snapshot1.vmsn vmware-1.log
-
idc172017100032(neusoft_portal_eapdomain)-flat.vmdk vmware-2.log
-
idc172017100032(neusoft_portal_eapdomain).nvram vmware.log
-
idc172017100032(neusoft_portal_eapdomain).vmdk vmx-idc172017100032(neusoft_portal_eapdomain)-2167331906-1.vswp
-
idc172017100032(neusoft_portal_eapdomain).vmsd
-
/vmfs/volumes/4fb20828-085e27bc-87e9-0025b503005e/idc172017100032(neusoft_portal_eapdomain) # more vmware.log
查看这个vmware.log最新的vm日志,会看到日志中有这么一行信息:
-
2013-12-07T06:56:52.279Z| vmx| DISKLIB-LINK : DiskLinkIsAttachPossible: Content ID mismatch (parentCID fffffffe != af75ea73) /vmfs/volumes/4fb20828-085e27bc-87e9-0025b503005e/idc172017100032(neusoft_portal_eapdomain)/idc172017100032(neusoft_portal_eapdomain)-000001.vmdk /vmfs/volumes/4fb20828-085e27bc-87e9-0025b503005e/idc172017100032(neusoft_portal_eapdomain)/idc172017100032(neusoft_portal_eapdomain).vmdk.
从这个日志信息中,可以看到parentCID = af75ea73,据此可以判断,应该是000001.vmdk快照磁盘中的CID与vm主磁盘文件中的CID不一致导致的问题。
通过下面的命令,打开0000001.vmdk文件,找到parentCID这一行,将值改成af75ea73:
-
/vmfs/volumes/4fb20828-085e27bc-87e9-0025b503005e/idc172017100032(neusoft_portal_eapdomain) # vi idc172017100032\(neusoft_portal_eapdomain\)-000001.vmdk
-
# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=463a0700
parentCID=af75ea73
isNativeSnapshot="no"
createType="vmfsSparse"
parentFileNameHint="idc172017100032(neusoft_portal_eapdomain).vmdk"
# Extent description
RW 419430400 VMFSSPARSE "idc172017100032(neusoft_portal_eapdomain)-000001-delta.vmdk"
# The Disk Data Base
#DDB
ddb.toolsVersion = "8384"
ddb.longContentID = "b3c2ab4febbfaa15bef8aca0463a0700"
再对该vm开机,BINGO!
阅读(3188) | 评论(0) | 转发(0) |