Generic Linux Notes

XFS Filesystem Repair

I’ve encountered situations where xfs_check and xfs_repair -n reported an unmounted filesystem as both mounted and readable. The easiest workaround seems to be to actually have the volume mounted, but mounted in read-only. If that doesn’t work, the all-knowing search engine will need to be further consulted.

# mount -r -o remount /dev/sdbroken1
# xfs_repair -n /dev/sdbroken1

## Sorting ps by Memory Utilization Found at the following URL (I wish I could say it was from looking through the man pages, but alas, no): https://linuxconfig.org/using-ps-command-to-sort-output-based-on-ram-usage

$ ps au --sort=-%mem
$ ps auk-%mem