Report this

What is the reason for this report?

Block storage is read-only

Posted on June 8, 2019

Hi guys,

When I reboot the server block storage becomes read-only. I followed the setup instructions when I was creating the block storage:

$ echo '/dev/disk/by-id/scsi-0DO_Volume_volume-fra1-01 /mnt/volume_fra1_01 ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab

When I try to write it it shows this message:

[root@DB volume_fra1_01]# touch test
touch: cannot touch `test': Read-only file system

If I run this command

[root@DB volume_fra1_01]# mount -o remount,rw /mnt/volume_fra1_01/

it becomes writable but if I reboot the system it becomes read-only again.

What may be the problem?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

You can run a filesystem check and also check your fstab - /etc/fstab and make sure that /mnt/volume_fra1_01 is mounted properly.

Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.