Atom feed of this document
  

 在取消挂接卷之后再次挂接卷失败

 问题

在挂接相同的卷之后挂接卷会失败。

 解决方案

你必须在命令nova-attach 更改设备的名称。在运行命令 nova-detach之后或许虚拟机不能清空。这个例子说明了当你使用vdb, vdc, 或 vdd 的设备名称时命令nova-attach 是如何失败的:

# ls -al /dev/disk/by-path/
total 0
drwxr-xr-x 2 root root 200 2012-08-29 17:33 .
drwxr-xr-x 5 root root 100 2012-08-29 17:33 ..
lrwxrwxrwx 1 root root 9 2012-08-29 17:33 pci-0000:00:04.0-virtio-pci-virtio0 -> ../../vda
lrwxrwxrwx 1 root root 10 2012-08-29 17:33 pci-0000:00:04.0-virtio-pci-virtio0-part1 -> ../../vda1
lrwxrwxrwx 1 root root 10 2012-08-29 17:33 pci-0000:00:04.0-virtio-pci-virtio0-part2 -> ../../vda2
lrwxrwxrwx 1 root root 10 2012-08-29 17:33 pci-0000:00:04.0-virtio-pci-virtio0-part5 -> ../../vda5
lrwxrwxrwx 1 root root 9 2012-08-29 17:33 pci-0000:00:06.0-virtio-pci-virtio2 -> ../../vdb
lrwxrwxrwx 1 root root 9 2012-08-29 17:33 pci-0000:00:08.0-virtio-pci-virtio3 -> ../../vdc
lrwxrwxrwx 1 root root 9 2012-08-29 17:33 pci-0000:00:09.0-virtio-pci-virtio4 -> ../../vdd
lrwxrwxrwx 1 root root 10 2012-08-29 17:33 pci-0000:00:09.0-virtio-pci-virtio4-part1 -> ../../vdd1

你可能会在同一个虚拟机挂载相同的挂载点,挂接和分离同一个卷多次之后遇到此问题,若发生此种情况,重启KVM主机。

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...