testing XFS file system

Issues related to applications and software problems
Post Reply
lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

testing XFS file system

Post by lightman47 » 2018/03/13 14:46:40

I used to be ablt to touch /.forcefsck to have my file system check on the next reboot. I understand that this no no longer works, because my filesystem is xfs. Is there a replacement command for this?

Thank you.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: testing XFS file system

Post by TrevorH » 2018/03/13 15:56:00

You have to run xfs_repair manually. When you boot and it wants to run fsck, it invokes /sbin/fsck.$filesystem and the /sbin/fsck.xfs file is a shell script that tells you
echo "If you wish to check the consistency of an XFS filesystem or"
echo "repair a damaged filesystem, see xfs_check(8) and xfs_repair(8)."
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: testing XFS file system

Post by lightman47 » 2018/03/13 16:03:10

Ack - was afraid of that. Thank you much!

Post Reply