Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 229345 - [GFS2] NFS fix - gfs2_decode_fh
Summary: [GFS2] NFS fix - gfs2_decode_fh
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Wendy Cheng
QA Contact: GFS Bugs
Depends On:
Blocks: 204760 229346
TreeView+ depends on / blocked
Reported: 2007-02-20 15:06 UTC by Wendy Cheng
Modified: 2007-11-30 22:07 UTC (History)
5 users (show)

Fixed In Version: RHBA-2007-0959
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-11-07 19:40:52 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0959 normal SHIPPED_LIVE Updated kernel packages for Red Hat Enterprise Linux 5 Update 1 2007-11-08 00:47:37 UTC

Description Wendy Cheng 2007-02-20 15:06:51 UTC
Description of problem:
GFS(s) expects NFS fh_type and fh_len would have the same value. 
This is apparently not correct. One obvious symptom is that 
it will fail NFS V2 (which uses fixed fh_len for all requests) 
mount command. 

Version-Release number of selected component (if applicable):

How reproducible:
Depending on NFS request types - for v2 mount command, it fails
each time and every time.

Steps to Reproduce:
Mount GFS(s) partitions on NFS clients using NFS v2 protocol. 

Actual results:
The command fails with ESTALE error.

Expected results:
Mount succeeds. 

Additional info:
Patch has submitted to cluster-devel list.

Comment 1 Wendy Cheng 2007-02-23 17:43:18 UTC
Patch submiited via:

In Steve's git tree on 02/23/07. 

Comment 2 RHEL Product and Program Management 2007-03-01 21:47:04 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update

Comment 3 Kiersten (Kerri) Anderson 2007-03-09 18:40:22 UTC
Devel ACK for 5.1 - Would like to get into an early 5.1 cycle kernel build.

Comment 4 RHEL Product and Program Management 2007-03-09 23:58:59 UTC
This request was evaluated by Red Hat Kernel Team for inclusion in a Red
Hat Enterprise Linux maintenance release, and has moved to bugzilla 
status POST.

Comment 5 Don Zickus 2007-04-17 20:01:43 UTC
in 2.6.18-15.el5

Comment 7 Mike Gahagan 2007-09-12 19:20:08 UTC
It looks like we can now nfsv2 mount gfs filesystems, but once mounted it still
looks like we have problems:

[root@test158 mnt]# mount /mnt/test -o vers=2
[root@test158 mnt]# cd /mnt/test
[root@test158 test]# ls
[root@test158 test]# touch test
touch: setting times of `test': Stale NFS file handle
[root@test158 test]# ls -R
linux-2.6.18.i686  test
ls: reading directory ./linux-2.6.18.i686: Input/output error

[root@test158 test]# cat /proc/mounts | grep test183 /mnt/test nfs
0 0

Everything looked fine with nfsv3

Comment 8 Mike Gahagan 2007-09-12 19:23:18 UTC
Testing described in comment 7 was done with an i386 system running the -45
kernel hosting the gfs2 fs and acting as the nfs server. The nfs client machine
was x86_64 and running the -46 xen kernel.

Comment 9 Wendy Cheng 2007-09-12 19:57:56 UTC
Yes, nfs v3 does work but nfs v2 has been broken. It is not a high priority
at this moment. 

Comment 10 Mike Gahagan 2007-09-12 20:04:53 UTC
I tried the same test as in comment 7 with the rhel5 ga kernel and didn't see
any difference in behavior.. i.e. the mount itself still succeds, however the
mounted fs isn't usable. 

I'm not sure if this matches the exact behavior from before (the description
seems to imply that the mount command itself fails). Please advise if a new bug
should be  opened to describe this behavior.

The good news is that nfs3 apperantly works with the -45 kernel (it panics my
system with -8)

Comment 11 Kiersten (Kerri) Anderson 2007-09-12 20:25:53 UTC
Open a new bug for nfs v2 - mark this bug as verified

Comment 13 errata-xmlrpc 2007-11-07 19:40:52 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

Note You need to log in before you can comment on or make changes to this bug.