Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
backwards compat broken with R4-1.0.4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Thu Dec 29, 2005 9:35 am    Post subject: backwards compat broken with R4-1.0.4 Reply with quote

I have a number of R4 partitions and currently use a 2.6.14 kernel .

I have reiser4progs-1.0.4 since I dont want to render the whole system so bleeding edge it cant be used with anything else.

However I now find that I cant even mount my new R4 partitions with a 2.6.11 kernel !!

I always like to have at least one fallback kernel incase I have issues to check or I have a breakage.

There is another major reason for keeping backwards compat of 1.0.4 : there are a number of system rescsue CDs that support R4 . They are currently useless to me.


Anyone looked into this ?

TIA, Gentree. 8)

BTW I am aware that this kernel has 1.0.5 but that does not stop it mounting older partitions.
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Fri Dec 30, 2005 11:16 pm    Post subject: Reply with quote

I noticed the same thing.

All kernels < 2.6.12 cannot mount a partition which has been mounted at least once with kernel >=2.6.12.

Only workaround I found this far (until livecd's support the newer format) is knoppix. Boot knoppix. Then use

apt-get dist-update
apt-get dist-update
apt-get reiser4tools

You should be able to fsck the partitions. GHranted, you still can't mount them, but at least you can repair them.
_________________
If you can't dazzle them with brilliance, baffle them with bullshit.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Sat Dec 31, 2005 12:22 am    Post subject: Reply with quote

Repair to what condition?!

That sounds like a recipe for disaster. Different kernel, different reiser4 modules arbitary update, different reiser4progs.


AFAIKR , there were serious issues on some platforms with 1.0.1 R4; there was no upgrade path from 1.0.3 to 1.0.4 ie format anew and copy across. Now 1.0.4 to 1.0.5 seems to be a one way street.


No, I think a large degree of caution is necessany here if you dont want to lose the whole partition.

I find this kind of forced migration very annoying. I really liked my 2.6.11-nitro2 kernel and I dont like only having one working kernel on a box.

I did not realise simply mounting a partition with an 1.0.5 capable kernel could alter the structure, Are you sure about that?
8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 764
Location: Hoofddorp / The Netherlands

PostPosted: Sat Dec 31, 2005 1:50 pm    Post subject: Reply with quote

Gentree wrote:
I did not realise simply mounting a partition with an 1.0.5 capable kernel could alter the structure, Are you sure about that? 8)

Sigh, unfortunately he is correct :cry: Mounting a r4 partition with a newer kernel alters the on disk layout. There was a whole lot of noise on the mailinglist about it. The sollution was that reverting to reiser4progs 1.0.3 or 1.0.4 (not sure anymore which one) and then rebuild the fs. There should be no data loss but better be safe then sorry :wink:

edit: Found the post in the mailing list, it was reiser4progs 1.0.4. Full of surprises - A reiser4 story from userland
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Sat Dec 31, 2005 5:31 pm    Post subject: Reply with quote

Thanks a lot for that link , my confusion is now well-founded and well-informed confusion :?

This flagrant lack of respect for any need of compatability between even minor build versions is lunacy. Once I have a clearer idea what is going on I will post to reiser ML about this.

This is exactly the sort of thing that has everyone flaming about R4.

The underlying fs is impressive despite it's youth but this sort of thing causes too much time wasting even for experienced users.

Since simply mount the device changes it , which would be completely unexpected to anyone who did not know I think this should have a big health warnig at the top of the 2.6.14-nitro2 thread.

Forwarned , is fore-armed.

It would make much more sense to know how to avoid and/or fix this problem before creating it by testing a newer kernel.

Ironically I had presensed something like this in seeing R4-1.0.5 in nitro and had put off installing this kernel for that precise reason.

So where do we go from here?

1/ abandon more recent kernels - is there a feature I need that justifies the breakage?

2/ accept I cannot use most liveCDs and even my very stable 2.6.11-nitro kernel and access from my dual-boot to suse9.1

3/ stop using R4 8O

4/ try to find some way to make them cohabitate. - unlikely it seems.


Thanks again for you input.

8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Sun Jan 01, 2006 5:05 pm    Post subject: Reply with quote

OK, my choice was : 1.

I used the pre "pset" patched version of reiser4progs , ie the one I had before which has since disappeared from portage.

for reference it can still be grabbed from Gentoo cvs as version 1.5 of reiser4progs-1.0.4 ebuild.

I booted to my backup root partition on reiserfs using a 2.6.11 kernel. A few drives failed to load since not build against this kernel but I was able to login and run

fsck.reiser4 --build-fs

on all my R4 partitions. No errors other that what seemed to relate to the incompatiblilty after a bit of a wait everything came clean.

Now running 2.6.11-nitro2 with all my R4 apparently healthy .

So the underlying code seems vindicated and robust enough to withstand being mucked about with. That's very reassuring.

It would be even nicer if Herr Reiser would spare us these hair-raiser incompatibilities. :roll:
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
juliebread
n00b
n00b


Joined: 06 Feb 2005
Posts: 8

PostPosted: Sun Jan 08, 2006 11:12 pm    Post subject: Reply with quote

Gentree wrote:
...I was able to login and run

fsck.reiser4 --build-fs

on all my R4 partitions. No errors other that what seemed to relate to the incompatiblilty after a bit of a wait everything came clean.


Well, I didn't have as much luck. BTW, I'm running Debian Testing (*ducks*).

I was running reiser4progs (1.0.5) which is where my (and apparently everyone elses) problem started.
FYI, original post to Reiser ML (http://marc.theaimsgroup.com/?l=reiserfs&m=113660562729068&w=2)

I downgraded to reiser4progs (1.0.4) just now (not sure which version was used to create the FS initially) and ran:
# fsck.reiser4 --build-fs /dev/hdb1
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/hdb1 block device.
Will check the consistency of the Reiser4 SuperBlock.
Will build the Reiser4 FileSystem.
Continue?
(Yes/No): Yes
***** fsck.reiser4 started at Sun Jan 8 16:17:20 2006
Reiser4 fs was detected on /dev/hdb1.
Master super block (16):
magic: ReIsEr4
blksize: 4096
format: 0x0 (format40)
uuid: <none>
label: <none>

Format super block (17):
plugin: format40
description: Disk-format for reiser4.
magic: ReIsEr40FoRmAt
flushes: 18446744073709551615
mkfs id: 0x352348e0
blocks: 19537040
free blocks: 18446744073709551603
root block: 18446744073709551615
tail policy: 0x2 (smart)
next oid: 0xffffffffffffffff
file count: 18446744073709551615
tree height: 65535
key policy: LARGE


CHECKING STORAGE TREE
Warn : Reiser4 storage tree does not exist. Filter pass skipped.
Read nodes 0
Nodes left in the tree 0
Leaves of them 0, Twigs of them 0
Zeroed node pointers 1
Time interval: Sun Jan 8 16:17:26 2006 - Sun Jan 8 16:17:26 2006
CHECKING EXTENT REGIONS.
Read twigs 0
Time interval: Sun Jan 8 16:17:26 2006 - Sun Jan 8 16:17:26 2006
LOOKING FOR UNCONNECTED NODES
Read nodes 7609433
Good nodes 0
Leaves of them 0, Twigs of them 0
Time interval: Sun Jan 8 16:17:29 2006 - Sun Jan 8 16:46:35 2006
CHECKING EXTENT REGIONS.
Read twigs 0
Time interval: Sun Jan 8 16:46:35 2006 - Sun Jan 8 16:46:35 2006
INSERTING UNCONNECTED NODES
1. Twigs: done
2. Twigs by item: done
3. Leaves: done
4. Leaves by item: done
Twigs: read 0, inserted 0, by item 0, empty 0
Leaves: read 0, inserted 0, by item 0
Time interval: Sun Jan 8 16:46:36 2006 - Sun Jan 8 16:46:37 2006
Fatal: No reiser4 metadata were found. Semantic pass is skipped.
***** fsck.reiser4 finished at Sun Jan 8 16:46:37 2006
Closing fs...done

NO REISER4 METADATA WERE FOUND. FS RECOVERY IS NOT POSSIBLE.


Now do I cry?
JB
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 764
Location: Hoofddorp / The Netherlands

PostPosted: Mon Jan 09, 2006 12:01 am    Post subject: Reply with quote

juliebread, Cry if you do not have any backups. However it is christmas in Russia so zam, vs are not able to check e-mails. Maybe they will have some good advice when they come back... monday I think.
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Mon Jan 09, 2006 8:59 am    Post subject: Reply with quote

First of all STOP and read up on the problem before charging ahead and maybe making a recoverable problem into a broken mess.

try this ... try this ... try this .....mentality will almost certainly leave you with nothing.

The problem is not so much reiser4progs - the userland utilities , but the reiser4 support you have in your kernel.

Re-read the whole thread carefully and evaluate where you are with respect to your kerenel and the utils.

8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
juliebread
n00b
n00b


Joined: 06 Feb 2005
Posts: 8

PostPosted: Tue Jan 10, 2006 3:05 am    Post subject: Reply with quote

I'm probably further confusing matters in this thread since I'm not running Gentoo. I did try posting to Debian's ML and Reiser's ML first, but received little help. My searches led me to this forum.

Quote:
All kernels < 2.6.12 cannot mount a partition which has been mounted at least once with kernel >=2.6.12.

Quote:
Mounting a r4 partition with a newer kernel alters the on disk layout

I'm currently running a 2.6.12 kernel (and was when the problem occurred), so these both lead me to believe I can't revert to the older kernel (2.6.8 / Debian stable) to rebuild the FS, so I didn't even try.

Quote:
The sollution was that reverting to reiser4progs 1.0.3 or 1.0.4 (not sure anymore which one) and then rebuild the fs.

So I followed this and attempted to rebuild the fs: fsck.reiser4 --build-fs

I guess I don't see the next logical step. I feel I'm stuck since it seems that once I've mounted with a kernel >=2.6.12, there's no going back (ie., going back to rebuild the FS).

Maybe I'm missing something else in this thread, but I'm not sure what.

Thanks,
JB
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Tue Jan 10, 2006 3:30 am    Post subject: Reply with quote

Quote:
I'm currently running a 2.6.12 kernel (and was when the problem occurred), so these both lead me to believe I can't revert to the older kernel (2.6.8 / Debian stable) to rebuild the FS, so I didn't even try.


No , that's not what was said. Downgrading is one option IF YOU ARE HAVING THE SAME PROBLEM. It's what I did. It works.

may I suggest again that you re-read this thread carefully. I am not sure the initial cause you posted to Reiser ML is the same as we have discussed and solved here.


BTW
I dont think the fact you're on Debian makes much difference (except that you dont have any community support. :lol:) but try to bear in mind we're not likely to know what software versions you get with a "dopey duck".
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Tue Jan 10, 2006 3:35 am    Post subject: Reply with quote

just out of curiosity what does the partition table look like from parted or fdisk?
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
juliebread
n00b
n00b


Joined: 06 Feb 2005
Posts: 8

PostPosted: Tue Jan 10, 2006 5:42 am    Post subject: Reply with quote

You're right. This thread is maybe not dealing with the problem I have. I guess I was hopeful when you lead me from this thread over here.
http://forums.gentoo.org/viewtopic-t-366500-highlight-reiser4.html

But it doesn't appear the individual (Saundersx) who received the same error as I had his issue addressed.
Code:
NO REISER4 METADATA WERE FOUND. FS RECOVERY IS NOT POSSIBLE.


Output from parted:
(parted) print
Disk geometry for /dev/hdb: 0kB - 80GB
Disk label type: msdos
Number Start End Size Type File system Flags
1 32kB 80GB 80GB primary boot
(parted) print 1
Error: Could not detect file system.

Output from fdisk:
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 9729 78148161 83 Linux


I've been using Linux 5+ years and I still feel like a bumbling newbie.

Thanks,
JB
Back to top
View user's profile Send private message
juliebread
n00b
n00b


Joined: 06 Feb 2005
Posts: 8

PostPosted: Tue Jan 10, 2006 5:47 am    Post subject: Reply with quote

Code:
(parted) print 1
Error: Could not detect file system.


That output from parted didn't get me too excited, but just now I ran Gparted for kicks.

And it DOES recognize the partition as Reiser4.
Partition
/dev/hdb1

Filesystem
Reiser4

Size (MB)
76317

Used (MB)
2

Unused(MB)
76315

Flags
Boot


But 'Used' doesn't look very promising at 2MB. I wonder how it picked Reiser4 though since parted and gparted are both utilizing libparted.

JB
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Tue Jan 10, 2006 11:22 am    Post subject: Reply with quote

Your're right , I think the key diff is that Saundersx had a backup :wink:

Since your prob is not due to the version changes dicsussed here, I suggest you stick with the same kernel version and reiser4progs so at least the two are in sync.

I had a similar disk full on my root partition recently :!: due to misplacing where I was downloading a large ISO.

All went badly wrong with no space on root and I just powered off because it was getting very messy.

A moments reflection enabled me to realise the problem, I booted from a live CD, cleaned up and rebooted. No damage done.

I cant recall off hand if root was reiserfs or R4 at that point. I did post about it if you want to dig it out.



Dont worry about parted not knowing the fs , that's normal, its not R4 aware. If I see a blank with parted it usaully means it is R4 . Dont take too much notice of the 2MB used either, it's probably right in view of what fsck shows but dont rely on at partition tool for that sort if info.

Quote:
I've been using Linux 5+ years and I still feel like a bumbling newbie.

Oh yeah? How long have you been refering to directories as folders then ? :wink:


If you think you cannot get any further with what you have you could always try rebooting to your older kernel reverting to reiser4progs-1.0.3 and try --rebuild-fs from there.

Sorry I cant help any more but it looks like the damage has been done.


If you end up reformatting I suggest you use much smaller partitions. It means you can backup much more easily (ie you might actually do it ) and any damage like this will be limited in scope and not take out the whole disk. I like 4-8G partitions unless you really need one huge space, in which case use it just for the scratch pad and again any probs will be limitted.

HTH 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
dreamer
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 236

PostPosted: Tue Jan 10, 2006 11:43 pm    Post subject: Reply with quote

juliebread wrote:
[code](parted) print 1
<snip>
I wonder how it picked Reiser4 though since parted and gparted are both utilizing libparted.

JB


that's because gparted only used libparted for manipulating partitions. All the other stuff is done by either its own code or by specific filesystem 'plugins'.

I really shouldn't have named it 'gparted' :)
Back to top
View user's profile Send private message
juliebread
n00b
n00b


Joined: 06 Feb 2005
Posts: 8

PostPosted: Tue Jan 24, 2006 5:47 am    Post subject: Reply with quote

Gentree wrote:
Your're right , I think the key diff is that Saundersx had a backup :wink:

Since your prob is not due to the version changes dicsussed here, I suggest you stick with the same kernel version and reiser4progs so at least the two are in sync.

I had a similar disk full on my root partition recently :!: due to misplacing where I was downloading a large ISO.

All went badly wrong with no space on root and I just powered off because it was getting very messy.

A moments reflection enabled me to realise the problem, I booted from a live CD, cleaned up and rebooted. No damage done.

Yep, a cool collected mind would've come in handy when I experienced my problem. I was still able to mount the partition even with an inaccessible directory, but I unfortunately had a fever that night and didn't think through my problem very well. I was just looking for a quick fix. That's what I got alright!

Quote:

Quote:
I've been using Linux 5+ years and I still feel like a bumbling newbie.

Oh yeah? How long have you been refering to directories as folders then ? :wink:

10+ years. :D

Quote:
Sorry I cant help any more but it looks like the damage has been done.

Yep, I think you may be right. I've been able to pull some text/filenames out with a grep line resembling this:
Code:
grep -a -B100 -A100 'some text' /dev/hdb1 | strings > text_dump

And that has been helpful to remember what I had there. Although I did loose some working files I created for making homegrown DVDs, most of the content on this particular HD is replaceable. This experience has got me off my butt to finally implement an automatic/regular backup of my important files (on another HD).

Quote:

If you end up reformatting I suggest you use much smaller partitions. It means you can backup much more easily (ie you might actually do it ) and any damage like this will be limited in scope and not take out the whole disk. I like 4-8G partitions unless you really need one huge space, in which case use it just for the scratch pad and again any probs will be limitted.

Haven't reformatted just yet... still looking around for a possible fix. But, yeah, this particular HD was a sort of 'scratch pad'. And for transcoding video, the larger the space the better. Usually I break my partitions down a bit more.

Thanks again for all your input.
JB
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum