From: Craig Johnston Date: Wed, 8 Apr 2009 08:16:19 -0700 Subject: [Cluster-devel] NFS v2 not compatible with GFS2 In-Reply-To: <1239180854.3359.4.camel@localhost.localdomain> References: <1239180854.3359.4.camel@localhost.localdomain> Message-ID: List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Wed, Apr 8, 2009 at 1:54 AM, Steven Whitehouse wrote: > > Hi, > > On Tue, 2009-04-07 at 13:04 -0700, Craig Johnston wrote: > > We have found that NFS version 2 does not seem to be compatible with > > an NFS exported GFS2 file system. The NFS client can mount the file > > system, but any file I/O results in Stale File Handle and I/O errors. > > > > It looks very much like the problem described here - > > https://bugzilla.redhat.com/show_bug.cgi?id=229345 > > > > Has there been any progress on resolving this issue, or are we out of > > luck. We have a legacy device that will only use NFS v2, and we would > > very much like to use GFS2 as we do for the rest of our system. > > > > To replicate the problem for a GFS2 exported file system (say > > /data/mygfs2_fs on host foo ), mount it on another host as > > "% mount -o nfsvers=2 foo:/data/mygfs2_fs /mnt/tmp" > > > > You will find that you can list the directory entries, but any attempt > > to read or write to files will fail. > > > > Note, we find that the GFS file system does not seem to have problems > > with NFS v2 clients, only GFS2. > > > > Any help would be appreciated. > > Craig > > > Yes, it is a bug inherited from GFS. GFS2 uses the same filehandles > (i.e. too large for NFSv2) so that for the time being, only NFSv3+ will > work with GFS2. I don't know why GFS appears to work and GFS2 doesn't - > they should be identical in that respect, > > Steve. > > Bummer. This is a capability we we really need, as we have to interface with some older systems running VxWorks that only supports NFS v2. We have verified that GFS supports NFS v2. Does this mean there is hope that GFS2 could also support NFS v2 since they use the same filehandles? Where should I start poking around if I wanted to delve into the source? Thanks, Craig