View previous topic :: View next topic |
Author |
Message |
brot Guru
Joined: 06 Apr 2004 Posts: 322
|
Posted: Sat Sep 24, 2005 10:55 am Post subject: XFS doesnt seem to be checked at boot.. (!) |
|
|
Hi.
My / is a XFS fs (no acl, quotas, etc). Last time i rebooted i saw that the point "checking root fs"(or similar) was very short. So i started the universal install disk, and ran xfs_check, which found some (smaller) errors. Is there anything i have to take care of to get my / checked every boot ?
Thank you all
brot
edit: fsck and fsck.xfs doesnt seem to do anything, too... |
|
Back to top |
|
|
widan Veteran
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Sat Sep 24, 2005 8:46 pm Post subject: Re: XFS doesnt seem to be checked at boot.. (!) |
|
|
brot wrote: | fsck and fsck.xfs doesnt seem to do anything, too... |
It really does nothing... From the fsck.xfs man page:
Quote: | fsck.xfs is called by the generic Linux fsck program at startup to check and repair an XFS filesystem. XFS is a journaling filesystem and performs recovery at mount time if necessary, so fsck.xfs simply exits with a zero exit status.
If you wish to check check the consistency of an XFS filesystem, or repair a damaged or corrupt XFS filesystem, see xfs_check and xfs_repair. |
Which does not mean that XFS filesystems can't get corrupted . And xfs_check does not take the same arguments as fsck, so you can't just symlink it . |
|
Back to top |
|
|
brot Guru
Joined: 06 Apr 2004 Posts: 322
|
Posted: Sat Sep 24, 2005 9:13 pm Post subject: |
|
|
.. Ok, that is really a thing which should be said in the gentoo installation manual. I mean, your data gets more and more corrupted and you dont get an advice to run xfs_check or something.
This is really hard. |
|
Back to top |
|
|
Aonoa Guru
Joined: 23 May 2002 Posts: 589
|
Posted: Sat Sep 24, 2005 10:20 pm Post subject: |
|
|
Personally I don't like XFS, your experience may differ but I've only had trouble with XFS. I've recently begun using Reiser4 and it works like a dream. My laptop has lost power abruptly 5-6 times and I didn't notice anything wrong with my system/filesystem afterwards. Still running strong.
In short, change to Reiser4! Maybe not the feedback you wanted, but I just wanted to speak up about my new favourite filesystem. |
|
Back to top |
|
|
widan Veteran
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Sat Sep 24, 2005 11:16 pm Post subject: |
|
|
eonic wrote: | My laptop has lost power abruptly 5-6 times and I didn't notice anything wrong with my system/filesystem afterwards. |
Usually there won't be any problems. Corruption is possible, but not frequent. Journaled filesystems are in theory immune to metadata corruption. In practice, that only holds true if the filesystem is using write barriers (that ensures the log is actually written to the media before the actual metadata changes) and the disk honors those barriers (and doesn't try to keep things before the barrier in cache). And barrier support is still problematic, at least for IDE (some IDE drives say they support cache flush, even though the command is actually a no-op).
Some info on this here and here. |
|
Back to top |
|
|
Aonoa Guru
Joined: 23 May 2002 Posts: 589
|
Posted: Sun Sep 25, 2005 9:09 am Post subject: |
|
|
Thanks for those links, I sort of know a little about journaling. But, when I used XFS a couple of years ago and lost power only once, it caused corruption so badly that I needed to reformat. Not to say that XFS might have improved since then. My bad experience back then could also have been a one-time fluke.
However, Ext3 and Reiserfs on the same harddrive and system did not have that huge corruption on powerloss. Different reactions with different filesystems made me think it was the filesystems fault, hardware features would not really matter since I tested this on the same hardware. |
|
Back to top |
|
|
brot Guru
Joined: 06 Apr 2004 Posts: 322
|
Posted: Sun Sep 25, 2005 9:32 am Post subject: .. |
|
|
no, it hasnt improved jet. i ran xfs repair, and i had a lost+found of about 10 mb, and thats not acceptable, imo. I want to change my fs, but before i do that i want to know if my steps are enough..
i wanted to do it like this:
1. booting from the universal live cd.
2. cp /mnt/oldroot /mnt/usbharddrive -a
3. format my oldroot with something _not_ xfs (but something thats compiled in the kernel, not as module)
4. cp /mnt/usbharddrive /mnt/newroot -a
(5. pray)
thank you all...
(reading http://fsbench.netnation.com/ to decide which fs i should choose ) |
|
Back to top |
|
|
|