All of lore.kernel.org
 help / color / mirror / Atom feed
* Reiserfs version???
@ 2003-08-07 10:26 wolff
  2003-08-07 10:34 ` Oleg Drokin
  0 siblings, 1 reply; 4+ messages in thread
From: wolff @ 2003-08-07 10:26 UTC (permalink / raw)
  To: reiserfs-list


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. 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Reiserfs version???
  2003-08-07 10:26 Reiserfs version??? wolff
@ 2003-08-07 10:34 ` Oleg Drokin
  2003-08-07 12:07   ` Rogier Wolff
  0 siblings, 1 reply; 4+ messages in thread
From: Oleg Drokin @ 2003-08-07 10:34 UTC (permalink / raw)
  To: wolff; +Cc: reiserfs-list

Hello!

On Thu, Aug 07, 2003 at 12:26:42PM +0200, wolff@hydra.bitwizard.nl 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.

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Reiserfs version???
  2003-08-07 10:34 ` Oleg Drokin
@ 2003-08-07 12:07   ` Rogier Wolff
  2003-08-07 12:17     ` Oleg Drokin
  0 siblings, 1 reply; 4+ messages in thread
From: Rogier Wolff @ 2003-08-07 12:07 UTC (permalink / raw)
  To: Oleg Drokin; +Cc: copy, reiserfs-list

On Thu, Aug 07, 2003 at 02:34:45PM +0400, Oleg Drokin wrote:
> Hello!
> 
> On Thu, Aug 07, 2003 at 12:26:42PM +0200, wolff@hydra.bitwizard.nl 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?

> > 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. 
 
> 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. 

> is of 3.5 version.

Nope. 

> 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. 

> 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.)

> 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. 

-- 
** R.E.Wolff@BitWizard.nl ** 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. *

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Reiserfs version???
  2003-08-07 12:07   ` Rogier Wolff
@ 2003-08-07 12:17     ` Oleg Drokin
  0 siblings, 0 replies; 4+ messages in thread
From: Oleg Drokin @ 2003-08-07 12:17 UTC (permalink / raw)
  To: Rogier Wolff; +Cc: copy, reiserfs-list

Hello!

On Thu, Aug 07, 2003 at 02:07:13PM +0200, Rogier Wolff 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?

No.

> 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.

> > > 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.

> > 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)?

> 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

> > 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'.

> > 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.

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-07 12:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-07 10:26 Reiserfs version??? wolff
2003-08-07 10:34 ` Oleg Drokin
2003-08-07 12:07   ` Rogier Wolff
2003-08-07 12:17     ` Oleg Drokin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.