9c0005803b
Change-Id: I68c76f5e729232584c2119f8f34f2d72e4715f3c
33 lines
2.1 KiB
XML
33 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
version="5.0" xml:id="section_ts_failed_attach_vol_after_detach">
|
|
<title>Failed to attach volume after detaching</title>
|
|
<section xml:id="section_ts_failed_attach_vol_after_detach_problem">
|
|
<title>Problem</title>
|
|
<para>Failed to attach a volume after detaching the same volume.</para>
|
|
</section>
|
|
<section xml:id="section_ts_failed_attach_vol_after_detach_solution">
|
|
<title>Solution</title>
|
|
<para>You need to change the device name on the <code>nova-attach</code> call. The VM may
|
|
not clean-up after a <code>nova-detach</code> operation. In the following example from
|
|
the VM, the <code>nova-attach</code> call will fail if the device names
|
|
<code>vdb</code>, <code>vdc</code>, or <code>vdd</code> are
|
|
used.<screen><prompt>#</prompt> <userinput>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</userinput></screen></para>
|
|
<para>You may also have this problem after attaching and detaching the same volume from the
|
|
same VM with the same mount point multiple times. In this case, restarting the KVM host
|
|
may fix the problem.</para>
|
|
</section>
|
|
</section>
|
|
|