reiserfsprogs 3.6.5-pre2 release.
Hi all!
this new pre-release includes:
- a critical bug on pass0 of rebuild-tree with overflowing while checking unformatted item offsets was fixed.
- a bug in relocation of shared object id - entry key sometimes does not get updated correctly with the new key - was fixed.
- a bug in bitops operations for be mashins was fixed.
- a bug with the superblock overwriting during replaying was fixed.
- while openning the journal check that journal parameters in the superblock and in the journal header mathches; advice to run rebuild-sb if not. While rebuilding the superblock, do the same check and ask the user if he wants to rebuild the journal header or continue w/out the journal or he wants to change the start of the partition before using reiserfsck.
- check that all not valid bits of the bitmap are set to 1, set it correctly.
- fix-fixable does not relocate shared object ids anymore, as it is too complex for fix-fixable and only rebuild-tree does.
- reiserfsck -a (started at boot) replays journal, checks error flags in the superblock, bitmaps, fs size, 2 levels of internal tree and switches to fixble mode if any problem is detected. For root fs fixable cannot be performed (as fs is mounted) and just --check will be done.
- Journal replay was improved a) check blocks if they could be journable before replaying; b) replay only transactions which has trans_id == last replayed transaction trans_id + 1.
- warning messages were improved.
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 9 lines · Vitaly Fertman
Hi all!
- a critical bug on pass0 of rebuild-tree with overflowing while checking unformatted item offsets was fixed.
- reiserfsck -a (started at boot) replays journal, checks error flags in the superblock, bitmaps, fs size, 2 levels of internal tree and switches to fixble mode if any problem is detected. For root fs fixable cannot be performed (as fs is mounted) and just --check will be done.
As the pre release has one critical bug fixed and we would like to make it a new release as soon as possible, any test of how rebuild-tree works on filesystems with big files is appreciated.
Also, it would be interesting to know how much time does reiserfsck -a take on big arrays. So if you have a such, try it also please. I mean, on consistent filsystems, otherwise reiserfsck will switch to the fix-fixable mode.
Signature · 2 lines
Thanks, Vitaly Fertman
Hi Vitaly,
here is an output of reiserfsck -a on a ~550 Gb Raid5 array filled about 60%.
# df /dev/sdb1 Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb1 572418604 335826568 236592036 59% /prod
# reiserfsck -V
<-------------reiserfsck, 2002------------->
reiserfsprogs 3.6.5-pre2
# time reiserfsck -a /dev/sdb1 Reiserfs super block in block 16 on 0x811 of format 3.6 with standard journal Blocks (total/free): 143109020/59148009 by 4096 bytes Filesystem is cleanly umounted Replaying journal.. 0 transactions replayed Checking internal tree..finished
real 0m47.890s user 0m6.668s sys 0m0.732s
Hope that helps.
Thanks,
Philippe
On Tue, 25 Feb 2003 17:12:45 +0300
Vitaly Fertman <[email protected]> wrote:
| Also, it would be interesting to know how much time does reiserfsck -a take | on big arrays. So if you have a such, try it also please. I mean, on consistent | filsystems, otherwise reiserfsck will switch to the fix-fixable mode.
Signature · 3 lines
Philippe Gramoullé [email protected] Lycos Europe - NOC France
Hello!
Quoted 10 lines · Philippe Gramoull?
# time reiserfsck -a /dev/sdb1 Reiserfs super block in block 16 on 0x811 of format 3.6 with standard journal Blocks (total/free): 143109020/59148009 by 4096 bytes Filesystem is cleanly umounted Replaying journal.. 0 transactions replayed Checking internal tree..finished real 0m47.890s user 0m6.668s sys 0m0.732s
Thanks for trying.
48 seconds is much longer than we expected such test should take. Was the system loaded at the time of test?
Bye,
Oleg
Hi,
On Wed, 26 Feb 2003 10:29:34 +0300
Oleg Drokin <[email protected]> wrote:
| Hello! | | On Wed, Feb 26, 2003 at 01:54:48AM +0100, Philippe Gramoull? wrote: | > # time reiserfsck -a /dev/sdb1 | > Reiserfs super block in block 16 on 0x811 of format 3.6 with standard journal | > Blocks (total/free): 143109020/59148009 by 4096 bytes | > Filesystem is cleanly umounted | > Replaying journal.. | > 0 transactions replayed | > Checking internal tree..finished | > real 0m47.890s | > user 0m6.668s | > sys 0m0.732s | | Thanks for trying. | 48 seconds is much longer than we expected such test should take. | Was the system loaded at the time of test?
The system was idle, doing absolutely nothing.
Thanks,
Philippe
Quoted 17 lines · Oleg Drokin
Hello!
Quoted 11 lines · Philippe Gramoull?
# time reiserfsck -a /dev/sdb1 Reiserfs super block in block 16 on 0x811 of format 3.6 with standard journal Blocks (total/free): 143109020/59148009 by 4096 bytes Filesystem is cleanly umounted Replaying journal.. 0 transactions replayed Checking internal tree..finished real 0m47.890s user 0m6.668s sys 0m0.732s
Quoted 10 lines
Thanks for trying.
48 seconds is much longer than we expected such test should take. Was the system loaded at the time of test?Bye,
Oleg
Yes, 48 seconds is too long to be acceptable.
Signature · 1 line
Hans
Quoted 14 lines
Quoted 14 lines
Quoted 13 lines
# time reiserfsck -a /dev/sdb1 Reiserfs super block in block 16 on 0x811 of format 3.6 with standard journal Blocks (total/free): 143109020/59148009 by 4096 bytes Filesystem is cleanly umounted Replaying journal.. 0 transactions replayed Checking internal tree..finished real 0m47.890s user 0m6.668s sys 0m0.732s
Quoted 5 lines
Quoted 4 lines
Thanks for trying.
48 seconds is much longer than we expected such test should take. Was the system loaded at the time of test?Yes, 48 seconds is too long to be acceptable.
Would it be possible to lower the time it takes to mount a filesystem? Currently it takes about 48s to mount my fs:
time mount /dev/Server/FTPRoot /glftpd/site -o noatime
real 0m48.906s user 0m0.000s sys 0m0.090s
Filesystem Size Used Avail Use% Mounted on /dev/Server/FTPRoot 744G 723G 21G 98% /glftpd/site
~ Anders
Hello!
Quoted 10 lines · Anders Widman
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
# time reiserfsck -a /dev/sdb1 Reiserfs super block in block 16 on 0x811 of format 3.6 with standard journal Blocks (total/free): 143109020/59148009 by 4096 bytes Filesystem is cleanly umounted Replaying journal.. 0 transactions replayed Checking internal tree..finished real 0m47.890s user 0m6.668s sys 0m0.732s
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Thanks for trying.
48 seconds is much longer than we expected such test should take. Was the system loaded at the time of test?Yes, 48 seconds is too long to be acceptable.
Would it be possible to lower the time it takes to mount a filesystem? Currently it takes about 48s to mount my fs:
Unfortunatelly there is no easy way.
Seems that most of the time is spent reading bitmaps (one bitmap after each 128M of data), and reiserfs reads in all the bitmaps at once during mount.
Bye,
Oleg
Quoted 6 lines
Quoted 2 lines
Would it be possible to lower the time it takes to mount a filesystem? Currently it takes about 48s to mount my fs:
Unfortunatelly there is no easy way.
Seems that most of the time is spent reading bitmaps (one bitmap after each 128M of data), and reiserfs reads in all the bitmaps at once during mount.
I only posted this because it is discussed how to lower the bootup time. The fsck might take a few seconds when optimised, but the actual mount of the FS takes much longer.
How big is each block of bitmaps that is being read during mount? Would it be possible to make the reads more efficient? I mean, now there would be 6400 reads on a 800GB FS. From the sound of the disks it does not seem as they work at 100% during mount?
(Actually, in my system it is not a problem is the boot takes 5 min, but I can imagine many that do not like that)
~Anders
Hello!
Quoted 8 lines · Anders Widman
Quoted 5 lines
Quoted 2 lines
Would it be possible to lower the time it takes to mount a filesystem? Currently it takes about 48s to mount my fs:
Unfortunatelly there is no easy way.
Seems that most of the time is spent reading bitmaps (one bitmap after each 128M of data), and reiserfs reads in all the bitmaps at once during mount.I only posted this because it is discussed how to lower the bootup time. The fsck might take a few seconds when optimised, but the actual mount of the FS takes much longer.
But this is not good reason to make it even longer, what do you think? (and blockdev cache is flushed on last device close, so mount won't get these bitmap blocks from cache).
Quoted 1 line
How big is each block of bitmaps that is being read during mount?
it's of blocksize size (4k for now).
Quoted 1 line
Would it be possible to make the reads more efficient? I mean, now
You still need to seek to every of them.
(Other possibility is to read bitmap blocks on 1st access, but this is not very easy task, I'd say).
Quoted 2 lines
there would be 6400 reads on a 800GB FS. From the sound of the disks it does not seem as they work at 100% during mount?
Hm. Disk cannot do anything while it is seeking. Also since the seeks are in one direction, you won't hear any unusual noises, I believe.
Bye,
Oleg
In article <[email protected]>,
Quoted 5 lines · Vitaly Fertman
this new pre-release includes:
- reiserfsck -a (started at boot) replays journal, checks error flags in the superblock, bitmaps, fs size, 2 levels of internal tree and switches to fixble mode if any problem is detected. For root fs fixable cannot be performed (as fs is mounted) and just --check will be done.
I get:
Checking all file systems...
fsck 1.27 (8-Mar-2002)
Reiserfs super block in block 16 on 0x902 of format 3.6 with standard journal Blocks (total/free): 32848/22393 by 4096 bytes
Filesystem is cleanly umounted
flush_buffers: device is not specifed
Warning... fsck.reiserfs for device /dev/md2 exited with signal 6. Reiserfs super block in block 16 on 0x900 of format 3.6 with standard journal Blocks (total/free): 37446896/1277098 by 4096 bytes
Filesystem is cleanly umounted
flush_buffers: device is not specifed
Warning... fsck.reiserfs for device /dev/md0 exited with signal 6.
fsck failed. Please repair manually.
CONTROL-D will exit from this shell and continue system startup.
Give root password for maintenance
(or type Control-D for normal startup):
...at which point booting stops.
On another machine I get:
Checking all file systems...
fsck 1.27 (8-Mar-2002)
Reiserfs super block in block 16 on 0x900 of format 3.6 with standard journal Blocks (total/free): 152654320/1162905 by 4096 bytes
Filesystem is NOT cleanly umounted
Wrong amount of used blocks. Switching to fix-fixable pass.
###########
reiserfsck --fix-fixable started at Tue Mar 4 19:18:18 2003
###########
flush_buffers: device is not specifed
Warning... fsck.reiserfs for device /dev/md0 exited with signal 6.
fsck failed. Please repair manually.
CONTROL-D will exit from this shell and continue system startup.
Give root password for maintenance
(or type Control-D for normal startup):
...again, booting stops.
If I run reiserfsck --rebuild-tree from a shell, it seems to work normally.
Signature · 2 lines
Zygo Blaxell (Laptop) <[email protected]> GPG = D13D 6651 F446 9787 600B AD1E CCF3 6F93 2823 44AD
Am Mittwoch, 5. März 2003 01:50 schrieb Zygo Blaxell:
Quoted 26 lines
In article <[email protected]>,
Quoted 5 lines · Vitaly Fertman
this new pre-release includes:
- reiserfsck -a (started at boot) replays journal, checks error flags in the superblock, bitmaps, fs size, 2 levels of internal tree and switches to fixble mode if any problem is detected. For root fs fixable cannot be performed (as fs is mounted) and just --check will be done.I get:
Checking all file systems... fsck 1.27 (8-Mar-2002) Reiserfs super block in block 16 on 0x902 of format 3.6 with standardjournal Blocks (total/free): 32848/22393 by 4096 bytes
Filesystem is cleanly umounted
flush_buffers: device is not specifed
Warning... fsck.reiserfs for device/dev/md2exited with signal 6. Reiserfs super block in block 16 on0x900of format 3.6 with standard
journal Blocks (total/free): 37446896/1277098 by 4096 bytes
Filesystem is cleanly umounted
flush_buffers: device is not specifed
Warning... fsck.reiserfs for device/dev/md0exited with signal 6.
Quoted 8 lines
fsck failed. Please repair manually.
CONTROL-D will exit from this shell and continue system startup.
Give root password for maintenance
(or type Control-D for normal startup):...at which point booting stops.
Same here with all my "normal" SCSI disks.
See my former "reiserfsprogs-3.6.5-pre2: volumes do not mount during boot" post.
Should I try reiserfsck --rebuild-tree?
Thanks,
Dieter
Signature · 6 lines
Dieter Nützel Graduate Student, Computer Science University of Hamburg Department of Computer Science @home: Dieter.Nuetzel at hamburg.de (replace at with @)
Quoted 8 lines
Same here with all my "normal" SCSI disks.
See my former "reiserfsprogs-3.6.5-pre2: volumes do not mount during boot" post.Should I try reiserfsck --rebuild-tree?
Thanks,
Dieter
No, you should run reiserfsck --check manually and follow the instructions.
Signature · 2 lines
Thanks, Vitaly Fertman
reiserfsprogs 3.6.5 release.
In reply to Vitaly FertmanHi all,
The new 3.6.5 release includes:
- Improved fs/journal/bitmap initialising.
- Improved journal replaying - check transactions content before replaying, sware on invalid content instead of replaying attempts, print about results and problems.
- A few small bug were fixed.
- all stuff 3.6.5-pre2 pre-release included:
Quoted 23 lines
- a critical bug on pass0 of rebuild-tree with overflowing while checking unformatted item offsets was fixed.
- a bug in relocation of shared object id - entry key sometimes does not get updated correctly with the new key - was fixed.
- a bug in bitops operations for be mashins was fixed.
- a bug with the superblock overwriting during replaying was fixed.- while openning the journal check that journal parameters in the superblock and in the journal header mathches; advice to run rebuild-sb if not. While rebuilding the superblock, do the same check and ask the user if he wants to rebuild the journal header or continue w/out the journal or he wants to change the start of the partition before using reiserfsck.
- check that all not valid bits of the bitmap are set to 1, set it correctly.- fix-fixable does not relocate shared object ids anymore, as it is too complex for fix-fixable and only rebuild-tree does.
- reiserfsck -a (started at boot) replays journal, checks error flags in the superblock, bitmaps, fs size, 2 levels of internal tree and switches to fixble mode if any problem is detected. For root fs fixable cannot be performed (as fs is mounted) and just --check will be done.
Quoted 5 lines
- Journal replay was improved a) check blocks if they could be journable before replaying; b) replay only transactions which has
trans_id== last replayed transactiontrans_id+ 1.- warning messages were improved.
- all stuff 3.6.5-pre1 included:
Quoted 8 lines
It includes speedup for pass0, which becomes quite important for hignly fragmented object id maps, and a few fixed bugs:
- bug in balancing code led to abort when a leaf could be viewed as a block of another type;
- bug in checking statdata size for symlinks allowed to have symlinks with holes at the end.
- bug in direct-indirect item convertion let symlinks to be created of wrong format.
Signature · 2 lines
Thanks, Vitaly Fertman
Re: reiserfsprogs 3.6.5 release.
Hi vitaly,
i don't know if this version has notable changes from the "improved" one you sent me, but i had just started a --rebuild-tree -z on a yet never rebuilt fs, before i saw this mail:
So it took about 2 hours to rebuild a 570Go partition filled up to 225Go ( 40% used ).
This is a really good improvement if we compare to previous 6 or 8 hours from previous runs on similar setups.
Thanks,
Philippe
# ./reiserfsck-improved-speed-version --rebuild-tree -z -l /home/test/fsck-sdb1.log /dev/sdb1
<-------------reiserfsck, 2002------------->
reiserfsprogs 3.6.5-pre2
[snip]
Will rebuild the filesystem (/dev/sdb1) tree
Will set file sizes in their metadata to real file sizes actually found by fsck.
Will put log info to '/home/toor/fsck-sdb1.log'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes Replaying journal..
0 transactions replayed
###########
reiserfsck --rebuild-tree started at Thu Mar 20 10:51:54 2003
###########
Pass 0:
Loading on-disk bitmap .. ok, 56296546 blocks marked used
Skipping 12578 blocks (super block, journal, bitmaps) 56283968 blocks will be read
0%....20%....40%....60%.... left 0, 23412 /secseccccc
"r5" hash is selected
Flushing..finished
Read blocks (but not data blocks) 56283968
Leaves among those 920479
- leaves all contents of which could not be saved and deleted 2
Objectids found 4722462
Pass 1 (will try to insert 920477 leaves):
Looking for allocable blocks .. finished
0%....20%....40%....60%....80%....100% left 0, 1051 /sec
Flushing..finished
920477 leaves read
918896 inserted
1581 not insertedPass 2:
0%....20%....40%....60%....80%....100% left 0, 53 /sec
Flushing..finished
Leaves inserted item by item 1581
Pass 3 (semantic):
Flushing..finished
Files found: 3884342
Directories found: 838111
Others: 8
Files with fixed size: 283Pass 3a (looking for lost dir/files):
Looking for lost directories:
Flushing..finished7, 258 /sec
Pass 4 - finisheddone 918666, 228 /sec
Flushing..finished
Syncing..finished
###########
reiserfsck finished at Thu Mar 20 12:56:43 2003
###########
On Thu, 20 Mar 2003 16:31:19 +0300
Vitaly Fertman <[email protected]> wrote:
| | Hi all, | | The new 3.6.5 release includes: | | - Improved fs/journal/bitmap initialising. | - Improved journal replaying - check transactions content before replaying, | sware on invalid content instead of replaying attempts, print about results | and problems. | - A few small bug were fixed. | | - all stuff 3.6.5-pre2 pre-release included: | > - a critical bug on pass0 of rebuild-tree with overflowing while checking | > unformatted item offsets was fixed. | > - a bug in relocation of shared object id - entry key sometimes does not | > get updated correctly with the new key - was fixed. | > - a bug in bitops operations for be mashins was fixed. | > - a bug with the superblock overwriting during replaying was fixed. | > | > - while openning the journal check that journal parameters in the | > superblock and in the journal header mathches; advice to run rebuild-sb if | > not. While rebuilding the superblock, do the same check and ask the user if | > he wants to rebuild the journal header or continue w/out the journal or he | > wants to change the start of the partition before using reiserfsck. | > - check that all not valid bits of the bitmap are set to 1, set it | > correctly. | > | > - fix-fixable does not relocate shared object ids anymore, as it is too | > complex for fix-fixable and only rebuild-tree does. | > | > - reiserfsck -a (started at boot) replays journal, checks error flags in | > the superblock, bitmaps, fs size, 2 levels of internal tree and switches | > to fixble mode if any problem is detected. For root fs fixable cannot be | > performed (as fs is mounted) and just --check will be done. | > | > - Journal replay was improved a) check blocks if they could be journable | > before replaying; b) replay only transactions which has trans_id == last | > replayed transaction trans_id + 1. | > | > - warning messages were improved. | | - all stuff 3.6.5-pre1 included: | > It includes speedup for pass0, which becomes quite important for hignly | > fragmented object id maps, and a few fixed bugs: | > - bug in balancing code led to abort when a leaf could be viewed as a block | > of another type; | > - bug in checking statdata size for symlinks allowed to have symlinks with | > holes at the end. | > - bug in direct-indirect item convertion let symlinks to be created of wrong | > format. |