After a power outage, the server boots but `/var` is mounted read-only and `dmesg` shows `EXT4-fs (dm-2): warning: mounting fs with errors, running e2fsck is recommended`.
AdvancedTroubleshootingBoot, time, cron and kernel
Answer
Likely causes → Unclean shutdown left inconsistencies the journal couldn't resolve; ext4 detected errors.
Diagnose →
sudo tune2fs -l /dev/mapper/vg0-var | grep -Ei 'state|errors'
findmnt /var
dmesg -T | grep EXT4
Fix → Boot into rescue or emergency mode so /var isn't in use (systemctl rescue), unmount it, run e2fsck -f /dev/mapper/vg0-var, then reboot. Take a snapshot first if the data matters.
Prevent → UPS, storage with battery-backed cache, and monitoring of filesystem error state.
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