Ask Your Question
1

Cinder volumes won't mount.

asked 2015-12-07 08:24:24 -0500

ruben gravatar image

Hello,

When i attach a Cinder volume to a instance, boot the instance with any live boot image and try to mount it using:

sudo mount /dev/vdb /mnt/test

It gives me the following errors:

mount: /dev/vdb is write protected, mounting read-only.
mount: wrong fs type, bad option, bad superblock on /dev/vdb. missing codepage or helper program, or other error.

In the Cinder volume tab it states that the volume is RW and that it is attached to /dev/vdb.

I'm not sure how to fix this and i hope to find some help here. I am running Openstack Liberty with a GlusterFS storage backend.

Thanks, Ruben

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-12-09 07:33:46 -0500

Hi, when a new volume is created, it comes without filesystem, so, first you need to give a filesystem to the volume and then mount it.

sudo mkfs.ext4 /dev/vdb
sudo mount /dev/vdb /mnt/test

Once the volume have filesystem you can mount it in any other instance without problems.

Regards

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: 2015-12-07 08:24:24 -0500

Seen: 936 times

Last updated: Dec 09 '15