|
From: Bernard P. <ber...@un...> - 2012-05-04 13:50:43
|
Hello,
With Devel-Linux v1.6.0, I had problems with the NFSD service, and just find
the solution : it is a bug in the NFSD startup script, because rpc.mountd is
started before rpc.nfsd. So, /proc/fs/nfsd is not mounted when rpc.mountd
starts and it don't works (error "rpc.mountd getfh failed function not
implemented").
So, the/etc/init.d/nfsd contains :
...
start)
echo -n "Starting NFS mountd..."
loadproc /usr/sbin/rpc.mountd
echo -n "Starting NFS nfsd..."
loadproc /usr/sbin/rpc.nfsd -N 4 -p $PORT $PROCESSES
echo -n "Starting NFS statd..."
loadproc /usr/sbin/rpc.statd
...
it must be :
...
start)
echo -n "Starting NFS nfsd..."
loadproc /usr/sbin/rpc.nfsd -N 4 -p $PORT $PROCESSES
echo -n "Starting NFS mountd..."
loadproc /usr/sbin/rpc.mountd
echo -n "Starting NFS statd..."
loadproc /usr/sbin/rpc.statd
...
Like that, it works like a charm...
Best regards,
Bernard
|
|
From: Bernard P. <ber...@un...> - 2012-05-04 14:54:56
|
On 05/04/2012 03:50 PM, Bernard Perrot wrote: > > loadproc /usr/sbin/rpc.nfsd -N 4 -p $PORT $PROCESSES Ooops... the "-N 4" is not in distribution, it's a private modification... So, please read : "loadproc /usr/sbin/rpc.nfsd -p $PORT $PROCESSES" Bernard |
|
From: Heiko Z. <he...@zu...> - 2012-05-05 13:13:54
|
Hey,
I’m not using NFS, can somebody else confirm that this change is needed?
--
Regards
Heiko Zuerker
<http://www.devil-linux.org> http://www.devil-linux.org
From: Bernard Perrot [mailto:ber...@un...]
Sent: Friday, May 04, 2012 9:55 AM
To: dev...@li...
Subject: Re: [Devil-Linux-discuss] NFSD startup script
On 05/04/2012 03:50 PM, Bernard Perrot wrote:
loadproc /usr/sbin/rpc.nfsd -N 4 -p $PORT $PROCESSES
Ooops... the "-N 4" is not in distribution, it's a private modification...
So, please read : "loadproc /usr/sbin/rpc.nfsd -p $PORT $PROCESSES"
Bernard
|
|
From: Bernard P. <ber...@un...> - 2012-05-09 09:01:46
|
Hi, On 05/05/2012 03:13 PM, Heiko Zuerker wrote: > > I’m not using NFS, can somebody else confirm that this change is needed? > So, I understand that this script was never well tested. I did ! If you don't believe me, take a look at startup scripts from other working distributions like RHEL... It is possible also to read the man page of NFSD : "... /The exportfs and //mountd programs (part of the nfs-utils package) expect to find this filesystem mounted at */proc/fs/nfsd* or */proc/fs/nfs*./ ..." Best regards |
|
From: Philippe W. <phi...@la...> - 2012-05-09 10:18:35
|
Le 09/05/2012 11:01, Bernard Perrot a écrit : > Hi, > > On 05/05/2012 03:13 PM, Heiko Zuerker wrote: >> >> I’m not using NFS, can somebody else confirm that this change is needed? >> > > So, I understand that this script was never well tested. > > I did ! > > If you don't believe me, take a look at startup scripts from other working distributions like RHEL... > > It is possible also to read the man page of NFSD : > > "... > /The exportfs and //mountd programs (part of the nfs-utils package) expect to find this filesystem > mounted at */proc/fs/nfsd* or */proc/fs/nfs*./ > ..." > > I'm starting test with devil 1.6 thanks bernard for correction i could confirm the problem -- Weill Philippe - Administrateur Systeme et Reseaux CNRS/UPMC/IPSL LATMOS (UMR 8190) Tour 45/46 3e Etage B302 - 4 Place Jussieu - 75252 Paris Cedex 05 - FRANCE |
|
From: Heiko Z. <he...@zu...> - 2012-05-09 11:59:01
|
Bernard, Please don't be offended. In cases where I have no clue (which happens quite often), I just like to get a second opinion to make sure that we do not introduce a new problem. I'll add the fix to CVS on the weekend. Regards Heiko Quoting Bernard Perrot <ber...@un...>: > Hi, > > On 05/05/2012 03:13 PM, Heiko Zuerker wrote: >> >> I’m not using NFS, can somebody else confirm that this change is needed? >> > > So, I understand that this script was never well tested. > > I did ! > > If you don't believe me, take a look at startup scripts from other > working distributions like RHEL... > > It is possible also to read the man page of NFSD : > > "... > /The exportfs and //mountd programs (part of the nfs-utils package) > expect to find this filesystem mounted at */proc/fs/nfsd* or > */proc/fs/nfs*./ > ..." > > > Best regards -- Regards Heiko Zuerker http://www.devil-linux.org |
|
From: Heiko Z. <he...@zu...> - 2012-05-09 13:14:50
|
Since I updated PHP, I added your fix right away too. It's now in CVS and will be included in the next release. Thanks for sending in the correction. Heiko Quoting Bernard Perrot <ber...@un...>: > Hello, > > With Devel-Linux v1.6.0, I had problems with the NFSD service, and > just find the solution : it is a bug in the NFSD startup script, > because rpc.mountd is started before rpc.nfsd. So, /proc/fs/nfsd is > not mounted when rpc.mountd starts and it don't works (error > "rpc.mountd getfh failed function not implemented"). > > So, the/etc/init.d/nfsd contains : > > ... > start) > echo -n "Starting NFS mountd..." > loadproc /usr/sbin/rpc.mountd > > echo -n "Starting NFS nfsd..." > loadproc /usr/sbin/rpc.nfsd -N 4 -p $PORT $PROCESSES > > echo -n "Starting NFS statd..." > loadproc /usr/sbin/rpc.statd > ... > > it must be : > > ... > start) > echo -n "Starting NFS nfsd..." > loadproc /usr/sbin/rpc.nfsd -N 4 -p $PORT $PROCESSES > > echo -n "Starting NFS mountd..." > loadproc /usr/sbin/rpc.mountd > > echo -n "Starting NFS statd..." > loadproc /usr/sbin/rpc.statd > ... > > Like that, it works like a charm... > > Best regards, > > Bernard -- Regards Heiko Zuerker http://www.devil-linux.org |