Usage count of rpcsec_gss_krb5 in server increases with every mount (krb5p)

Kumar V Thangavelu kumar.valendhar at gmail.com
Fri Mar 23 18:01:44 EDT 2007


Hi,

I have setup nfs client-server with krb5p support. A mount of the
exported directory on the client causes an increase in the usage count
of the module rpcsec_gss_krb5 on the server (as seen with lsmod). This
count is not decremented when I umount the directory on the client.
The next time I mount on the client the usage count is increased by 1
again on the server.

Please let me know if there a way to reduce the refcount and "modprobe
-r rpcsec_gss_krb5" on the server?

Here are the commands that I am executing.

Kernel used: 2.6.21-rc4 patched with 2.6.21-rc4-CITI_NFS4_ALL-1
http://www.citi.umich.edu/projects/nfsv4/linux/kernel-patches/2.6.21-rc4-1/linux-2.6.21-rc4-CITI_NFS4_ALL-1.diff

Server is dhcp253
Commands to start the server
/sbin/service krb5kdc start
/sbin/service kadmin start
/sbin/service krb524 start
service rpcidmapd start
service nfs start
exportfs -r

Commands to stop the server
exportfs -ua
service nfs stop
service rpcidmapd stop
(Also tried "umount nfsd" and "umount rpc_pipefs")

Client is dhcp161
Commands to start the client:
service rpcidmapd start
service rpcgssd start
mount -t nfs4 -o sec=krb5p dhcp253:/ /mnt/nfs4/

[root at dhcp253 auth_gss]# exportfs -v
/mnt/export
dhcp161.fsl.cs.sunysb.edu(rw,wdelay,insecure,root_squash,no_subtree_check,fsid=0,anonuid=65534,anongid=65534)
/mnt/export
gss/krb5(rw,wdelay,insecure,root_squash,no_subtree_check,fsid=0,anonuid=65534,anongid=65534)
/mnt/export
gss/krb5i(rw,wdelay,insecure,root_squash,no_subtree_check,fsid=0,anonuid=65534,anongid=65534)
/mnt/export
gss/krb5p(rw,wdelay,insecure,root_squash,no_subtree_check,fsid=0,anonuid=65534,anongid=65534)

Thanks
Kumar


More information about the NFSv4 mailing list