Re: Mounting NFS root FS



Trond Myklebust wrote:
On Mon, 2006-12-04 at 22:05 +0200, Janne Karhunen wrote:
On Monday 04 December 2006 20:21, Trond Myklebust wrote:

2) NFS provides persistent storage.
To me this sounds like a chicken and an egg problem. It
both depends and provides this at the same time :/. But
hey, if it's supposed to work then OK.
??? Locking depends on persistent storage, but persistent storage never
depended on locking.
Except for the fact that to be able to mount anything RW you
generally _want_ to have locks. And can't have locks without the mount. Not that it wouldn't work, it's just that I would
not do it [for obvious reasons].

You just need to be careful to set it up correctly in the initrd: either
make sure that you mount the root partition as 'nolock' or else make
sure that you mount /var/lib/nfs, and start rpc.statd before you start
init and any other applications that might need locking.


The nfsmount which is in the klibc distribution supports running an ad hoc portmap daemon, which allows locking to be done by forwarding information to the "real" portmap for when the real rpc.statd is run.

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Mounting NFS root FS
    ... Locking depends on persistent storage, ... Except for the fact that to be able to mount anything RW you ... generally _want_ to have locks. ...
    (Linux-Kernel)
  • Re: Mounting NFS root FS
    ... Locking depends on persistent storage, ... Except for the fact that to be able to mount anything RW you ... generally _want_ to have locks. ...
    (Linux-Kernel)
  • Re: [PATCH 0/3] 64-bit futexes: Intro
    ... i suspect _any_ abstract locking functionality around a data structure ... tightly coupled to the exact details of which atomics are fast on a ... For example, some loads are almost entirely read-read locks, with only ... There we can just do a write to unlock. ...
    (Linux-Kernel)
  • Re: Transaction Isolation Level
    ... what size servers are you working ... and only have to specify locking hints when we ... need locks. ...
    (microsoft.public.sqlserver.server)
  • Re: Back end database lock-up
    ... Check the open mode and locking strategy of *each* front end. ... database into front end and back end databases and put the front end ... only lock the records that are being updated, but it locks the entire ... The locking file is not created until a user updates the data via ...
    (comp.databases.ms-access)