Ask Your Question

Why ubuntu-server 12.04 instance can not detect attached volume by cinder unless reboot?

asked 2013-11-05 02:02:00 -0500

Cheering gravatar image

First sorry about my pool english.. When I attached a volume to the ubuntu-server12.04 instance by "nova volume-attach...." ,I used "fdisk -l" and I found the instance did not defect the volume. Then I reboot the instance,and also "fdisk -l",now the instance detectd the volume. But ,if I use centos or cirros ,it did not need to reboot. How to solved this problem? Thank you.

edit retag flag offensive close merge delete


How did you make the image?

fifieldt gravatar imagefifieldt ( 2013-11-13 21:25:39 -0500 )edit

I have the same problem.Have you resolved it ?

PO gravatar imagePO ( 2013-12-08 20:37:09 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2014-01-27 03:50:32 -0500

Yogev Rabl gravatar image

Can you please check how you attach the volume to the instance: if the volume is attach with the path /dev/hd$ the volume will be visible only after a reboot. Please try to attach the volume like this: nova volume-attach <instance id=""> <volume id=""> /dev/vdc

I hope it'll resolve the issue.

edit flag offensive delete link more

answered 2013-12-08 23:07:53 -0500

antonnoble gravatar image

updated 2013-12-08 23:08:55 -0500

grep mpt /sys/class/scsi_host/host?/proc_name

echo โ€œ- โ€“ -โ€ > /sys/class/scsi_host/host#/scan

Run the first command. Should give u your host numbers to scan. Example host0 1 or 2. Run second one the rescan for new disks/volumes.

edit flag offensive delete link more


or you can perform the following command to cover both hosts: ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done

yehia-beyh gravatar imageyehia-beyh ( 2014-01-10 14:59:23 -0500 )edit

answered 2014-01-10 14:58:24 -0500

or do this command which will cover all hosts:

ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-11-05 02:02:00 -0500

Seen: 1,278 times

Last updated: Jan 27 '14