From: Lior <lior@tonian.com>
To: "J. Bruce Fields" <bfields@redhat.com>,
Benny Halevy <bhalevy@tonian.com>
Cc: Linux NFS mailing list <linux-nfs@vger.kernel.org>
Subject: Re: nfs 4.1 server returns available file lyaout type when the file system is exported without pNFS (updated)
Date: Sun, 13 May 2012 16:08:37 +0300 [thread overview]
Message-ID: <4FAFB255.1040804@tonian.com> (raw)
In-Reply-To: <4FAFA79A.2030007@tonian.com>
בתאריך 13/05/2012 15:22, ציטוט Lior:
> Hi,
>
> Steps to reproduce:
>
> insert this in /etc/export on the server side:
> /mnt/testnfs
> *(rw,sync,wdelay,hide,nocrossmnt,insecure,no_root_squash,no_all_squash,no_subtree_check,secure_locks,acl,fsid=0,anonuid=65534,anongid=65534)
>
> on the server side:
> exportfs -ra
>
> from client run connectathon:
>
> The settings for connectathon are for nfs 4.1 without Pnfs ( although
> the module of: nfs_layout_nfsv41_files is loaded on the client due to
> the fact that the current clients design does not have an option of a
> module of nfs 4.1 WITHOUT pNFS)
>
> Connectathon tests passed , but when I looked at nfsstat, I saw this (
> relevant to Pnfs):
> layoutget activity
> layout return activity
> (NO getdevice info activity)
>
> (When I tried running the same , this time the server had this line in
> its /etc/exports:
> /mnt/testnfs
> *(rw,sync,wdelay,hide,nocrossmnt,insecure,no_root_squash,no_all_squash,no_subtree_check,secure_locks,acl,fsid=0,anonuid=65534,anongid=65534,pnfs)
> (NOTE: with Pnfs flag.)
>
> connectathon tests passed , and when I looked at nfsstat, I saw this (
> relevant to Pnfs):
> layoutget activity
> layoutreturn activity
> getdevice info activity.)
>
>
> When we look at the logs and code, we saw that layoutget and layout
> return are sent by the client, and the server returns error messages
> to both ( as expected in regard to layoutget & layout return being
> sent by the client when the server is not pNFS enabled , BUT then
> again , the client wouldn't have sent layoutget & layout return
> ,originally, if it were to get the correct flag from the server, see
> Actuall behavior analysis below). we could also see that there was NO
> getdevice info activity after that, and the server/client went on with
> regular nfs activity.
>
> the no getdevice info activity was confirmed by the connectathon runs
> ( could be seen above).
> expected results are:
>
> NO pNFS commands shown in nfsstat.
> NO pNFS module should be loaded in the client.
>
> Actual behavior analysis
> The FATTR4_FS_LAYOUT_TYPE field returned from the server, which should
> be empty, contains LAYOUT4_NFSV4_1_FILES, which causes the module to
> be loaded and the client to think pNFS is available.
>
> Diagnosis:
> This server behaviour is currently hard coded regardless of if we
> export a file system over pnfs or not. which doesn't seem right.
>
This was done with :
pnfsd-lexp (local export) testing
back end that exports a local file system over pnfs, playing both the MDS and a single DS
on the server.
Thanks
Lior K.
next prev parent reply other threads:[~2012-05-13 13:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-13 12:22 nfs 4.1 server returns available file lyaout type when the file system is exported without pNFS Lior
2012-05-13 13:08 ` Lior [this message]
2012-05-14 8:15 ` [PATCH] pnfsd: apply pnfs export option on pnfs export ops setup Benny Halevy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FAFB255.1040804@tonian.com \
--to=lior@tonian.com \
--cc=bfields@redhat.com \
--cc=bhalevy@tonian.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.