Re: NFS on ZFS



The flags checks are too strict. File a PR. I'll fix it when I get to
it. Sorrry.


-Kip

On Wed, May 27, 2009 at 7:24 PM, Mike Andrews <mandrews@xxxxxxxx> wrote:
On Tue, 26 May 2009, Mike Andrews wrote:

Takahashi Yoshihiro wrote:

Today's stable has a problem creating a new file via NFS on ZFS.

On the NFS server, there is no problem.

% cd /ZFS
% mktemp hoge
hoge
% ls -l hoge
-rw-------  1 nyan  nyan  0  5 26 19:09 hoge


But it's a problem on the NFS client.

# mount server:/ZFS /ZFS
% cd /ZFS
% mktemp hoge
mktemp: mkstemp failed on hoge: Input/output error
% ls -l hoge
----------  1 nyan  wheel  0  5 26 19:09 hoge

The file has a wrong permission.

This problem is only on stable, current has no problem.

I'm seeing this too.  It seems so far to be limited to mkstemp() -- just
copying files normally works.  For example /usr/bin/install -S fails,
without -S works, if the target is an NFS+ZFS volume.

Anyone?

I've verified that if the NFS server uses UFS2, mkstemp() from an NFS
client to the server works fine, but if the NFS server uses ZFS, the NFS
server returns EIO after creating a file with 000 permissions.

In addition to breaking /usr/bin/install -S, it also breaks rsync over NFS.

I don't yet know if it matters whether the on-disk format is ZFS v6 vs v13.





--
When bad men combine, the good must associate; else they will fall one
by one, an unpitied sacrifice in a contemptible struggle.

Edmund Burke
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • NFS on ZFS
    ... Today's stable has a problem creating a new file via NFS on ZFS. ... On the NFS server, there is no problem. ... % mktemp hoge ...
    (freebsd-stable)
  • NFS negative dentry caching problem in 2.4.21, and patch
    ... Below is a description of the problem and a suggested patch. ... Hat support request, so when it says "RHEL3", think "Linux 2.4.21". ... We have a big problem with how the NFS client code in RHEL3 ... from an NFS server (doesn't matter what kind, ...
    (Linux-Kernel)
  • Re: nfsclient process stucks in nfsaio
    ... Some ddb & kgdb ... "NFS problems, locking up" is hightly related to my situation. ... generate lots of traffic to nfs server (write to nfs, ... Client mount options: rw,nosuid,bg,intr,nodev. ...
    (freebsd-stable)
  • Re: NFS + FreeBSD TCP Behavior with Linux NAT
    ... nodes behind a head node using NAT. ... This includes NFS ... we added a FreeBSD based NFS server to our cluster resources ...
    (freebsd-net)
  • Cannot mount a nfs share after doing a snapshot
    ... I have a 7.0-PRERELEASE i386 system with a nfs server, ... I have no problem mounting this nfs share from a nfs client. ... can't assign resources (memory) ...
    (freebsd-stable)