When i stop a VM with ceph (RBD) disk, we need to reboot twice the VM in order to have a file system with read/write.
Code:
● mariadb.service - MariaDB 10.3.23 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─limits.conf
Active: failed (Result: exit-code) since Sat 2020-10-17 16:45:31 CEST; 1min 46s ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Process: 525 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Process: 548 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 552 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ]
Process: 599 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=226/NAMESPACE)
Main PID: 599 (code=exited, status=226/NAMESPACE)
Oct 17 16:45:30 web2 systemd[1]: Starting MariaDB 10.3.23 database server...
Oct 17 16:45:31 web2 sh[552]: mktemp: failed to create file via template ‘/tmp/wsrep_recovery.XXXXXX’: Read-only file system
Oct 17 16:45:31 web2 sh[552]: WSREP: mktemp failed
Oct 17 16:45:31 web2 systemd[599]: mariadb.service: Failed to set up mount namespacing: Read-only file system
Oct 17 16:45:31 web2 systemd[599]: mariadb.service: Failed at step NAMESPACE spawning /usr/sbin/mysqld: Read-only file system
Oct 17 16:45:31 web2 systemd[1]: mariadb.service: Main process exited, code=exited, status=226/NAMESPACE
Oct 17 16:45:31 web2 systemd[1]: mariadb.service: Failed with result 'exit-code'.
Oct 17 16:45:31 web2 systemd[1]: Failed to start MariaDB 10.3.23 database server.