XenCenter删除SR失败解决方法

时间:2023-03-10 01:04:31
XenCenter删除SR失败解决方法

到CLI下

查SR的UUID

xe sr-list

SR的uuid=e0571e72-f6c5-1c9e-4ad8-9817b2331f47

FORGET SR

xe sr-forget uuid=e0571e72-f6c5-1c9e-4ad8-9817b2331f47

The SR is still connected to a host via a PBD. It cannot be destroyed or forgotten.
sr: e0571e72-f6c5-1c9e-4ad8-9817b2331f47 (CIFS ISO library)

查占PBD占用

xe pbd-list sr-uuid=e0571e72-f6c5-1c9e-4ad8-9817b2331f47

取消占用

xe pbd-unplug uuid=7b03c280-f1be-f7b8-2c6e-92ad8a2da686

再次尝试FORGET SR

xe sr-forget uuid=e0571e72-f6c5-1c9e-4ad8-9817b2331f47

无法回则成功

如果提示 device is busy

到 /etc/mtab下 删除所有关于要删除的SR的行

然后执行 umount -f /var/run/sr-mount/sr-uuid