Skip to contentSkip to conversation

NFS issues with reiserfs 3.6? ext3 works...

DISCUSSION Bernhard Sadlowski 3 participants 9 messages Mar 26, 2004

lore
Share & tools
lore
#0 lore raw

Hi!

A short question:

What are the remaining differences between reiserfs and ext3 regarding NFS?

Details:

I have two Linux machines with current kernel 2.4.25 and two Directories on the NFS Server dematl04:

dematl04:/vol01 (ext3 fs)
dematl04:/raid (reiserfs 3.6)

On both machines we use Helios Ethershare (a commercial software for print and fileservices for Macintosh). Helios Ethershare uses and updates a file .Desktop every time some mac is creating, writing or changing files in a Macintosh volume. The "dt" utility has to be used in a shell for mkdir, rm, mv, touch, ... I guess it has to lock this file whilche applying changes.

# dt
Usage: dt { rm | rmdir | mv | cp | set | ls | mkdir | touch |
            upd | chmod | chown | chgrp | idinfo | iddump }

Reiserfs:

root@dematl04:/raid/arc_04# dt mkdir test1
-> works

Same volume mounted per NFS on a second machine:

root@dematl08:/assets/ts04/arc_04# dt mkdir test2
dt mkdir: (dematl04) Error -5031 occured!: /raid/assets/ts04/arc_04: error accessing desktop lock '.DeskServer'
-> does not work 

Ext3:

root@dematl04:/vol01# dt mkdir test1
-> works

Same volume mounted per NFS on a second machine:

root@dematl08:/vol01# dt mkdir test2
-> works

Helios Ethershare is also running on Solaris 8 and the tests above succeed between two Solaris machines. I can provide on request the strace output of "dt mkdir test3" on the NFS client. They were to big for the list.

Is this some known locking difference/bug in reiserfs? Will reiser4 be more "compatible" with NFS?

Thanks,
Bernhard

#1 lore raw

Hello

Quoted 7 lines · Bernhard Sadlowski

Hi!

A short question:

What are the remaining differences between reiserfs and ext3 regarding NFS?

We thought no before your mail

Quoted 21 lines

Details:

I have two Linux machines with current kernel 2.4.25 and two Directories on the NFS Server dematl04:

dematl04:/vol01 (ext3 fs)
dematl04:/raid (reiserfs 3.6)

On both machines we use Helios Ethershare (a commercial software for print and fileservices for Macintosh). Helios Ethershare uses and updates a file .Desktop every time some mac is creating, writing or changing files in a Macintosh volume. The "dt" utility has to be used in a shell for mkdir, rm, mv, touch, ... I guess it has to lock this file whilche applying changes.

# dt
Usage: dt { rm | rmdir | mv | cp | set | ls | mkdir | touch |
            upd | chmod | chown | chgrp | idinfo | iddump }

Reiserfs:

Quoted 9 lines
root@dematl04:/raid/arc_04# dt mkdir test1
-> works

Same volume mounted per NFS on a second machine:

root@dematl08:/assets/ts04/arc_04# dt mkdir test2
dt mkdir: (dematl04) Error -5031 occured!: /raid/assets/ts04/arc_04: error accessing desktop lock '.DeskServer'
-> does not work 

Can you run this under strace?

Quoted 21 lines

Ext3:

root@dematl04:/vol01# dt mkdir test1
-> works

Same volume mounted per NFS on a second machine:

root@dematl08:/vol01# dt mkdir test2
-> works

Helios Ethershare is also running on Solaris 8 and the tests above succeed between two Solaris machines. I can provide on request the strace output of "dt mkdir test3" on the NFS client. They were to big for the list.

Is this some known locking difference/bug in reiserfs? Will reiser4 be more "compatible" with NFS?

Thanks,
Bernhard

#2 lore raw
Quoted 5 lines · Vladimir Saveliev

Hello

Quoted 2 lines · Bernhard Sadlowski

Hi!

Quoted 23 lines
Quoted 5 lines

A short question:

What are the remaining differences between reiserfs and ext3 regarding NFS?

We thought no before your mail

Quoted 15 lines

Details:

I have two Linux machines with current kernel 2.4.25 and two Directories on the NFS Server dematl04:

dematl04:/vol01 (ext3 fs)
dematl04:/raid (reiserfs 3.6)

On both machines we use Helios Ethershare (a commercial software for print and fileservices for Macintosh). Helios Ethershare uses and updates a file .Desktop every time some mac is creating, writing or changing files in a Macintosh volume. The "dt" utility has to be used in a shell for mkdir, rm, mv, touch, ... I guess it has to lock this file whilche applying changes.

Does Helios Ethershare use the standard linux in kernel nfs server, or does it patch things somehow?

-chris

#3 lore raw

Hi Chris,

Quoted 2 lines · Chris Mason

Does Helios Ethershare use the standard linux in kernel nfs server, or does it patch things somehow?

System1 (dematl04) is Debian/woody with Linux 2.4.25 kernel-nfs-server System2 (dematl08) is Redhat9 with Linux 2.4.25 with its standard nfs client

I did compile both kernels myself from original kernel.org source.

So no, it does not patch the system. Everything is standard and out-of-the box. Helios is installed in /usr/local/helios as an additional application. Helios Ethershare uses just the appletalk kernel module for networking.

Probably "dt" is showing some difference, feature or bug in reiserfs. Of course... the source of dt has only Helios. ( -> http://www.helios.de )

Some new applikation now requires that "dt" is working over NFS. We are currently using reiserfs on all of our production servers because of its great features and speed, and it would hurt if we had to convert to ext3.

Bernhard

#4 lore raw
Quoted 11 lines · Bernhard Sadlowski

Hi Chris,

Quoted 2 lines · Chris Mason

Does Helios Ethershare use the standard linux in kernel nfs server, or does it patch things somehow?

System1 (dematl04) is Debian/woody with Linux 2.4.25 kernel-nfs-server System2 (dematl08) is Redhat9 with Linux 2.4.25 with its standard nfs client

I did compile both kernels myself from original kernel.org source.

Thanks for the clarification. Running dt under strace as Vladimir suggested will help.

-chris

#5 lore raw
Quoted 4 lines · Chris Mason
Quoted 2 lines

I did compile both kernels myself from original kernel.org source.

Thanks for the clarification. Running dt under strace as Vladimir suggested will help.

I did send him the output by private mail, because the list doesn't accept bigger attachments. If you are interested, I can send you the strace output too.

Bernhard

#6 lore raw
Quoted 9 lines · Bernhard Sadlowski
Quoted 4 lines · Chris Mason
Quoted 2 lines

I did compile both kernels myself from original kernel.org source.

Thanks for the clarification. Running dt under strace as Vladimir suggested will help.

I did send him the output by private mail, because the list doesn't accept bigger attachments. If you are interested, I can send you the strace output too.

Vladimir sent them along. I only read the quickly, the traces looks the same to me for reiserfs and ext3. It tries to find directory test3 on the disk and then call off to helios which returns a failure.

You'll have to check things on the helios side I think.

-chris

#7 lore raw
In reply to Bernhard Sadlowski
Quoted 12 lines · Bernhard Sadlowski
Quoted 4 lines · Chris Mason
Quoted 2 lines

I did compile both kernels myself from original kernel.org source.

Thanks for the clarification. Running dt under strace as Vladimir suggested will help.

I did send him the output by private mail, because the list doesn't accept bigger attachments. If you are interested, I can send you the strace output too.

Bernhard

I looked at straces you sent. The substantial differences start after sendto() I quote below. If in both cases 'dt mkdir' tries to create a directory on nfs mounted directory - then why does reiserfs send something to 127.0.0.1 whereas ext3 sends to 145.228.118.41?

reiserfs:
getpid() = 27812
sendto(5, "\\\252\1H\0\0\0\0\0\0\0\2\0\4\224\345\0\0\0\2\0\0\0\1\0"..., 84, 0, {sa_family=AF_INET, sin_port=htons(892), sin_addr=inet_addr("127.0.0.1")}, 16) = 84

ext3:
getpid() = 27652
sendto(5, "RM\347\254\0\0\0\0\0\0\0\2\0\4\224\345\0\0\0\2\0\0\0\1"..., 68, 0, {sa_family=AF_INET, sin_port=htons(687), sin_addr=inet_addr("145.228.118.41")}, 16) = 68

#8 lore raw
Quoted 11 lines · Vladimir Saveliev

I looked at straces you sent. The substantial differences start after sendto() I quote below. If in both cases 'dt mkdir' tries to create a directory on nfs mounted directory - then why does reiserfs send something to 127.0.0.1 whereas ext3 sends to 145.228.118.41?

reiserfs:
getpid() = 27812
sendto(5, "\\\252\1H\0\0\0\0\0\0\0\2\0\4\224\345\0\0\0\2\0\0\0\1\0"..., 84, 0, {sa_family=AF_INET, sin_port=htons(892), sin_addr=inet_addr("127.0.0.1")}, 16) = 84

Quoted 5 lines

ext3:
getpid() = 27652
sendto(5, "RM\347\254\0\0\0\0\0\0\0\2\0\4\224\345\0\0\0\2\0\0\0\1"..., 68, 0, {sa_family=AF_INET, sin_port=htons(687), sin_addr=inet_addr("145.228.118.41")}, 16) = 68

This IP address belongs to the NFS and Ethershare server dematl04. No one knows what they are doing here. It seems we have to contact Helios to resolve this.

A quick check with "dt mkdir ..." on a fresh reiserfs partition (12GB) did work now...! The NFS shared partition with problems is a bigger raid with about 440GB size. Maybe there are some problems in helios, dt, nfs or reiserfs handling bigger blockdevices? So we should create a bigger ext3 filesystem and retest again...

Thank you for your time Vladimir and Chris!

Bernhard