Interview Prep/Linux/Boot, time, cron and kernel

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.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel