Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(NFS3 or 4) On Client can't delete Files created on Server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1754

PostPosted: Fri Mar 05, 2010 10:11 pm    Post subject: (NFS3 or 4) On Client can't delete Files created on Server Reply with quote

On a client I cannot delete Files on a exported Filesystem.

I can create a File or Dir on the Share and then I can delete it.

Then I tried a nfs v4 System. The User mapping works fine. On both Machines Server an Client the Files and Dir's have the same User and Group Rights and Names.

But the same Problem here.

I can Create on the Client a File and I can also delete this File on the share.
But I cannot delete a File was created on the Server.
On the Server I can create an delete but also delete Files created on Client.

What can I do to debug?

R. R.

No I get
nfsd: last server has exited, flushing export cache
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
Back to top
View user's profile Send private message
jfp
Guru
Guru


Joined: 08 Jul 2007
Posts: 326
Location: Virginia, USA

PostPosted: Sat Mar 06, 2010 12:06 am    Post subject: Reply with quote

I am not an NFS expert, but this works for me
Code:
speedy ~ # cat /etc/exports
# /etc/exports: NFS file systems being exported.  See exports(5).
/store/shares/zippy 192.168.0.0/255.255.255.0(rw,no_subtree_check,sync)

File/dirs can be created/deleted by either client or server
_________________
jfp
Back to top
View user's profile Send private message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1754

PostPosted: Sat Mar 06, 2010 10:10 am    Post subject: Reply with quote

jfp wrote:
I am not an NFS expert, but this works for me
Code:
speedy ~ # cat /etc/exports
# /etc/exports: NFS file systems being exported.  See exports(5).
/store/shares/zippy 192.168.0.0/255.255.255.0(rw,no_subtree_check,sync)

File/dirs can be created/deleted by either client or server


Hello,

on which Kernel version you work?

I'm on 2.6.33-gentoo.
I think there is a bug in the nfs Subsystem beginning with 2.6.32

R. R.
Back to top
View user's profile Send private message
jfp
Guru
Guru


Joined: 08 Jul 2007
Posts: 326
Location: Virginia, USA

PostPosted: Sat Mar 06, 2010 12:16 pm    Post subject: Reply with quote

On the NFS server I have gentoo-sources-2.6.31-r6. The client is tuxonice-sources-2.6.32-r5.

If I have time today, I will try gentoo-sources-2.6.33 on the NFS server.
_________________
jfp
Back to top
View user's profile Send private message
jfp
Guru
Guru


Joined: 08 Jul 2007
Posts: 326
Location: Virginia, USA

PostPosted: Sat Mar 06, 2010 1:42 pm    Post subject: Reply with quote

I upgraded the kernel on the NFS server to gentoo-sources-2.6.33

Before compiling/implementing that new kernel I did some NFS tests to make sure I was not lying when I said I can create/delete directories and files on both the client and server (All of the tests were done with a "regular" user - that is, not root). Both boxes have the userid john and all tests were conducted using john. Mo matter which box created the directories and/or files, the other box was able to read and delete them.

Then I booted the NFS server box with the new kernel and reran all of my directory/file tests without any problems at all.

I did google some kernel 2.6.33 rc NFS issues, but I assume those issues were resolved by the time kernel 2.6.33 became stable.

I do not have the ability to run kernel 2.6.33 on both my client and server systems. The client is tuxonice aand there is no tuxonice-sources-2.6.33 yet.

On the NFS server I am using:
Code:
speedy ~ # eix nfs-utils
[I] net-fs/nfs-utils
     Available versions:  1.1.4-r1 ~1.1.5 ~1.1.6 ~1.1.6-r1 ~1.2.0 ~1.2.1 {ipv6 kerberos +nfsv3 +nfsv4 nonfsv4 tcpd}
     Installed versions:  1.1.4-r1(13:52:09 07/14/09)(tcpd -kerberos -nonfsv4)
     Homepage:            http://linux-nfs.org/
     Description:         NFS client and server daemons
>
<EDIT> Both client and server are running the same version of nfs-utils </EDIT>
_________________
jfp
Back to top
View user's profile Send private message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1754

PostPosted: Sat Mar 06, 2010 1:50 pm    Post subject: Reply with quote

jfp wrote:
I upgraded the kernel on the NFS server to gentoo-sources-2.6.33

Before compiling/implementing that new kernel I did some NFS tests to make sure I was not lying when I said I can create/delete directories and files on both the client and server (All of the tests were done with a "regular" user - that is, not root). Both boxes have the userid john and all tests were conducted using john. Mo matter which box created the directories and/or files, the other box was able to read and delete them.

Then I booted the NFS server box with the new kernel and reran all of my directory/file tests without any problems at all.

I did google some kernel 2.6.33 rc NFS issues, but I assume those issues were resolved by the time kernel 2.6.33 became stable.

I do not have the ability to run kernel 2.6.33 on both my client and server systems. The client is tuxonice aand there is no tuxonice-sources-2.6.33 yet.

On the NFS server I am using:
Code:
speedy ~ # eix nfs-utils
[I] net-fs/nfs-utils
     Available versions:  1.1.4-r1 ~1.1.5 ~1.1.6 ~1.1.6-r1 ~1.2.0 ~1.2.1 {ipv6 kerberos +nfsv3 +nfsv4 nonfsv4 tcpd}
     Installed versions:  1.1.4-r1(13:52:09 07/14/09)(tcpd -kerberos -nonfsv4)
     Homepage:            http://linux-nfs.org/
     Description:         NFS client and server daemons


Hello Thanks for your tests,

Then I would try again to find the Error.

I Use also

net-fs/nfs-utils-1.1.4-r1 USE="tcpd -kerberos -nonfsv4"

But there is no way...

Kernel Config or ext3 config?

R. R.
Back to top
View user's profile Send private message
jfp
Guru
Guru


Joined: 08 Jul 2007
Posts: 326
Location: Virginia, USA

PostPosted: Sat Mar 06, 2010 2:25 pm    Post subject: Reply with quote

Quote:
Kernel Config or ext3 config?


Here is my .config for gentoo-sources-2.6.33 (The NFS server)
http://pastebin.com/3sTcWDLm

The filesystem of the shared directory is ext3.
_________________
jfp
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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