Re: md device backing files on nfs mounts?

From: Lowell Gilbert (freebsd-questions-local_at_be-well.ilk.org)
Date: 10/06/05

  • Next message: Lowell Gilbert: "Re: burning multisession cd's and bootable windows isos"
    To: "Chad Leigh -- Shire.Net LLC" <chad@shire.net>
    Date: 06 Oct 2005 13:18:47 -0400
    
    

    "Chad Leigh -- Shire.Net LLC" <chad@shire.net> writes:

    > On Oct 6, 2005, at 10:51 AM, Lowell Gilbert wrote:
    >
    > > "Chad Leigh -- Shire.Net LLC" <chad@shire.net> writes:
    > >
    > >
    > >> Can the files that back an md device be resident on an nfs mount?
    > >>
    > >> I run some jails with each having its own root based on an md
    > >> device.
    > >> I am thinking of having a backend nfs server have all the storage
    > >> and
    > >> serve it to various front end servers. If one front end server went
    > >> down I could easily bring it up on another one. Kind of poor-man's
    > >> redundancy
    > >>
    > >
    > > How do you get the NFS mount before you have a root?
    >
    > Just the jails would be on md devices on the nfs mounted filesystem.
    > Ie, main computer boots normally, mounts nfs filesystem, then mounts
    > md devices backed by files on the nfs fielsystem

    Yes, okay, that seems obvious now. Maybe I need more caffeine.

    I just tried it without the jails and was able to mount and use the
    filesystem. The permissions *are* a little tricky, because root is
    (as usual) mapped to nobody on my NFS mounts, and needs write access
    on the backing file.

    I did the procedure from the last example in the mdconfig(8) manual,
    and it worked just like on a local disk. There might have been some
    anomalies with the output of ls(1), but I can't reproduce those now.

    You might want to try measuring performance if you implement this; it
    could have some strange interactions with VM and buffering.

    Clever idea, by the way.

    >
    > Chad
    >
    > > Also, I suspect the permissions might be a little tricky...
    > >
    > > Some kind of netbooting might work.

    -- 
    Lowell Gilbert, embedded/networking software engineer, Boston area
    		http://be-well.ilk.org/~lowell/
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Lowell Gilbert: "Re: burning multisession cd's and bootable windows isos"

    Relevant Pages

    • Re: NFS Security Question
      ... Subject: NFS Security Question ... however you can always su to bob and get permission to his sensitive ... There is no need to have root on the mount in this case to accomplish the ... >> mounts automatically, and I CD to it, because I'm root, yes? ...
      (Focus-SUN)
    • How to manage shared persistent local caching (FS-Cache) with NFS?
      ... patches again and have NFS work with them. ... coherency is ignored for mounts that have ... Imagine the client sees ... file its own cache: ...
      (Linux-Kernel)
    • initrd does not boot in 2.6.3, working in 2.4.25
      ... that is, it unpacks image.gz into ramdisk #0, mounts it, ... mounts devfs on /dev and execs /linuxrc.nfs.vda. ... complains about NFS server. ... VFS: Mounted root ...
      (Linux-Kernel)
    • Re: Any hope of KDE 3.5 in F10? I want it too !
      ... FWIW...I found that this behavior stopped when I went to autofs ... Do you mean change 'nfs' to 'autofs'? ... after years of doing smb mounts I've only just learned how to do nfs ... I can change the mounts simply by changing LDAP and ...
      (Fedora)
    • Re: [PATCH] NFS: Replace null dentries that appear in readdirs list [try #2]
      ... This should now be left to the NFS client. ... which mounts can cross servers, but that uses more or less the same mechanism. ... What's wrong with having the kernel do it? ... Automounting and auto-expiration both. ...
      (Linux-Kernel)