Re: Fijar puertos de NFS
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:
pepe@apta:/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
[...]
Reply to: