A server suddenly remounts root read-only during the day and apps start failing with `Read-only file system`. The disk is an EBS/cloud volume.
AdvancedTroubleshootingBoot, time, cron and kernel
Answer
Likely causes → The block device returned I/O errors or timed out (cloud volume impairment, NVMe timeouts), and ext4 with errors=remount-ro protected itself.
Diagnose →
dmesg -T | grep -Ei 'nvme|I/O error|EXT4-fs error|Remounting'
cat /sys/module/nvme_core/parameters/io_timeout
Check the cloud console for volume status checks.
Fix → Schedule a reboot, which runs fsck on the next mount; if the volume is impaired, restore from snapshot. Make sure the NVMe I/O timeout follows the cloud's guidance (e.g. a high nvme_core.io_timeout on AWS).
Prevent → Volume health alarms, snapshots, and redundant architecture so one volume isn't critical.
More on Boot, time, cron and kernel
After a reboot the server drops to `You are in emergency mode. After logging in, type "journalctl -xb" to view system logs`.IntermediateBoot stops at `dracut-initqueue: Warning: dracut-initqueue timeout - starting timeout scripts` and then a `dracut:/#` shell.AdvancedA server shows a `grub>` prompt instead of booting.AdvancedThe kernel panics at boot: `Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)`.AdvancedBoot hangs for 90 seconds with `A start job is running for dev-disk-by\x2duuid-...device (1min 30s)`.IntermediateLogs from different servers are out of order and `timedatectl` shows `System clock synchronized: no` and `NTP service: inactive`.Beginner