Failed to attach a volume after detaching the same volume in OpenStack

0 votes

Hi everyone,

I detached my volume from my instance due to some reason. Now I am trying to attach the same volume in my instance, but I am not able to do so.

Can anyone tell me about this?

Thank You

Mar 24, 2020 in OpenStack by akhtar
• 38,260 points
1,322 views

1 answer to this question.

0 votes

Hi@akhtar,

You must change the device name on the nova-attach command. The VM might not clean up after a nova-detach command runs. This example shows how the nova-attach command fails when you use the vdb, vdc, or vdd device names.

# 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

You might 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, restart the KVM host.

Thank You

answered Mar 24, 2020 by MD
• 95,460 points

Related Questions In OpenStack

0 votes
1 answer

How to create a network in OpenStack automatically?

Hi@akhtar, To create the router automatically, provide the ...READ MORE

answered Mar 18, 2020 in OpenStack by MD
• 95,460 points
951 views
0 votes
1 answer

How to create a public network in OpenStack?

Hi@akhtar,  In OpenStack you are the admin of ...READ MORE

answered Mar 18, 2020 in OpenStack by MD
• 95,460 points
3,910 views
0 votes
1 answer

How can I create and attach a volume to an instance?

Hi@akhtar, To create an additional storage in OpenStack, ...READ MORE

answered Mar 19, 2020 in OpenStack by MD
• 95,460 points
1,253 views
0 votes
1 answer

Error: NetworkNotCreated: bridge is required to create a network in OpenStack.

Hi@akhtar, As the above error message says, you should ...READ MORE

answered Mar 24, 2020 in OpenStack by MD
• 95,460 points
745 views
0 votes
1 answer
0 votes
1 answer

What is the meaning of term “Glance” in OpenStack service?

Hi@akhtar, Glance is image service in OpenStack. The ...READ MORE

answered Mar 16, 2020 in OpenStack by MD
• 95,460 points
1,405 views
0 votes
1 answer

Can anyone explain me the Architecture of Glance service in OpenStack?

Hi, OpenStack Glance has a client-server architecture that ...READ MORE

answered Mar 16, 2020 in OpenStack by akhtar
• 38,260 points
1,629 views
0 votes
1 answer

What is basic OpenStack Architecture?

Hi@akhtar, Basic Architecture of OpenStack is given below. OpenStack ...READ MORE

answered Mar 16, 2020 in OpenStack by MD
• 95,460 points
2,380 views
0 votes
1 answer

Failed to attach volume, systool is not installed in OpenStack.

Hi@akhtar, This warning and error occurs if you ...READ MORE

answered Mar 24, 2020 in OpenStack by MD
• 95,460 points
675 views
0 votes
1 answer

How to reset error state of a instance into active in OpenStack env?

Hi@akhtar, There are some scenarios where some instances ...READ MORE

answered Mar 17, 2020 in OpenStack by MD
• 95,460 points
9,694 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP