Can't see exist volume after restart NOVA

Asked by Hugo Kou

hi guy....

Everytime I restart NOVA
<ctrl+a><ctrl+d> and then . nova.sh run

I try to $euca-describe-volume
there is nothing.........
but I know they r existing by $ls /dev/nova-volumes

How to use the volume which I created last time.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Vish Ishaya
Solved:
Last query:
Last reply:
Revision history for this message
Best Vish Ishaya (vishvananda) said :
#1

nova.sh deletes the db and terminates instances in between runs. It is supposed to delete volumes as well, but i just realized it wasn't. I updated it to delete volumes too.
You can make it keep the db between runs if you want by commenting out these lines:
    if [ "$USE_MYSQL" == 1 ]; then
        mysql -p$MYSQL_PASS -e 'DROP DATABASE nova;'
        mysql -p$MYSQL_PASS -e 'CREATE DATABASE nova;'
    else
        rm $NOVA_DIR/nova.sqlite
    fi
I personally find it valuable to have a clean system each time but feel free.

Vish

On Nov 17, 2010, at 10:08 PM, Hugo Kou wrote:

> New question #134511 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/134511
>
> hi guy....
>
> Everytime I restart NOVA
> <ctrl+a><ctrl+d> and then . nova.sh run
>
> I try to $euca-describe-volume
> there is nothing.........
> but I know they r existing by $ls /dev/nova-volumes
>
> How to use the volume which I created last time.
>
>
>
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Hugo Kou (tonytkdk) said :
#2

Thanks Vish Ishaya, that solved my question.