Hello, We are running two boxes with SuSE Linux 6.1. They share /home, /var/spool/mail and some other directories. It would be highly desirable to have file locking over NFS. I have been running kernels 2.2.14-2.2.17 and using kernel NFS. All neccessary daemons (incl. rpc.kstatd) are running. Still the files can't be locked over nfs. When I strace testlk I see fcntl(3, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = -1 EACCES (Permission denied) The mount options are: bg,rsize=4096,wsize=4096,timeo=14,soft,intr So I am forced to mount with nolock option to avoid certain client programs (with fcntl) to hang or fail and face the danger that e.g e-mail may get lost when one uses e-mail client on a host with nfs-mounted spool and we have other critical application where file access from both machines is needed without data loss. What can be possibly be wrong? From NFS-HOWTO I got an impression that locking should be functional with kernel-nfs. Could it be because I am keeping two copies of /etc/passwd and /etc/shadow and I am not using NIS or YP? And there's another question. Is there a workaround with knfs to see all mounted partitions in a directory subtree, e.g. I have /home and /home/biguser on different partitions. Do I neccessarily have to write two entries for those in /etc/exports on hosting machine and in /etc/fstab on the other box. It was sufficient to have one entry with userspace nfs shipped with SuSE. It would be important for certain partitions that are dynamically mounted. Thanks in advance, Kaupo Palo -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (1)
-
Kaupo.Palo@ebi.ee