xfs
[Top] [All Lists]

Re: Repair XFS

To: <linux-xfs@xxxxxxxxxxx>
Subject: Re: Repair XFS
From: "Norman Zhang" <nzhang@xxxxxxxxxxxxxxx>
Date: Wed, 10 Dec 2003 16:26:16 -0800
References: <E1AUCpd-0006YV-Th@xxxxxxxxxxxxxxxxxxxxx> <005d01c3bf6f$97d99500$0716a8c0@xxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
>> Once you get it unmounted (check that other processes are not using
>> it, you may need to switch to init level 2 or even 1...
>>
>> Anyway, once it is unmounted, you should use:
>>
>> xfs_check /dev/md5
>>
>> and then try
>>
>> xfs_repair /dev/md5
>>
>> If you need to reboot to umount the volume, you may need to mount it
>> once and then umount it to make sure that the journal (log) is
>> replayed before doing the xfs_repair.
>>
>> You can see some scripts I have that do this "automatically" for my
>> servers using rebooting into LILO to even handle the "/" mount at
>> http://www.sinz.org/Linux/
>
> Thanks. I will try umounting again and follow your steps after hours.
> This is a production server 8(
>
> I'm just wondering, won't Linux (Mandrake 9.2) do fsck automatically?
> After each reboot, I do see that it complained system not shutdown
> properly, press Y to force check. I press it. System scans some
> stuffs then repairs. I still see data corruptions 8(

One funny thing, some folders are still viewable after initial stall.
Eventually all folders would be not viewable. Anyone seen this?

Regards,
Norman


<Prev in Thread] Current Thread [Next in Thread>