Skip to contentSkip to conversation

Reiserfs version???

DISCUSSION [email protected] 3 participants 4 messages Aug 7, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

My fileserver quit. It's root partiton is missing one superblock.

Normally, fsck would be able to use a backup superblock. But it seems that reiserfsck is not capable of this.

Now --rebuild-sb asks me for the version. I really wouldn't know.

But i have a couple of other reiserfs partitions where I could gather this info. Where can I find the version??? (Can I make debugreiserfs print it? )

Roger.

#1 lore raw

Hello!

Quoted 2 lines · On Thu, Aug 07, 2003 at 12:26:42PM +0200, [email protected] wrote:

Normally, fsck would be able to use a backup superblock. But it seems that reiserfsck is not capable of this.

reiserfs does not have any backup superblocks.

Quoted 1 line

Now --rebuild-sb asks me for the version. I really wouldn't know.

Well, if you use recent enough fsck, it also gives some hints on how to find the version (I really hope you are using reiserfsprogs 3.6.11, if you are not, then I suggest you to upgrade your reiserfsprogs first).

If you store files of bigger than 2Gb in size on that FS, then it is of 3.6 version. If you run 2.2 kernel on your fileserver, then it is of 3.5 version. If you run 2.4 kernel on your fileserver and you still have logs from past boots, see if there is "reiserfs: using 3.5.x disk format" message after mounting that fs. If there is, then this is 3.5 format, if there is not then it has 3.6 format. If you do not have any logs and you use kernel 2.4, then you may choose 3.6 format and it won't hurt (but you won't be able to mount such a volume
with 2.2 kernel later on).

Bye,
Oleg

#2 lore raw
Quoted 8 lines · Oleg Drokin

Hello!

Quoted 2 lines · On Thu, Aug 07, 2003 at 12:26:42PM +0200, [email protected] wrote:

Normally, fsck would be able to use a backup superblock. But it seems that reiserfsck is not capable of this.

reiserfs does not have any backup superblocks.

And I presume V4 fixes that?

I found a bunch of block with the "ReIsErFs" magic on the disk. They look similar to the superblock, enough so that the superblock should be reconstructed from there?

Quoted 6 lines
Quoted 1 line

Now --rebuild-sb asks me for the version. I really wouldn't know.

Well, if you use recent enough fsck, it also gives some hints on how to find the version (I really hope you are using reiserfsprogs 3.6.11, if you are not, then I suggest you to upgrade your reiserfsprogs first).

We got the most recent a couple of weeks ago. It was 3.6.6.

Quoted 2 lines

If you store files of bigger than 2Gb in size on that FS, then it is of 3.6 version. If you run 2.2 kernel on your fileserver, then it

Yes, probably.

Quoted 1 line

is of 3.5 version.

Nope.

Quoted 3 lines

If you run 2.4 kernel on your fileserver and you
still have logs from past boots, see if there is "reiserfs: using 3.5.x disk format" message after mounting that fs. If there is,

The logs live on /, / is the one with the missing superblock....

And mounting another fs that didn't have a missing superblock gave us no message, although reiserfs was version 3.6.25.

Quoted 1 line

then this is 3.5 format, if there is not then it has 3.6 format. If

I mounted another filesystem and in /proc it told me it found a 3.5 version filesystem. So I went to the fsck --rebuild-sb and it had three options for a 3.5 filesystem...... (i.e. one was eliminated.)

Quoted 3 lines

you do not have any logs and you use kernel 2.4, then you may choose 3.6 format and it won't hurt (but you won't be able to mount such a volume with 2.2 kernel later on).

We upgraded the ondisk format loosing the 2.2 compatiblity some time ago.

So, given the above information, some strongly hinting we were at 3.5, some to 3.6, tell me which we have......

I chose option 2, fsck-ed it, and it now mounts. We're now rsyncing the data to another disk and will reformat ASAP.

Roger.

Signature · 3 lines
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* I didn't say it was your fault. I said I was going to blame it on you. *
#3 lore raw

Hello!

Quoted 4 lines · Rogier Wolff
Quoted 3 lines
Quoted 2 lines

Normally, fsck would be able to use a backup superblock. But it seems that reiserfsck is not capable of this.

reiserfs does not have any backup superblocks.

And I presume V4 fixes that?

No.

Quoted 3 lines

I found a bunch of block with the "ReIsErFs" magic on the disk. They look similar to the superblock, enough so that the superblock should be reconstructed from there?

Well, you are probably looking at the old journaled versions of superblock (and you have version 3.5 of disk format based on that magic,
v3.6 has ReIsEr2Fs as magic).
We thought about trying to extract superblock from journal, but that idea was turned down as we do not know where journal might be without the superblock itself.

Quoted 6 lines
Quoted 5 lines
Quoted 1 line

Now --rebuild-sb asks me for the version. I really wouldn't know.

Well, if you use recent enough fsck, it also gives some hints on how to find the version (I really hope you are using reiserfsprogs 3.6.11, if you are not, then I suggest you to upgrade your reiserfsprogs first).

We got the most recent a couple of weeks ago. It was 3.6.6.

Now there is better one.
And there were some significant speedups, too.

Quoted 4 lines
Quoted 3 lines

If you run 2.4 kernel on your fileserver and you
still have logs from past boots, see if there is "reiserfs: using 3.5.x disk format" message after mounting that fs. If there is,

The logs live on /, / is the one with the missing superblock....

How did you miss it (the superblock)?

Quoted 2 lines

And mounting another fs that didn't have a missing superblock gave us no message, although reiserfs was version 3.6.25.

It only gives the message for old filesystems.
Also if you compiled fith CONFIG_REISERFS_PROC_INFO enabled,
you can find lots of info about mounted reiserfs volumes in /proc/fs/reiserfs

Quoted 4 lines
Quoted 1 line

then this is 3.5 format, if there is not then it has 3.6 format. If

I mounted another filesystem and in /proc it told me it found a 3.5 version filesystem. So I went to the fsck --rebuild-sb and it had three options for a 3.5 filesystem...... (i.e. one was eliminated.)

Do you remember how log ago you created that FS?
If that was after year 2000, all chances you are having '>=3.5.9'.

Quoted 5 lines
Quoted 3 lines

you do not have any logs and you use kernel 2.4, then you may choose 3.6 format and it won't hurt (but you won't be able to mount such a volume with 2.2 kernel later on).

We upgraded the ondisk format loosing the 2.2 compatiblity some time ago.

So in fact you should have 3.6 format, but you don't.

Quoted 2 lines

So, given the above information, some strongly hinting we were at 3.5, some to 3.6, tell me which we have......

The magic tells you have v3.5, but you say you did the conversion... Hm...

Bye,
Oleg