junneyang / zumastor

Automatically exported from code.google.com/p/zumastor
0 stars 1 forks source link

2.6.24.2 kernel and dapper nfs-kernel-server package interaction issue #128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is not a zumastor issue, but users may see the problem when they use
our latest zumastor kernel on a dapper server. So I enter an issue here for
referrence.

Since the 2.6.23 kernel, nfs adds the support for secinfo that is intended
to be used in NFSv4. But the dapper nfs-kernel-server package passes the
wrong secinfo via exports. As a result, the NFS server does not set up the
correct export entry and a NFS client gets "Permission denied" when it
tries to mount the volume.

To bypass this problem, we can either 1) turn off CONFIG_NFSD_V4 in
2.6.24.2 kernel config, or 2) upgrade from dapper to gutsy or hardy, or 3)
mannually install the newer version of nfs-utils.

I tried option 1) on a dapper server. Normal NFS and kerberos NFS both work
fine after CONFIG_NFSD_V4 is turned off. For option 3), we can follow the
following the steps:

wget
http://www.citi.umich.edu/projects/nfsv4/linux/libgssapi/libgssapi-0.11.tar.gz
tar zxvf libgssapi-0.11.tar.gz
cd libgssapi-0.11
./configure; make; make install
cd ..

apt-get install libwrap-dev libevent-dev libnfsidmap-dev librpcsecgss-dev
pkg-config libblkid-dev libkrb5-dev

wget
http://downloads.sourceforge.net/nfs/nfs-utils-1.1.0.tar.gz?modtime=1178855476&b
ig_mirror=0
tar zxvf nfs-utils-1.1.0.tar.gz
cd nfs-utils-1.1.0
./configure; make; make install

Jiaying

Original issue reported on code.google.com by jiahotc...@gmail.com on 6 May 2008 at 2:54