GNU/Linux >> Linux Esercitazione >  >> Cent OS

Servizio del sistema operativo Linux 'nfslock'

Il Network File System (NFS) è un protocollo client/server che consente di montare una gerarchia di directory situata su un server NFS su uno o più client NFS. Una volta eseguita questa operazione, il client NFS può accedere in modo trasparente ai file del server NFS. I demoni lato server NFS arbitrano l'accesso simultaneo di più client. Interi file o singole regioni di file possono essere bloccati da un client per evitare condizioni di gara causate da modifiche simultanee o dalla visualizzazione di aggiornamenti parziali.

Il demone nfslock offre la possibilità di bloccare regioni di file NFS. Viene eseguito solo su un server NFS; I client NFS non devono eseguire questo servizio. Questo servizio esegue il demone /sbin/rpc.lockd.

Controllo del servizio

Come avviare o interrompere immediatamente questo servizio:

# service nfslock  start
Starting NFS statd:                                        [  OK  ]
# service nfslock  stop
Stopping NFS locking:                                      [  OK  ]
Stopping NFS statd:                                        [  OK  ]

Come controllare il servizio agli avvii successivi :

# chkconfig --list nfslock
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off

Altre opzioni:

# service nfslock
Usage: /etc/init.d/nfslock {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}

La funzione sonda è speciale per questo servizio. Il comando:

# service nfslock probe

restituirà la stringa "inizio ” se il demone di blocco NFS non è in esecuzione o “riavvia ” se è attualmente in esecuzione.

Configurazione

Il nome del pacchetto per questo servizio è – nfs-utils . Il servizio può essere configurato modificando il file /etc/sysconfig/nfs. Di seguito è riportato un file di esempio /etc/sysconfig/nfs.

# cat /etc/sysconfig/nfs
#
# Define which protocol versions mountd
# will advertise. The values are "no" or "yes"
# with yes being the default
#MOUNTD_NFS_V2="no"
#MOUNTD_NFS_V3="no"
#
#
# Path to remote quota server. See rquotad(8)
#RQUOTAD="/usr/sbin/rpc.rquotad"
# Port rquotad should listen on.
#RQUOTAD_PORT=875
# Optinal options passed to rquotad
#RPCRQUOTADOPTS=""
#
#
# Optional arguments passed to in-kernel lockd
#LOCKDARG=
# TCP port rpc.lockd should listen on.
#LOCKD_TCPPORT=32803
# UDP port rpc.lockd should listen on.
#LOCKD_UDPPORT=32769
#
#
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
# Turn off v2 and v3 protocol support
#RPCNFSDARGS="-N 2 -N 3"
# Turn off v4 protocol support
#RPCNFSDARGS="-N 4"
# Number of nfs server processes to be started.
# The default is 8.
#RPCNFSDCOUNT=8
# Stop the nfsd module from being pre-loaded
#NFSD_MODULE="noload"
# Set V4 and NLM grace periods in seconds
#
# Warning, NFSD_V4_GRACE should not be less than
# NFSD_V4_LEASE was on the previous boot.
#
# To make NFSD_V4_GRACE shorter, with active v4 clients,
# first make NFSD_V4_LEASE shorter, then restart server.
# This will make the clients aware of the new value.
# Then NFSD_V4_GRACE can be decreased with another restart.
#
# When there are no active clients, changing these values
# can be done in a single server restart.
#
#NFSD_V4_GRACE=90
#NFSD_V4_LEASE=90
#NLM_GRACE_PERIOD=90
#
#
#
# Optional arguments passed to rpc.mountd. See rpc.mountd(8)
#RPCMOUNTDOPTS=""
# Port rpc.mountd should listen on.
#MOUNTD_PORT=892
#
#
# Optional arguments passed to rpc.statd. See rpc.statd(8)
#STATDARG=""
# Port rpc.statd should listen on.
#STATD_PORT=662
# Outgoing port statd should used. The default is port
# is random
#STATD_OUTGOING_PORT=2020
# Specify callout program
#STATD_HA_CALLOUT="/usr/local/bin/foo"
#
#
# Optional arguments passed to rpc.idmapd. See rpc.idmapd(8)
#RPCIDMAPDARGS=""
#
# Set to turn on Secure NFS mounts.
#SECURE_NFS="yes"
# Optional arguments passed to rpc.gssd. See rpc.gssd(8)
#RPCGSSDARGS=""
# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
#RPCSVCGSSDARGS=""
#
# To enable RDMA support on the server by setting this to
# the port the server should listen on
#RDMA_PORT=20049


Cent OS
  1. Sistema operativo Linux Servizio 'sysstat'

  2. Servizio del sistema operativo Linux 'nfs'

  3. Servizio del sistema operativo Linux 'microcode_ctl'

  4. Servizio del sistema operativo Linux "NetFS"

  5. Servizio del sistema operativo Linux 'ldap'

Servizio del sistema operativo Linux "portmap"

Servizio del sistema operativo Linux "auditd"

Servizio del sistema operativo Linux "hplip"

Sistema operativo Linux Servizio "smartd"

Servizio del sistema operativo Linux 'irqbalance'

Servizio del sistema operativo Linux 'rpcgssd'