Recently,Xenserver was working abnormally.
During the reboot, the following messages are displayed and
Cold reboot was necessary. After the cold reboot, some VMs are not started normally.
File "/opt/xensource/sm/resetvdis.py", line 155, in ?
reset_vdi(session, vdi_uuid, force)
File "/opt/xensource/sm/resetvdis.py", line 56, in reset_vdi
vdi_ref = session.xenapi.VDI.get_by_uuid(vdi_uuid)
File "/usr/lib/python2.4/site-packages/XenAPI.py", line 245, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.4/site-packages/XenAPI.py", line 149, in xenapi_request
result = _parse_result(getattr(self, methodname)(*full_params))
File "/usr/lib/python2.4/site-packages/XenAPI.py", line 219, in _parse_result
raise Failure(result['ErrorDescription'])
XenAPI.Failure: ['UUID_INVALID', 'VDI', '--force']
Furthermore, we also received the following error message when we tried to boot the server from the Xev Servers host's console:
[root@xenserver-102-90 log]# xe vm-start vm=vm-name
Error code: SR_BACKEND_FAILURE_46
Error parameters: , The VDI is not available [opterr=VDI 29ee8765-5556-42e1-a53e-362435f03d38 locked],
To fix this issue , I followed the steps listed below
1.
[root@]# xe vdi-forget uuid=29ee8765-5556-42e1-a53e-362435f03d38
2.
[root@}# xe vdi-list uuid=29ee8765-5556-42e1-a53e-362435f03d38
uuid ( RO) : 29ee8765-5556-42e1-a53e-362435f03d38
name-label ( RW): name
name-description ( RW): name
sr-uuid ( RO): dc7d9c04-bc32-cf68-d0c9-954a32257c55
virtual-size ( RO): 322223484
sharable ( RO): false
read-only ( RO): false
3.
[root@]# xe vdi-param-set uuid=29ee8765-5556-42e1-a53e-362435f03d38 name-label=new-name
4.
[root@]# xe vdi-list uuid=29ee8765-5556-42e1-a53e-362435f03d38
uuid ( RO) : 29ee8765-5556-42e1-a53e-362435f03d38
name-label ( RW): new-name
name-description ( RW): new-name
sr-uuid ( RO): dc7d9c04-bc32-cf68-d0c9-954a32257c55
virtual-size ( RO): 322122547200
sharable ( RO): false
read-only ( RO): false
5. On the VMs storage tab, select “Attach” and proceed to select the VDI on the SR.