`dmesg` shows `INFO: task mysqld:2231 blocked for more than 120 seconds.`
AdvancedTroubleshootingBoot, time, cron and kernel
Answer
Likely causes → The hung task detector fired: a process stuck in D state for 2+ minutes, usually storage stalls (overloaded or failing disk, unresponsive SAN/EBS, NFS) or huge dirty page writeback.
Diagnose →
dmesg -T | grep -A 20 'blocked for more than' # kernel stack shows where it waits
iostat -xz 1 5
cat /proc/pressure/io
grep -E 'Dirty|Writeback' /proc/meminfo
Fix → Resolve the storage bottleneck (faster volume, fix the failing device), tune dirty page limits, or fix the network storage.
Prevent → Alert on hung task messages and disk latency; don't run databases on network storage without performance guarantees.
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