Skip to contentSkip to conversation

LVM, NFS, Reiser and ext3

DISCUSSION Derek Fountain 2 participants 3 messages Jan 6, 2003 – Jan 7, 2003

lore
Share & tools
lore
#0 lore raw

Running SuSE 8.1 with their 2.4.19 kernel on a single CPU i386 box.

I have an volume group consisting of 2 IDE based physical volumes and one SCSI based one. I created a logical volume of 5GB, put a Reiser file system on it, and exported it using kernel NFS. I then had an NFS client (another SuSE 8.1 box) write data to it. The result was quickly disasterous. Piles of errors from reiserfs, resulting in a fs which fsck couldn't deal with.

I reformatted with ext3 and tried again. Several gigabytes of seemingly correctly written NFS transfers later, I'm seeing errors on read like:

Jan  6 16:26:47 beetle kernel: EXT3-fs error (device lvm(58,0)): ext3_readdir: 

bad entry in directory #229383: rec_len is too small for name_len - offset=504, inode=229395, rec_len=36, name_len=36

and lots and lots of:

Jan  6 16:29:34 beetle kernel: attempt to access beyond end of device
Jan  6 16:29:34 beetle kernel: 3a:00: rw=0, want=629932036, limit=5242880

Is there reason to believe that LVM, NFS and jouralling file systems don't get along?

Signature · 3 lines
Australian Linux Technical Conference 2003: http://www.linux.conf.au/

Explain to your boss the benefits of you going...
#1 lore raw

Hello!

Quoted 9 lines · Derek Fountain

correctly written NFS transfers later, I'm seeing errors on read like:

Jan  6 16:26:47 beetle kernel: EXT3-fs error (device lvm(58,0)): ext3_readdir: 
bad entry in directory #229383: rec_len is too small for name_len - 
offset=504, inode=229395, rec_len=36, name_len=36
and lots and lots of:
Jan  6 16:29:34 beetle kernel: attempt to access beyond end of device
Jan  6 16:29:34 beetle kernel: 3a:00: rw=0, want=629932036, limit=5242880

Is there reason to believe that LVM, NFS and jouralling file systems don't get along?

No.
Looks like there is something with your hardware.
Does corruption go away if you use physical volumes without LVM (try each volume of three)?

Bye,
Oleg

#2 lore raw
Quoted 13 lines · you

Hello!

Quoted 9 lines · Derek Fountain

correctly written NFS transfers later, I'm seeing errors on read like:

Jan  6 16:26:47 beetle kernel: EXT3-fs error (device lvm(58,0)):
ext3_readdir: bad entry in directory #229383: rec_len is too small for
name_len - offset=504, inode=229395, rec_len=36, name_len=36
and lots and lots of:
Jan  6 16:29:34 beetle kernel: attempt to access beyond end of device
Jan  6 16:29:34 beetle kernel: 3a:00: rw=0, want=629932036, limit=5242880

Is there reason to believe that LVM, NFS and jouralling file systems don't get along?

Quoted 4 lines

No
Looks like there is something with your hardware
Does corruption go away if you use physical volumes without LVM (try each volume of three)?

Yes. It's been running like that for 3 years 24x7 on a 2.2 kernel. Not a hiccup. I've made the three PVs back into normal reiserfs disks and they're now running happily again.

Signature · 3 lines
Australian Linux Technical Conference 2003: http://www.linux.conf.au/

Explain to your boss the benefits of you going...