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 14:47:30 -0800
References: <E1AUCpd-0006YV-Th@server418.dnslive.net>
Sender: linux-xfs-bounce@xxxxxxxxxxx
>> I ran xfs_check /srv but got "xfs_check: can't determine device
>> size". I'm doing something wrong?
>
> 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(

Regards,
Norman


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