• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

errors

Add nofail

May 1, 2019

The /etc/fstab file allow volumes to be automatically mounted on bootup. Add nofail in your automated mounts to prevent instances from hanging on boot. Nofail makes the instance to boot even if there are errors with the mounted volume.

UUID=aebf131c-6957-451e-8d34-ec978d9581ae  /data  xfs  defaults,nofail  0  2

UUID=aebf131c-6957-451e-8d34-ec978d9581ae /data xfs defaults,nofail 0 2

Filed Under: Cloud, Linux Tagged With: boot, errors, fstab, nofail

Scan for Error, Warning and Panic

March 1, 2019

Here’s a command to scan for any errors, warnings and panics on the system. If the file is too large, pipe it to more.

sudo grep -E -i -r 'error|warning|panic' /var/log
sudo grep -E -i -r 'error|warning|panic' /var/log >error-warning-panic.log
cat error-warning-panic.log | more

sudo grep -E -i -r 'error|warning|panic' /var/log sudo grep -E -i -r 'error|warning|panic' /var/log >error-warning-panic.log cat error-warning-panic.log | more

Filed Under: Linux Tagged With: errors, grep, more, panics, var log, warnings

  • Home
  • About
  • Archives

Copyright © 2023