can't see volume storage in instance ,is this a bug ??

Asked by Hugo Kou on 2010-11-16

http://i217.photobucket.com/albums/cc280/tonytkdk/volok.jpg

I install NOVA in single machine by novascript

the volume status is in-use /dev/vdb

but I can't see that in the instance..................

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Vish Ishaya
Solved:
2010-11-18
Last query:
2010-11-18
Last reply:
2010-11-16
Best Vish Ishaya (vishvananda) said : #1

ami-tiny is an ultra small busybox image and it doesn't have udev set up properly
if you cat /proc/partitions you should see the device listed.
You can make the traditional /dev/vd* using mknod
grep vdb /proc/partitions | `awk '{print "mknod /dev/"$4" b "$1" "$2}'`

On Nov 16, 2010, at 1:35 AM, Hugo Kou wrote:

> New question #134257 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/134257
>
> http://i217.photobucket.com/albums/cc280/tonytkdk/volok.jpg
>
> I install NOVA in single machine by novascript
>
> the volume status is in-use /dev/vdb
>
> but I can't see that in the instance..................
>
>
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Hugo Kou (tonytkdk) said : #2

I try to attach volume and instance by /dev/vdb /dev/sdb /dev/vdc etc....
there were nothing addition to /proc/partitions

========================================================
root@openstack:/# euca-attach-volume -i i-8vpt88 -d /dev/sdb vol-rt2boi0h
VOLUME vol-rt2boi0h
root@openstack:/# ssh -i test.pem root@10.0.0.3
--
-- This lightweight software stack was created with FastScale Stack Manager
-- For information on the FastScale Stack Manager product,
-- please visit www.fastscale.com
--
-bash-3.2# cat /proc/partitions
major minor #blocks name

 252 0 153631 vda
 252 1 153600 vda1
=======================================================

no any error in each worker screen...........

is possible that bcz I use a loopback device on the same computer with instance?

shoulda I or can I use volumes on SWIFT?

but I didn't see any flag to config volume storage location.
--storage_dev=//SWIFT_ADD

Hugo Kou (tonytkdk) said : #3

Thanks Vish Ishaya, that solved my question.