locking failure with rpcbind and nfsroot (SLES 11, 2.6.27)
Subsystems (2)
Hi,
the question in short: How can I boot a diskless client with nfsroot and let it mount its /var directory via NFS, with locking enabled?
We did this with SLES 10 so far:
- boot the client and let it mount / read-only from the server
- start portmap on the client
- execute sth. like "mount -o rw,lock server:/<clientip>/var /var"
Then we had file locking in /var on the client, and on every NFS directory we mounted on the client afterwards.
With SLES 11 (kernel 2.6.27) we switched from portmap to rpcbind and things fail, because rpcbind creates a lock file and a socket in /var/run, so we need a writeable /var before we can mount /var.
So we first create a tmpfs for /var, start rpcbind, then mount the clients /var directory via NFS from the server over the tmpfs.
Then we try to restart rpcbind so that it can recreate the socket in /var/run, but it fails. It doesn't create the socket file, and after about 60 seconds says:
rpcbind: server localhost not responding, timed out
lockd: cannot monitor our_server
lockd: failed to monitor our_server
So it seems we cannot mount a nfs directory on a tmpfs /var when this /var is already used by rpcbind and its socket.
What can we do? Is /var as nfs directory with locking no longer possible with nfsroot and rpcbind?
cu,
Frank
Signature · 14 lines
Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. * ------------------------------------------------------------------------------ _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs _______________________________________________ Please note that [email protected] is being discontinued. Please subscribe to [email protected] instead. http://vger.kernel.org/vger-lists.html#linux-nfs
So, is no one but me using root-over-nfs anymore?
Otherwise I wonder how one can handle a /var filesystem with root-over-nfs and locking. I can't be the only one having this problem?!
cu,
FRank
Signature · 18 lines
Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. * ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs _______________________________________________ Please note that [email protected] is being discontinued. Please subscribe to [email protected] instead. http://vger.kernel.org/vger-lists.html#linux-nfs