触发条件: Ssh 至 VM内部,执行关机命令(shutdown -h now), 在NFS backend下的Vm通过Cloudstack无法启动
产生原因:Xenserver 与存储设备或者Lun失去连接
解决方法:
- Extract VDI UUID of Virtual Machine(VM) that is failing to start from /var/log/cloud/management/management-server.log file For example, VDI UUID will be 6f97582c-xxxx-xxxx-xxxx-9aa5686bcbd36. VM are failing to start with “errorInfo: [SR_BACKEND_FAILURE_46, The VDI is not available [opterr=VDI6f97582c-xxxx-xxxx-xxxx-9aa5686bcbd36 already attached RW]” error
- Connect to XenServer and make a note of the SR UUID and name-label of the VDI
# xe vdi-list uuid= params=sr-uuid, name-label
- Run the following commands in XenServer
# xe vdi-forget uuid=
# xe sr-scan uuid=
# xe vdi-param-set uuid=< volume extracted from step1 > name-label=< name label extracted from step2 >
- Restart Cloudstack Management Service