0

Recently my MariaDB stopped working and when I tried to start it, it always throws an error.

The error message is:

MariaDB failed at step namespace spawning /bin/sh: read-only file system

What does that mean?

The operating system is CentOS 7

kenlukas
  • 3,101
  • 2
  • 16
  • 26
andre
  • 3
  • 2
  • 1
    check the file system and see if a partition is mounted as `ro` rather than `rw`. Mostly that'll happen if there's an issue with the underlying storage, / will remount as ro etc. – floodpants Aug 05 '20 at 05:24
  • @floodpants thank you, i will check when it happen again. will update the result here. – andre Aug 05 '20 at 06:54
  • @floodpants yes indeed you are correct.the server changed the filesystem itself from rw to ro. thank you! – andre Aug 07 '20 at 08:04

1 Answers1

0

Your filesystem has likely been remounted as read only, which can indicate an issue with corruption or the underlying physical disk. You'll need to sort that and remount as rw then Maria should be ok to start again. Backup the db files asap also.

floodpants
  • 326
  • 1
  • 2
  • 7