Re: rpc.statd is not running but is required

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>to start statd.  That should work unless NEED_STATD is set to 'no' in 
>/etc/default/nfs-common.

mahmood@server:~$ cat /etc/default/nfs-common
# If you do not set values for the NEED_ options, they will be attempted
# autodetected; this should be sufficient for most people. Valid alternatives
# for the NEED_ options are "yes" and "no".
# Do you want to start the statd daemon? It is not needed for NFSv4.
NEED_STATD=
# Options for rpc.statd.
#   Should rpc.statd listen on a specific port? This is especially useful
#   when you have a port-based firewall. To use a fixed port, set this
#   this variable to a statd argument like: "--port 4000 --outgoing-port 4001".
#   For more information, see rpc.statd(8) or http://wiki.debian.org/?SecuringNFS
STATDOPTS=
# Do you want to start the idmapd daemon? It is only needed for NFSv4.
NEED_IDMAPD=
# Do you want to start the gssd daemon? It is required for Kerberos mounts.
NEED_GSSD=

Should I NEED_STATD to yes?

>What is in /etc/default/nfs-common??
>If you 
>/etc/init.d/nfs-common restart
>does that start statd?

As I said, I have only nfs-kernel-server

mahmood@server:~$ ls /etc/init.d/nfs*
/etc/init.d/nfs-kernel-server

One more question? Can I install statd?
mahmood@server:~$ sudo apt-get install stat
stat        statcvs     statd       statgrab    statnews    statserial  statsvn

So you recommend that?

// Naderan *Mahmood;


----- Original Message -----
From: NeilBrown <neilb@xxxxxxx>
To: Mahmood Naderan <nt_mahmood@xxxxxxxxx>
Cc: Dennis Jacobfeuerborn <dennisml@xxxxxxxxxxxx>; nfs <linux-nfs@xxxxxxxxxxxxxxx>
Sent: Monday, May 2, 2011 3:12 PM
Subject: Re: rpc.statd is not running but is required

On Mon, 2 May 2011 03:03:28 -0700 (PDT) Mahmood Naderan
<nt_mahmood@xxxxxxxxx> wrote:

> I heve this service
>  
> mahmood@server:~$ sudo  /etc/init.d/nfs-kernel-server restart
>  * Stopping NFS kernel daemon                                                  [ OK ]
>  * Unexporting directories for NFS kernel daemon...                            [ OK ]
>  * Exporting directories for NFS kernel daemon...                              [ OK ]
>  * Starting NFS kernel daemon                                                  [ OK ]
> 
>  
> I use debian based linux. Is that what you meant?

(sorry - clicked wrong button before.

Yes, it seems Debian doesn't supply start-statd.  I wonder why.

They rely on
    /etc/init.d/nfs-common start

to start statd.  That should work unless NEED_STATD is set to 'no' in 
/etc/default/nfs-common.

What is in /etc/default/nfs-common??
If you 
   /etc/init.d/nfs-common restart

does that start statd?

NeilBrown


> 
> // Naderan *Mahmood;
> 
> 
> ----- Original Message -----
> From: Dennis Jacobfeuerborn <dennisml@xxxxxxxxxxxx>
> To: NeilBrown <neilb@xxxxxxx>
> Cc: Mahmood Naderan <nt_mahmood@xxxxxxxxx>; nfs <linux-nfs@xxxxxxxxxxxxxxx>
> Sent: Monday, May 2, 2011 2:30 PM
> Subject: Re: rpc.statd is not running but is required
> 
> On 05/02/2011 10:35 AM, NeilBrown wrote:
> > On Mon, 2 May 2011 00:59:01 -0700 (PDT) Mahmood Naderan
> > <nt_mahmood@xxxxxxxxx>  wrote:
> >
> >> Hi,
> >> I have setup NFS and I checked every thing with documents and manual.
> >> After the client boots up, it says:
> >>
> >>
> >> mount.nfs: rpc.statd is not running but is required for remote locking.
> >> mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
> >> mountall: mount /opt [1000] terminated with status 32
> >
> > mount tried to run  /usr/sbin/start-statd and it failed for some reason.
> > What is in /usr/sbin/start-statd ??
> > What happens if you run it directly?
> > What happens if you just run  /usr/sbin/rpc.statd??
> >
> 
> Have you tried checking if the /etc/init.d/nfslock service is enabled and 
> running?
> 
> Regards,
>    Dennis
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux