From: Henrik Carlqvist <Henrik@LinkopingJudo.org>
To: linux-kernel@vger.kernel.org
Cc: mark.fasheh@oracle.com
Subject: Re: ocfs2 problem with nfs v2
Date: Fri, 6 Oct 2006 22:13:14 +0200 [thread overview]
Message-ID: <20061006221314.0b961635.Henrik@LinkopingJudo.org> (raw)
In-Reply-To: <20060914202423.56314cf5.hc8@uthyres.com>
Henrik Carlqvist <hc8@uthyres.com> wrote:
> Using NFS v3 in Slackware 9.1 the server works fine, but with NFS v2 I
> was able to repeat the bug.
>
> This is what it looks like on the NFS client:
> # mount -o nfsvers=2 ekorrapa:/san/old /mnt/hd/
> # ls -al /mnt/hd/
> ls:/mnt/hd/lost+found: Input/output error
> ls: /mnt/hd/1: Input/output error
> ls: /mnt/hd/2: Input/output error
> However, on the NFS server things look exactly the same as before:
> Sep 14 10:53:23 kattapa kernel: (5380,0):ocfs2_encode_fh:155 ERROR: fh
> buffer is too small for encoding
This message is posted only to make this thread useful by others which
encounter the same problem. The problem got into bugzilla at
http://oss.oracle.com/bugzilla/show_bug.cgi?id=777 but unfortunately
because of limitations in NFS v2 it would be very hard to make ocfs2 to
work with the default settings of an NFS v2 server.
One solution to the problem is to export with the no_subtree_check
option. This solution has some mild security implications so reading
and understanding the manpage of exportfs should be done before trying
this. With the no_subtree_check option NFS v2 clients are able to use
mounts directly from the NFS server with ocfs2.
Another workaround is to configure an "NFS proxy" which does NFS v3 mounts
from the server with ocfs2 and then reexports those mounts with NFS v2. To
be able to reexport an NFS mounted directory a user space NFS server is
needed. I have tried the old and obsolete server from
http://sourceforge.net/projects/unfs which was able to do NFS v2 reexports
of NFS v3 mounted directories from the NFS v3 server with ocfs2.
regards Henrik
prev parent reply other threads:[~2006-10-06 20:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-13 20:33 Henrik Carlqvist
2006-09-14 18:24 ` Henrik Carlqvist
2006-10-06 20:13 ` Henrik Carlqvist [this message]
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=20061006221314.0b961635.Henrik@LinkopingJudo.org \
--to=henrik@linkopingjudo.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.fasheh@oracle.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®