Ask Your Question
2

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

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

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

Comments

How did you make the image?

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

I have the same problem.Have you resolved it ?

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

3 answers

Sort by ยป oldest newest most voted
1

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

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
0

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

antonnoble gravatar image

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

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

Comments

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 -0600 )edit
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 1,185 times

Last updated: Jan 27 '14