| View previous topic :: View next topic |
| Author |
Message |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Sun Dec 11, 2005 12:31 pm Post subject: Reiser4 fsck wrapper |
|
|
Hi,
well I really want a better support for reiser4 by gentoo ...
then I have add this in my /sbin
/sbin/fsck.reiser4
| Code: | #!/bin/sh
exec /sbin/fsck.reiser4.orig --fix --build-sb --build-fs "$@" |
It's a simple wrapper for reiser4 fsck programs that add correct parameters
I want to know if all this parameter could be use without any danger and if checkfs with fsck command will use it properly add boot time
what do -a option of fsck.reiser4 ?
well if this wrapper are good, why don't add a patch that make this wrapper of reiser4progs ???
thanks for support _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
Blood Fluke Apprentice


Joined: 15 Sep 2005 Posts: 224
|
Posted: Sun Dec 11, 2005 2:51 pm Post subject: |
|
|
| "fsck" on ReiserFS should only be done offline. Generally speaking, if you're using Reiser's shitty recovery tools, you're already way beyond fucked. |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Sun Dec 11, 2005 2:56 pm Post subject: |
|
|
um ...
gentoo run fsck on mounting filesystem ? in read-only mode of course ?
I suppose it's true for root file system (/) but for the other too ?
Are they any solution to use this filesystem yet ? Does reiser have a futur in fs system on gentoo ? _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Sun Dec 11, 2005 3:00 pm Post subject: |
|
|
well well,
I'm trying this
I do this for my hda9 (usr/portage)
remount in ro mode
do with my wrapper fsck -f /dev/hda9
all done successfully
then remount it in rw mode
no problem to do this ... what's the issue for you about offline mode ? my test prove that we can do this in online mode (read-only well :d)
probably something I don't see ... any other idea about this wrapper
I just want to know if my parameters are good and if the use of reiser4 with this wrapper should be great in gentoo environment ...
see _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
Blood Fluke Apprentice


Joined: 15 Sep 2005 Posts: 224
|
Posted: Sun Dec 11, 2005 4:12 pm Post subject: |
|
|
| vincent_bachelier wrote: | um ...
gentoo run fsck on mounting filesystem ? in read-only mode of course ?
|
You're missing the point.
Reiser's recovery tools don't work.
If you're in a position in which you need to run fsck, you need to be doing it from a rescue disk because it is extremely unlikely that the system will come out of it undamaged.
| vincent_bachelier wrote: |
Are they any solution to use this filesystem yet ?
|
Daily backups.
| vincent_bachelier wrote: |
Does reiser have a futur in fs system on gentoo ? |
Of course. Gentoo users will use almost anything, no matter how stupid. Especially ReiserFS, because it's OMG L33T! |
|
| Back to top |
|
 |
plasmagunman l33t


Joined: 07 Jun 2002 Posts: 604 Location: berlin
|
Posted: Sun Dec 11, 2005 4:38 pm Post subject: |
|
|
| Blood Fluke wrote: | | vincent_bachelier wrote: | | Does reiser have a futur in fs system on gentoo ? |
Of course. Gentoo users will use almost anything, no matter how stupid. Especially ReiserFS, because it's OMG L33T! |
and perhaps because it's fast, extensible and state-of-the-art modern file system, but let us not start a flame war here, there are already enough. i just didn't want to leave your reiser4-bashing unresponded. _________________ please, feel free to correct my english. - por favor, corrige mi español. |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Sun Dec 11, 2005 4:39 pm Post subject: |
|
|
Hi
I see you don't really love reiserfs system. Have bad personal experiment about it ?
Some over guy use it for a while now, and have no problem yet ...
I'm using XFS for a moment now, but I see a terrible problem after an hard crach (no battery left for example: mobile desktop :d)
well I need to go to livecd and use xfs_check and xfs_repair ...
it's not automatical, and fsck do nothing on xfs file system ...
ext3 are certainly the best and the most stable for the moment, but too slow for me ... even I never try boost up option for ext3 (writeback for example)
What fs do you use, what the best for you ? is there a fs where you can say 'that to it, I can't have any lost file and unrecovery partition ever ...'
Tell me more about your angry on this fs ... _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
codergeek42 Bodhisattva

Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Sun Dec 11, 2005 5:04 pm Post subject: |
|
|
Reiser4 is not, at this time, supported by the Gentoo development team.
Moved from Portage & Programming to Unsupported Software. _________________ ~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Sun Dec 11, 2005 5:31 pm Post subject: |
|
|
Well, and when did this fs will be supported by Gentoo Development Team ? _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
codergeek42 Bodhisattva

Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Sun Dec 11, 2005 5:58 pm Post subject: |
|
|
| vincent_bachelier wrote: | | Well, and when did this fs will be supported by Gentoo Development Team ? | It will most likely be supported when it becomes part of the standard upstream kernel tree. However, I'd rather not take this discussion off-topic with this type of thing.  _________________ ~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF |
|
| Back to top |
|
 |
RuiP l33t


Joined: 15 Jan 2005 Posts: 643
|
Posted: Sun Dec 11, 2005 6:04 pm Post subject: |
|
|
| vincent_bachelier wrote: | | Well, and when did this fs will be supported by Gentoo Development Team ? |
Here is a dirty discution on some topic as your question:
http://forums.gentoo.org/viewtopic-t-403312.html |
|
| Back to top |
|
 |
gimpel Advocate


Joined: 15 Oct 2004 Posts: 2718 Location: Munich, Bavaria
|
Posted: Mon Dec 12, 2005 12:32 am Post subject: |
|
|
| vincent_bachelier wrote: | um ...
gentoo run fsck on mounting filesystem ? in read-only mode of course ? |
_never_ fsck reiser4! it isn't needed. not at bootup, really not.
the nature of that fs is that it simply doesn't have to be checked...
so set fs_passno in fstab to 0 and you're fine.
/ignore'ing the rest of this discussion as it starts to bore stiff _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Mon Dec 12, 2005 6:01 am Post subject: |
|
|
Well, what happen after a hard shutting down ?
I have a mobile desktop and when my battery is off, my system shutdown, but sometime it run shutdown too late, and the computer haven't got enough time to umount fs.
well when I start the system again, they run properly, but fs is in a unconsistant state ... they need a check, and a check reveal some file crash ...
are you sure of your post ? _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
Jake Veteran

Joined: 31 Jul 2003 Posts: 1128
|
Posted: Mon Dec 12, 2005 6:43 am Post subject: |
|
|
You shouldn't be using --build-sb and --build-fs every time. reiser4 should be able to rebuild itself safely, but I don't think it's the sort of thing you want to do unless the filesystem has serious problems.
To address Blood Fluke's complaints, I should say that Namesys has learned a great deal since writing the original reiserfsck as an afterthought. As I understand, some serious bugs still can't be fixed without changing the on-disk format. In the case of reiser4, fsck was designed in parallel with the filesystem itself (EDIT: keep in mind that reiser4 is not reiserfs++; it's a totally different filesystem) to ensure that it would be capable of completely rebuilding the FS. But I do agree that backups are a good policy, although I end up personally doing more damage to my data than reiser4 and cheap ATA drives combined.
Regarding the need to fsck, reiser4 is designed to be atomic (for writes anyway), meaning that when you reboot you may find that some recent changes didn't make it to the disk, but the filesystem should be in a consistent state. What exactly does "fsck.reiser4 --check" tell you after power failure that leads you to think you need --build-sb and --build-fs? |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Mon Dec 12, 2005 7:03 am Post subject: |
|
|
Well, we never have to do an fsck then ?
or just fsck --fix (in my wrapper)
build-sb and build-fs are only use in case where it's necessary, then putting this option propably doesn't matter ...
of course if it need, fsck will rebuild part of reiser4 fs break ...
but the fsck of gentoo with standard option, are sufficiant for reiser4 ? make this wrapper with --fix option aren't good then ?
what do you think about that ? _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
gimpel Advocate


Joined: 15 Oct 2004 Posts: 2718 Location: Munich, Bavaria
|
Posted: Mon Dec 12, 2005 10:53 am Post subject: |
|
|
| vincent_bachelier wrote: | Well, what happen after a hard shutting down ?
I have a mobile desktop and when my battery is off, my system shutdown, but sometime it run shutdown too late, and the computer haven't got enough time to umount fs.
well when I start the system again, they run properly, but fs is in a unconsistant state ... they need a check, and a check reveal some file crash ...
are you sure of your post ? |
well, not sure how it behaves on a laptop... but my reiser4 partitions are about 10 months old, and i had about.. lol.. 100 hardlocks if that is enough, but i never had to check the filesystem. at least i didn't encounter any errors, so i didn't check it.
It's the same as with sun's new ZFS, it simply does not have to be checked all the time on every bootup.
The on-disc state of files is always valid. Files are written to the disk at once, and if a file is blown away after a hard reset, it has never been written, and is therefor blown away. or some recent changes to files get lost, that's all. That's called an atomic fs.
edit: and if you ever manage to break the fs (i never did with some hundert hard resets), you will most likely have to use a livecd like RR4 anyway to make sure the disks are offline _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
| Back to top |
|
 |
yngwin Developer


Joined: 19 Dec 2002 Posts: 4219 Location: Suzhou, China
|
Posted: Mon Dec 12, 2005 6:29 pm Post subject: |
|
|
| codergeek42 wrote: | Reiser4 is not, at this time, supported by the Gentoo development team.
Moved from Portage & Programming to Unsupported Software. |
Portage seems to say otherwise though:
| reiser4progs-1.0.5.ebuild wrote: | DESCRIPTION="reiser4progs: mkfs, fsck, etc..."
...
KEYWORDS="amd64 ppc ppc64 -sparc x86" |
So, reiser4progs, which includes the fsck discussed here, is a stable package in portage. So, how can the Gentoo devs not support a stable package? (I know they don't support any kernel that includes Reiser4, but that is not exactly the point here...) _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
| Back to top |
|
 |
nxsty Veteran


Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Mon Dec 12, 2005 6:56 pm Post subject: |
|
|
| yngwin wrote: | | So, reiser4progs, which includes the fsck discussed here, is a stable package in portage. So, how can the Gentoo devs not support a stable package? (I know they don't support any kernel that includes Reiser4, but that is not exactly the point here...) |
Yes they do support the stable package with reiser4 filesystem tools. But that doesn't mean that the filesystem itself is supported. The filesystem driver in the kernel and the filesystem tools are different things. |
|
| Back to top |
|
 |
yngwin Developer


Joined: 19 Dec 2002 Posts: 4219 Location: Suzhou, China
|
Posted: Mon Dec 12, 2005 7:42 pm Post subject: |
|
|
I know. But the original question was about the stable filesystem tools (fsck to be precise). So this topic should not have been moved to "Unsupported Software"... _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Tue Dec 13, 2005 7:08 am Post subject: |
|
|
thx for support
I will try a total move to reiser4 with good backup then
see ya _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
infirit l33t


Joined: 11 Jan 2003 Posts: 764 Location: Hoofddorp / The Netherlands
|
Posted: Tue Dec 13, 2005 8:46 pm Post subject: Re: Reiser4 fsck wrapper |
|
|
| vincent_bachelier wrote: | then I have add this in my /sbin
/sbin/fsck.reiser4
| Code: | #!/bin/sh
exec /sbin/fsck.reiser4.orig --fix --build-sb --build-fs "$@" |
It's a simple wrapper for reiser4 fsck programs that add correct parameters | This will do more harm then good. The only one that can safely be added is --fix the other 2 should only be run when --fix sugests it. _________________ EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Tue Dec 13, 2005 8:47 pm Post subject: |
|
|
Ok my system is now on Reiser4 full filesystem (except /boot of course)
I only put --fix for my wrapper in case where :d
I have try this:
run system
cut alimentation brutally
restart my system
then fsck.reiser4 is run with --fix -a partition
but -a option seems to disabling any check ... or fsck.reiser4 do only when it really need to do this ...
any report about this ?
I have another issues ... I see some system hang up when my computer is in load ... eg: emerge sync ...
they block all keyboard, mouse, video ... write file and give me the hand after ...
have a option to make this less blocking ? _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
infirit l33t


Joined: 11 Jan 2003 Posts: 764 Location: Hoofddorp / The Netherlands
|
Posted: Tue Dec 13, 2005 8:56 pm Post subject: |
|
|
| vincent_bachelier wrote: | Ok my system is now on Reiser4 full filesystem (except /boot of course)
I only put --fix for my wrapper in case where :d
I have try this:
run system
cut alimentation brutally
restart my system
then fsck.reiser4 is run with --fix -a partition
but -a option seems to disabling any check ... or fsck.reiser4 do only when it really need to do this ...
|
It should not, according tot the man page it does an automatic check. If it does not report it to the namesys guys.
| vincent_bachelier wrote: | I have another issues ... I see some system hang up when my computer is in load ... eg: emerge sync ...
they block all keyboard, mouse, video ... write file and give me the hand after ...
have a option to make this less blocking ? |
Reiser4 is currently horribly unstable (after 2.6.13) and because of this I switched back to reiserfs. Hanging on high load and fsync performance are 2 of the know reiser4 issues.
Also there is no resizer yet so people using lvm2 (like me) can not grow or shrink partitions. _________________ EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Tue Dec 13, 2005 9:28 pm Post subject: |
|
|
um ... reiserfs comparing to xfs are more performant ?
I will have some hang up ....
have an idea if this bug will be correct soonly ?
It's a little be difficult to use it completly with a desktop computer with this kind of bug ...
any patch to solve it ? _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
gimpel Advocate


Joined: 15 Oct 2004 Posts: 2718 Location: Munich, Bavaria
|
Posted: Tue Dec 13, 2005 9:33 pm Post subject: |
|
|
| infirit wrote: | Reiser4 is currently horribly unstable (after 2.6.13) and because of this I switched back to reiserfs. Hanging on high load and fsync performance are 2 of the know reiser4 issues.
Also there is no resizer yet so people using lvm2 (like me) can not grow or shrink partitions. |
all fixed in -mm already.
you could also mount reiser4 with noatime,nodiratime to 'solve' those issues in 2.6.14
and resizing is evil anyway  _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
| Back to top |
|
 |
|