Como siempre, se me ha olvidado el anexo (aunque no s� si tiene mucha
importancia).

Perd�oooooon!

--
Pepe.

[20041231]
http://www.lowth.com/LinWiz/nfs_help.html
- Status. Extracte d'/etc/default/nfs-common:
  STATDOPTS=--port 4000
- NFS lock daemon. Llig:

On systems where the lock manager is implemented as a loadable module the port 
number used
is set at module load time, and so is configured by adding (or editting) a line 
in the
/etc/modules.conf file, as follows..

     options lockd nlm_udpport=4001 nlm_tcpport=4001

     This sets the udp and tcp/ip port numbers. Conventionally, these two 
numbers should
     be set to the same value.

     If your system has the lockd code compiled into the main kernel binary 
rather than
     as a loadable module, then the settings in modules.conf wont work. You 
need to add the
     parameters "lockd.udpport=4001 lockd.tcpport=4001" to the kernel command 
line in the 
     lilo or grub configuration instead.

Extracte del "config" del meu nucli (2.6.8-1-k7 est�ndar de Debian):

#
# Network File Systems
#
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
CONFIG_NFS_DIRECTIO=y
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=m
CONFIG_SUNRPC=m
CONFIG_SUNRPC_GSS=m
CONFIG_RPCSEC_GSS_KRB5=m

(2.4) Anem a /etc/modules.conf doncs. Afegisc la l�nia
options lockd nlm_udpport=4001 nlm_tcpport=4001

(2.6) Anem a /etc/modprobe.d. Cree el fitxer "nfs", que cont� eixa mateixa 
l�nia.
Espere que funcione. Al menys, el m�dul lockd existeix:
[EMAIL PROTECTED]:/etc/modprobe.d$ find /lib/modules/2.6.8-1-k7/ -name lockd
/lib/modules/2.6.8-1-k7/kernel/fs/lockd

- rpc.mountd. Afegisc "--por 4002" en /etc/default/nfs-kernel-server:

  [...]
  # Options for rpc.mountd
  RPCMOUNTDOPTS=--port 4002

- rquotad. No utilitze "quota", per� quan ho fa�a haur� d'afegir a 
/etc/services:

  rquotad 4003/tcp
  rquotad 4003/udp

  ULLET: Mirar abans si ha ha un lloc "debian specific"!

- Lliurar-se de la depend�ncia d'rmtab (/var/lib/nfs) amb el kernel 2.6 (v. 
/usr/src/linux/Documentation/Changes).
  "# mount -t nfsd nfsd /proc/fs/nfs" abans d'exportar. Per a llevar els 
"exports" c�modament:
  "export -u ipt.apteta.net:/opt/nfs", per exemple.

  Afegisc eixa l�nia en /etc/init.d/nfs-kernel-daemon:

  start()
          [...]
          printf " mountd"
          # [20041231] La seg�ent l�nia afegida per mi.
          mount -t nfsd nfsd /proc/fs/nfs
          [...]
  stop()
          printf "Stopping $DESC: mountd"
          # [20041231] La seg�ent l�nia afegida per mi.
          /bin/umount /proc/fs/nfs
          [...]

Responder a