1 |
Beso <givemesugarr@×××××.com> posted |
2 |
d257c3560901180446k7ffd4a6bv2077b53614fe7ba8@××××××××××.com, excerpted |
3 |
below, on Sun, 18 Jan 2009 13:46:14 +0100: |
4 |
|
5 |
> i'd like to know if there's something particular to be aware of |
6 |
> disabling fsck on boot with reiserfs and if there are some other |
7 |
> things than removing the service from boot runlevel to be aware of. |
8 |
|
9 |
Well, removing the service doesn't really work all that well, since it's |
10 |
a core service that's considered vital under normal circumstances, and a |
11 |
dependency of other services. At least it didn't work well for me with |
12 |
baselayout2/openrc. Maybe with old baselayout1 it can work without |
13 |
jumping thru all sorts of hoops to get and keep it off. |
14 |
|
15 |
Instead, as the original post mentioning it indicated, the trick is to |
16 |
set the fstab entries to turn off fsck for whatever you don't want it |
17 |
regularly run on, in this case, reiserfs. fsck order is the sixth field |
18 |
of an fstab entry. Just set it to zero, and the fsck initscripts should |
19 |
ignore it. (IIRC there was a fix for that on baselayout2 awhile back. |
20 |
I'm not sure if the fix was from baselayout1 or from earlier |
21 |
baselayout2s, however. If it doesn't work, you need to update or try |
22 |
something else.) |
23 |
|
24 |
> i'm using reiserfs v3.6 revision, r5 hash with ordered data and |
25 |
> sometimes i have lockups that force me for unsafe resumes. can this |
26 |
> trigger the need for a rebuild tree? |
27 |
|
28 |
That's what I'm using; it's what I've used since well before data=ordered |
29 |
(except for the ordered data bit, which was from then, of course), and as |
30 |
I said, I haven't had problems with it, including no --rebuild-trees. |
31 |
This time without filesystem issues includes the couple years or so after |
32 |
I first got this machine, when it had bad memory and therefore lockup |
33 |
wasn't infrequent at all. It also includes the period I was running a |
34 |
still unstable xorg composite, which ate memory and would sometimes crash |
35 |
the system that way. And it includes various power outages due to |
36 |
thunderstorms or someone hitting a power pole or the like (a cat in the |
37 |
substation once...). This area doesn't have too bad a power, but it's |
38 |
not perfect and I don't have a UPS. (I could probably get one now that |
39 |
I've switched to LCDs, but the one I tried when I had CRTs was pretty |
40 |
high capacity and pretty expensive, and ran for barely eight minutes... |
41 |
with one of my two monitors powered off. It didn't last long and I |
42 |
didn't replace it.) |
43 |
|
44 |
Before the ordered data mode (back on Mandrake), I did have problems on |
45 |
occasion, and had to use it. The infamous complaint about --rebuild-tree |
46 |
on reiserfs is that if you happen to put a loopback reiserfs in a file on |
47 |
reiserfs, rebuild-tree sees the superblock of the loopback and doesn't |
48 |
realize it's a loopback. However, that's simple enough to avoid, just |
49 |
don't put loopback reiserfs images on reiser filesystems. ISO-9660, fat, |
50 |
etc, those loopbacks are I believe fine (I know I've not had problems |
51 |
with them). Just don't put reiserfs on reiserfs, but I've never had |
52 |
reason to do that anyway. Other than that, what rebuild-tree does is go |
53 |
thru the filesystem data and make anything that looks like a file back |
54 |
into one, assigning a random name and putting it in lost&found, of |
55 |
course. Some of those may have already been deleted, and just not |
56 |
cleared due to the corrupted journal due to unordered mode thus not |
57 |
caught at journal playback; some may be more direct metadata tree damage |
58 |
(a directory may have been lost but all its former files will show up, |
59 |
for instance) due to a crash in unordered mode at the wrong moment, etc. |
60 |
|
61 |
I suppose it's possible that the check and journal playback at mount |
62 |
might not catch something if there's a hardware failure, but since |
63 |
data=ordered became the default, I've never seen such, and as I said, I |
64 |
had a LOT of crashes during part of that period, so it seems pretty |
65 |
robust to me. |
66 |
|
67 |
The other thing I used to see before ordered mode was reiserfs zeroing |
68 |
out files, on occasion, on after-crash mount. Again, I've not seen such |
69 |
behavior since ordered mode, which has been several years now. |
70 |
|
71 |
Anyway, what I'd actually recommend is disabling fsck on reiserfs at |
72 |
boot, but then running a --check manually, every six months or so (this |
73 |
of course assumes you boot more often than every six months, of course) |
74 |
Truth be told, I haven't done the checks here at all, and haven't seen |
75 |
issues, but I /do/ do full backups periodically, and expect I'd notice |
76 |
problems if files were going unreadable. Also, my important stuff is on |
77 |
RAID-6, which /does/ get thrown into recovery mode every once in awhile |
78 |
after a crash. Folks without that two-way checksum verification on their |
79 |
important stuff are more likely to have statistical noise disk errors |
80 |
creep in occasionally, and if they aren't running checks say a couple |
81 |
times a year, those could eventually develop into pretty big data |
82 |
issues. But it'd take time, and, I haven't seen anything like that on my |
83 |
RAID-0 either. Not that I'd be as likely to catch it there, because I do |
84 |
not back it up since it's just stuff like the portage and kernel trees |
85 |
that are easily redownloaded, and ccache, so I don't worry much about it, |
86 |
but as I said, I've not /seen/ any issues, not a single one, that the |
87 |
boot process didn't fix, since ordered mode. |
88 |
|
89 |
One thing with reiserfs, if the filesystems were cleanly unmounted, |
90 |
mounting is nearly instant -- it does the quick-checks and there's no |
91 |
journal replay since that was synced at shutdown, and the mount is really |
92 |
fast. But the boot-time fscks were slower. Get rid of them and you WILL |
93 |
notice a speedup. The 4-way RAID of course helps here, and baselayout2/ |
94 |
openrc actually works with parallel boot, but the hardware BIOS check is |
95 |
now the majority of my boot time by a VERY great margin (several times |
96 |
over), with grub and the kernel-to-operational taking about the same time |
97 |
each, time that's only a fraction of the BIOS check process time. With |
98 |
the fscks, it took MUCH longer (kernel-to-operational was about the same |
99 |
as the BIOS check), since those were both slow and can't be well |
100 |
parallelized since nearly everything else depends on the fscks, and |
101 |
nearly all of what doesn't, the fscks depend on. |
102 |
|
103 |
> and, if you have experiences with it, do you know what could happen |
104 |
> without fsck on an unsafely unmounted luks partition? |
105 |
|
106 |
Luks I know nothing of. Someday when I get the appropriate round tuit... |
107 |
|
108 |
-- |
109 |
Duncan - List replies preferred. No HTML msgs. |
110 |
"Every nonfree program has a lord, a master -- |
111 |
and if you use the program, he is your master." Richard Stallman |