Ask Your Question
0

How to recreate ephemeral disks?

asked 2013-05-29 04:25:08 -0500

nab gravatar image

Hello!

I've deleted /var/lib/nova/instances/_base/ephemeral*. Now I can't launch instance with them:

2013-05-29 10:28:11 1313 TRACE nova.compute.manager [instance: 00a23134-8d1b-4f58-9a51-5110d201ade5] Stderr: "qemu-img: Could not open '/var/lib/nova/instances/_base/ephemeral_0_20_None': No such file or directory\n"

How can I recreate/recovery ephemeral disks?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-05-30 04:10:39 -0500

nab gravatar image

Create disk with qemu-img, fix owner with chown and make filesystem with mkfs.ext3 or mkfs.ext4:

qemu-img create -f raw /var/lib/nova/instances/_base/ephemeral_0_20_None 20G
chown nova:nova /var/lib/nova/instances/_base/ephemeral_0_20_None
mkfs.ext4 -L ephemeral0 -F /var/lib/nova/instances/_base/ephemeral_0_20_None
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

Stats

Asked: 2013-05-29 04:25:08 -0500

Seen: 263 times

Last updated: May 30 '13