Skip to contentSkip to conversation

trouble with reiserfs on ppc vs-3050: wait_buffer_until_released ...

DISCUSSION Soeren Sonnenburg 6 participants 17 messages Apr 25, 2003 – Apr 29, 2003

lore
Share & tools
lore
#0 lore raw

Hi...

I suddenly have a file which when I access it using gvim gives

vs-3050: wait_buffer_until_released: nobody releases buffer (dev 03:07, size 4096, blocknr 2031616, count 3, list 0, state 0x10019, page c0add66540, (UPTODATE, CLEAN, UNLOCKED)). Still waiting (570000000) JDIRTY !WAIT

and makes the whole machine hang...

Ideas what I could do about it ?

Soeren.

#1 lore raw
Quoted 9 lines · Soeren Sonnenburg

Hi...

I suddenly have a file which when I access it using gvim gives

vs-3050: wait_buffer_until_released: nobody releases buffer (dev 03:07, size 4096, blocknr 2031616, count 3, list 0, state 0x10019, page c0add66540, (UPTODATE, CLEAN, UNLOCKED)). Still waiting (570000000) JDIRTY !WAIT

Quoted 6 lines

and makes the whole machine hang...

Ideas what I could do about it ?

Soeren.

Ahh, forgort to give some details: Machine is apple powerbook iv running Linux 2.4.20-ben10 ppc (the stable 2.4 ppc
Ben's Tree: the pmac stable tree
1. To create the tree, download the latest kernel code from kernel.org and untar it into a direcory.
2. Or, For an existing tree, backup your .config
3. rsync -avz --delete rsync.penguinppc.org::linux-2.4-benh <directory>)

The filesystem was freshly created (today) and 10G were tarred on the disk...

the /home partition is reiserfs (where that file is on), / is ext3

As I was using reiserfs for a quite long time on any kind of i386 hardware I guess it is a little/big endian issue.

#2 lore raw

Hello!

Quoted 5 lines · Soeren Sonnenburg

The filesystem was freshly created (today) and 10G were tarred on the disk...
the /home partition is reiserfs (where that file is on), / is ext3 As I was using reiserfs for a quite long time on any kind of i386 hardware I guess it is a little/big endian issue.

There are no known endianness issues in reiserfs code now.
You di not had reboot or something like that after you copied the data over? What is the latest reiserfsck reports for your fs?

Bye,
Oleg

#3 lore raw
Quoted 4 lines · Oleg Drokin

Hello!

On Fri, Apr 25, 2003 at 10:35:23AM +0200, Soeren Sonnenburg wrote:

Quoted 8 lines
Quoted 5 lines

The filesystem was freshly created (today) and 10G were tarred on the disk...
the /home partition is reiserfs (where that file is on), / is ext3 As I was using reiserfs for a quite long time on any kind of i386 hardware I guess it is a little/big endian issue.

There are no known endianness issues in reiserfs code now.
You di not had reboot or something like that after you copied the data over?

I rebooted ... it is the /home partition.

Quoted 1 line

What is the latest reiserfsck reports for your fs?

the 3.6.6 version did find some corruption in superblock (one bit ?!) which could be fixed with fix-fixable

I will try to acces that file but first send this mail (as it is send from that particular machine)

Soeren.

#4 lore raw

Hello!

Quoted 3 lines · Soeren Sonnenburg
Quoted 2 lines

There are no known endianness issues in reiserfs code now.
You di not had reboot or something like that after you copied the data over?

I rebooted ... it is the /home partition.

Do you start reiserfsck on boot (3.6.6 one?) ?
Was the reboot clean?

Bye,
Oleg

#5 lore raw
Quoted 9 lines · Oleg Drokin

Hello!

Quoted 3 lines · Soeren Sonnenburg
Quoted 2 lines

There are no known endianness issues in reiserfs code now.
You di not had reboot or something like that after you copied the data over?

I rebooted ... it is the /home partition.

Do you start reiserfsck on boot (3.6.6 one?) ?
Was the reboot clean?

Hmmhhh, I can now access the file (after I did --fix-fixable) ... strange. I also rebooted and checked the fs again... it reports to be ok.

IIRC there was no unclean reboot before that vs-3050 thing appeared.

Or could this be caused by "repartitioning but not reboot and then mkreiserfs" ? I did not reboot as the last partition was hfs+ and all I did was deleting+creating a linux partition instead...

Can one check whether partition sizes are the same as reiserfs thinks ?

If not then I will reformat the partition again ...

Soeren.

[11:28][root@no:/home/sonne]# debugreiserfs /dev/hda7
<--------debugreiserfs 3.6.4, 2002-------->

Filesystem state: consistency is not checked after last mounting

Reiserfs super block in block 16 on 0x10042e40 of format 3.6 with standard journ
al
Count of blocks on the device: 5476231
Number of bitmaps: 168
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks):
2709134
Root block: 2866321
Filesystem is NOT cleanly umounted
Tree height: 5
Hash function used to sort names: "r5"
Objectid map size 100, max 972
Journal parameters:
Device [0x0]
Magic [0x6f260e58]
Size 8193 blocks (including 1 for journal header) (first block 18) Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30
Blocks reserved by journal: 0
Fs state field: 0x0
sb_version: 2
inode generation number: 3796
UUID: b29c82c8-2cd9-48ac-a2f4-d4f0aecc6875
LABEL:
Set flags in SB:
ATTRIBUTES CLEAN
/dev/hda

        #                    type name                  length   base      ( size )  system
/dev/hda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/hda2         Apple_Bootstrap bootstrap               1600 @ 64        (800.0k)  NewWorld bootblock
/dev/hda3         Apple_UNIX_SVR2 swap                 2097152 @ 1664      (  1.0G)  Linux swap
/dev/hda4         Apple_UNIX_SVR2 spare                2097152 @ 2098816   (  1.0G)  Linux native
/dev/hda5         Apple_UNIX_SVR2 root                27261376 @ 4195968   ( 13.0G)  Linux native
/dev/hda6               Apple_HFS MacOS X             41943040 @ 31457344  ( 20.0G)  HFS
/dev/hda7         Apple_UNIX_SVR2 home                43809856 @ 73400384  ( 20.9G)  Linux native

Block size=512, Number of Blocks=117210240
DeviceType=0x0, DeviceId=0x0

#6 lore raw

Hello!

Quoted 8 lines · Soeren Sonnenburg
Quoted 5 lines
Quoted 3 lines
Quoted 2 lines

There are no known endianness issues in reiserfs code now.
You di not had reboot or something like that after you copied the data over?

I rebooted ... it is the /home partition.

Do you start reiserfsck on boot (3.6.6 one?) ?
Was the reboot clean?

Hmmhhh, I can now access the file (after I did --fix-fixable) ... strange. I also rebooted and checked the fs again... it reports to be ok.

Well, fsck is expected to fix things.
The strange thing is how you get into error state.

Quoted 1 line

IIRC there was no unclean reboot before that vs-3050 thing appeared.

Hm. But do you run reiserfsck on boot?

Quoted 3 lines

Or could this be caused by "repartitioning but not reboot and then mkreiserfs" ? I did not reboot as the last partition was hfs+ and all I did was deleting+creating a linux partition instead...

Well, if fdisk told you to reboot and you did not, this is bad, but it may not cause such things.

Quoted 1 line

Can one check whether partition sizes are the same as reiserfs thinks ?

Sure. reiserfsck does this. (it checks that fs is less or equal than underlying block device)

Quoted 1 line

Count of blocks on the device: 5476231

(20.89016342163085937500 G)

Quoted 1 line

/dev/hda7 Apple_UNIX_SVR2 home 43809856 @ 73400384 ( 20.9G) Linux native

This looks close enough, but is subject to rounding errors ;)

Bye,
Oleg

#7 lore raw
Quoted 1 line · Oleg Drokin

Well, fsck is expected to fix things.

actually I don't know why a wait_buffer_until_released (waiting forever) can happen...

Quoted 5 lines

The strange thing is how you get into error state.

Quoted 1 line

IIRC there was no unclean reboot before that vs-3050 thing appeared.

Hm. But do you run reiserfsck on boot?

Honestly I don't know... if debian does then yes...
Hmmhh, from the scripts in /etc/rcS.d to tell it checks the rootfs and later on calls fsck for each filesystem. If fsck calls reiserfsck then the version in debian unstable, i.e. 3.6.4-5 was used to check the fs.

(The 3.6.6 tools are compiled but not installed)

So how did I get there... all I did was:

1) partition the disk
2) mkreiserfs (without reboot)
3) copy the stuff over
4) reboot
5) boot into single user copy the rest from /home over
6) mount partition on /home

no crash inbetween that.

if a wrong partition table can cause that then good+ shame on me... if not well then its bad.

Quoted 6 lines
Quoted 3 lines

Or could this be caused by "repartitioning but not reboot and then mkreiserfs" ? I did not reboot as the last partition was hfs+ and all I did was deleting+creating a linux partition instead...

Well, if fdisk told you to reboot and you did not, this is bad, but it may not cause such things.

well it definitely did, but as I said I recreated a partition of same size... maybe it is all different with apple partition tables. next time .

Quoted 10 lines
Quoted 1 line

Can one check whether partition sizes are the same as reiserfs thinks ?

Sure. reiserfsck does this. (it checks that fs is less or equal than underlying block device)

Quoted 1 line

Count of blocks on the device: 5476231

(20.89016342163085937500 G)

Quoted 1 line

/dev/hda7 Apple_UNIX_SVR2 home 43809856 @ 73400384 ( 20.9G) Linux native

This looks close enough, but is subject to rounding errors ;)

:-))

S.

#8 lore raw

Hello!

Quoted 3 lines · Soeren Sonnenburg
Quoted 1 line

Well, fsck is expected to fix things.

actually I don't know why a wait_buffer_until_released (waiting forever) can happen...

Well, we know why the wait_buffer_until_released problem,
because of bitmap corruption. (block that is used was marked free and was allocated for new data).

Quoted 5 lines
Quoted 1 line

Hm. But do you run reiserfsck on boot?

Honestly I don't know... if debian does then yes...
Hmmhh, from the scripts in /etc/rcS.d to tell it checks the rootfs and later on calls fsck for each filesystem. If fsck calls reiserfsck then the version in debian unstable, i.e. 3.6.4-5 was used to check the fs.

Well, ok, 3.6.4-5 does not doo anything on boot yet. Hm.

Quoted 8 lines

So how did I get there... all I did was:
1) partition the disk
2) mkreiserfs (without reboot)
3) copy the stuff over
4) reboot
5) boot into single user copy the rest from /home over
6) mount partition on /home
no crash inbetween that.

Hm.
Ok, is this a new box? any chance to check if the memory is right?

Bye,
Oleg

#9 lore raw
Quoted 1 line · Oleg Drokin

Ok, is this a new box? any chance to check if the memory is right?

ok, so I ran the memtest tool for a night without it finding any errors... I did a full compare (not only md5sums) over network with the files I have on disk... they were the same... I let bonnie run and checked for corruption... nothing ...

Looks like all I can do is keeping an eye on it.

Soeren.

#10 lore raw

Hello!

Quoted 6 lines · Soeren Sonnenburg
Quoted 1 line

Ok, is this a new box? any chance to check if the memory is right?

ok, so I ran the memtest tool for a night without it finding any errors... I did a full compare (not only md5sums) over network with the files I have on disk... they were the same... I let bonnie run and checked for corruption... nothing ...
Looks like all I can do is keeping an eye on it.

Hm, and given there was another report like this recently, it seems like some reiserfs problem :(
Unfortunatelly we don't even have PPC (or other bigendian) hardware to test on.

Bye,
Oleg

#11 lore raw
Quoted 11 lines · Oleg Drokin

Hello!

Quoted 6 lines · Soeren Sonnenburg
Quoted 1 line

Ok, is this a new box? any chance to check if the memory is right?

ok, so I ran the memtest tool for a night without it finding any errors... I did a full compare (not only md5sums) over network with the files I have on disk... they were the same... I let bonnie run and checked for corruption... nothing ...
Looks like all I can do is keeping an eye on it.

Quoted 3 lines

Hm, and given there was another report like this recently, it seems like some reiserfs problem :(
Unfortunatelly we don't even have PPC (or other bigendian) hardware to test on.

so it seems all I can do is check the fs much more regularly and see whether I observe some corruption again...

if the problem occurs again do you have an idea how to track it down ?

Soeren (who is hoping to not see this message again).

#12 lore raw

Hello!

Quoted 9 lines · Soeren Sonnenburg
Quoted 7 lines
Quoted 4 lines

errors... I did a full compare (not only md5sums) over network with the files I have on disk... they were the same... I let bonnie run and checked for corruption... nothing ...
Looks like all I can do is keeping an eye on it.

Hm, and given there was another report like this recently, it seems like some reiserfs problem :(
Unfortunatelly we don't even have PPC (or other bigendian) hardware to test on.

so it seems all I can do is check the fs much more regularly and see whether I observe some corruption again...

Probably so.

Quoted 1 line

if the problem occurs again do you have an idea how to track it down ?

Well, if you'd have fs in some predefined state (metadata snapshot of that state), then there is sequence of actions you do that ultimately leads to corruption, that would be the best possible case for debugging.
Well, if we assume this is endianness issue, you will probably see some corruptions after writieng say 1-2 gigabytes to the FS. Can you try that? I mean mount the fs, write to it, unmount, run reiserfsck --check to see if there are any bitmap mismatches. If there are, try to mount with alloc=preallocmin=16 and see if that changes anything.

Bye,
Oleg

#13 lore raw
In reply to Soeren Sonnenburg

Hi,

Quoted 9 lines · Soeren Sonnenburg

Hi...

I suddenly have a file which when I access it using gvim gives

vs-3050: wait_buffer_until_released: nobody releases buffer (dev 03:07, size 4096, blocknr 2031616, count 3, list 0, state 0x10019, page c0add66540, (UPTODATE, CLEAN, UNLOCKED)). Still waiting (570000000) JDIRTY !WAIT

Quoted 4 lines

and makes the whole machine hang...

Ideas what I could do about it ?

Probably it is due to fs corruption, interesting if the block #2031616 is free in the bitmap. Could you run

    debugreiserfs -1 2031616 /dev/xxx
Signature · 2 lines
Thanks,
Vitaly Fertman
#14 lore raw
Quoted 12 lines · Vitaly Fertman

Hi,

Quoted 9 lines · Soeren Sonnenburg

Hi...

I suddenly have a file which when I access it using gvim gives

vs-3050: wait_buffer_until_released: nobody releases buffer (dev 03:07, size 4096, blocknr 2031616, count 3, list 0, state 0x10019, page c0add66540, (UPTODATE, CLEAN, UNLOCKED)). Still waiting (570000000) JDIRTY !WAIT

Quoted 8 lines
Quoted 4 lines

and makes the whole machine hang...

Ideas what I could do about it ?

Probably it is due to fs corruption, interesting if the block #2031616 is free in the bitmap. Could you run

    debugreiserfs -1 2031616 /dev/xxx
[10:59][root@no:~/reiserfsprogs-3.6.6/debugreiserfs]# debugreiserfs -1 2031616 /
dev/hda7
<--------debugreiserfs 3.6.4, 2002-------->

2031616 is free in ondisk bitmap
Looks like unformatted

[10:59][root@no:~/reiserfsprogs-3.6.6/debugreiserfs]# fdisk -l 
/dev/hda
        #                    type name                  length   base      ( size )  system
/dev/hda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/hda2         Apple_Bootstrap bootstrap               1600 @ 64        (800.0k)  NewWorld bootblock
/dev/hda3         Apple_UNIX_SVR2 swap                 2097152 @ 1664      (  1.0G)  Linux swap
/dev/hda4         Apple_UNIX_SVR2 spare                2097152 @ 2098816   (  1.0G)  Linux native
/dev/hda5         Apple_UNIX_SVR2 root                27261376 @ 4195968   ( 13.0G)  Linux native
/dev/hda6               Apple_HFS MacOS X             41943040 @ 31457344  ( 20.0G)  HFS
/dev/hda7         Apple_UNIX_SVR2 home                43809856 @ 73400384  ( 20.9G)  Linux native

Block size=512, Number of Blocks=117210240
DeviceType=0x0, DeviceId=0x0

#15 lore raw
In reply to Soeren Sonnenburg

Hi
Digging in logs I've found that this happened to me about 10 days ago, badblocks didn't found any disk defect.

Apr 16 15:29:37 poma kernel: vs-3050: wait_buffer_until_released: nobody

releases buffer (dev 03:04, size 4096, blocknr 1441792, count 3, list 0, state 0x10019, page c0674838, (UPTODATE, CLEAN, UNLOCKED)). Still waiting (60000000) JDIRTY !JWAIT Apr 16 15:29:44 poma modprobe:
modprobe: Can't locate module char-major-10-134 Apr 16 15:29:53 poma
kernel: vs-3050: wait_buffer_until_released: nobody releases buffer (dev 03:04, size 4096, blocknr 1441792, count 3, list 0, state 0x10019, page c0674838, (UPTODATE, CLEAN, UNLOCKED)). Still waiting (90000000) JDIRTY !JWAIT Apr 16 15:30:10 poma kernel: vs-3050: wait_buffer_until_released:
nobody releases buffer (dev 03:04, size 4096, blocknr 1441792, count 3, list 0, state 0x10019, page c0674838, (UPTODATE, CLEAN, UNLOCKED)). Still waiting (120000000) JDIRTY !JWAIT

My machine is a ppc G3 (mac) with a 2.4.20 benh kernel running on a / reiserfs that holds the last 6gigs of the drive, and the corrupted one is a spare partition using the remaining first 6 gigs of the drive.

In my case the problem raised when downloading a big file from a local machine lets say about 5-10Mb/s with wget, which then get the 100% of my cpu and becomes "unkillable" but is in R state not D.

I can provide additional information on Monday if someone needs....

Quoted 17 lines · On 25 Apr 2003 10:11:53 +0200 Soeren Sonnenburg <[email protected]> wrote:

Hi...

I suddenly have a file which when I access it using gvim gives

vs-3050: wait_buffer_until_released: nobody releases buffer (dev 03:07, size 4096, blocknr 2031616, count 3, list 0, state 0x10019, page c0add66540, (UPTODATE, CLEAN, UNLOCKED)). Still waiting (570000000) JDIRTY !WAIT

and makes the whole machine hang...

Ideas what I could do about it ?

Soeren.

Signature · 1 line
La resistencia es fútil todos seréis asimilados
#16 lore raw
In reply to Soeren Sonnenburg
Quoted 9 lines · Soeren Sonnenburg

Hi...

I suddenly have a file which when I access it using gvim gives

vs-3050: wait_buffer_until_released: nobody releases buffer (dev 03:07, size 4096, blocknr 2031616, count 3, list 0, state 0x10019, page c0add66540, (UPTODATE, CLEAN, UNLOCKED)). Still waiting (570000000) JDIRTY !WAIT

Quoted 11 lines

and makes the whole machine hang...

Ideas what I could do about it ?

Soeren.

Let's ask Vladimir about this, I don't find it acceptable to leave a bug in ReiserFS. Probably Soeren can let us login remotely, and probably flx can go ask IBM for some hardware for debugging this.

Signature · 1 line
Hans