Tuesday | 21 MAY 2024
[ previous ]
[ next ]

xfs_repair

Title:
Date: 2023-11-11
Tags:  cheatsheet

A cheatsheet to fixing up xfs issues.

Check what the filesystem type is:

df -T

xfs_repair requires the folder to be unmounted, both to fix the device and to check for errors.

umount /home

If the folder is busy and you need to find out which processes are in it:

fuser -um /home

Kill the processes:

fuser -km /home

If you need to install fuser:

yum install psmisc

Check for errors on the device:

xfs_repair -n /dev/sda5