[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I fsck and XFS file system in "Squeeze"



On Fri, May 21, 2010 at 07:19:13PM -0500, Mark Allums wrote:

> Really?  Well, I expect XFS has a substitute.  If not, it should.

No, it doesn't. XFS will handle journaling issues at boot automagically,
but a real fsck requires a bit of manual intervention. I just went
through this today, and this is what you need to do:

    1. Boot into rescue mode. Most people I know keep their boot and
       root partitions as ext3, so this should go smoothly even if you
       need to fsck your xfs partitions.

    2. Unmount the XFS partitions you want to check. xfs_repair will do
       evil things to mounted partitions.

    3. Run xfs_repair on your unmounted partitions.

    4. Remount your partitions, and check lost+found. I strongly
       recommend running "debsums --all" after running xfs_repair on
       /usr, /var, and so on if any problems are found.

    5. Reinstall any package that may have been corrupted.

    6. Reboot--not always necessary, but highly recommended.

Keep in mind that XFS only checks journaled metadata during mount--it
doesn't do any filesystem integrity checks, even when one touches
/forcefsck. Running xfs_repair once in a while is something I strongly
recommend on home systems and workstations.

-- 
"Oh, look: rocks!"
	-- Doctor Who, "Destiny of the Daleks"


Reply to: