Bug 790961

Summary: pNFS: Auto-load the pNFS kernel module
Product: Red Hat Enterprise Linux 6 Reporter: Steve Dickson <steved>
Component: kernelAssignee: nfs-maint
Status: CLOSED ERRATA QA Contact: Filesystem QE <fs-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: eguan, jiali, kzhang
Target Milestone: alpha   
Target Release: 6.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: pNFS
Fixed In Version: kernel-2.6.32-241.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 08:25:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steve Dickson 2012-02-15 19:57:30 UTC
Description of problem:

Today for the pNFS module to be auto loaded when the --minorversion=1 mount option is used, an entry in /etc/modprobe.conf needs to be added or a file in /etc/modprob.d has to be created. Lets simply this by embedding the necessary alias into the kernel module code. Basically back porting 

commit f85ef69ce08bc2209858135328335f668ba35bdb
Author: J. Bruce Fields <bfields>
Date:   Fri Jul 15 19:18:42 2011 -0400

    pnfs: simplify pnfs files module autoloading
    
    Embed the necessary alias into the module rather than waiting for
    someone to add it to /etc/modprobe.conf
    
    Signed-off-by: J. Bruce Fields <bfields>
    Signed-off-by: Trond Myklebust <Trond.Myklebust>

Comment 1 RHEL Program Management 2012-02-15 20:09:30 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 release.

Comment 3 Aristeu Rozanski 2012-02-28 17:03:43 UTC
Patch(es) available on kernel-2.6.32-241.el6

Comment 6 Jian Li 2012-03-09 10:55:48 UTC
Hi Steve,

How to test this bug, what's the function of module alias? When I mount with option --minorversion=1 to pnfs server which support file layout, will nfs_layout_nfsv41_files be installed automatically?

Comment 7 Steve Dickson 2012-03-09 12:41:37 UTC
(In reply to comment #6)
> Hi Steve,
> 
> How to test this bug, what's the function of module alias? When I mount with
> option --minorversion=1 to pnfs server which support file layout, will
> nfs_layout_nfsv41_files be installed automatically?
Yes... After the mount with the -o minorversion=1 option, simply
do a 'lsmod | grep nfs' to ensure the nfs_layout_nfsv41_files module
was loaded.

Comment 8 Jian Li 2012-03-13 03:25:55 UTC
This bug is tested by newpynfs. Two nfspynfs tasks is started:
1. 
#./nfs4server.py --is_ds -r --use_files --port=30000 --dataservers=/root/ds.conf
2.
#./nfs4server.py -r --use_files --dataservers=/root/ds.conf

ds.conf:
***
localhost:30000/files

Then mount with such command:
#mount localhost:/files /mnt/test -o vers=4,minorversion=1

check module with 
#lsmod | grep nfs

and get:
***
nfs_layout_nfsv41_files    18540  1
nfs                   402752  2 nfs_layout_nfsv41_files
lockd                  74270  1 nfs
fscache                46859  1 nfs
nfs_acl                 2647  1 nfs
auth_rpcgss            44895  1 nfs
sunrpc                263580  11 nfs_layout_nfsv41_files,nfs,lockd,nfs_acl,auth_rpcgss

Comment 10 errata-xmlrpc 2012-06-20 08:25:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0862.html