Gentoo Archives: gentoo-user

From: YoYo Siska <yoyo@××××××.sk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Something like nullfs (FreeBSD) available in linux
Date: Wed, 26 Jan 2011 15:58:19
Message-Id: 20110126155638.GA13476@ksp.sk
In Reply to: [gentoo-user] Something like nullfs (FreeBSD) available in linux by Matthias Fechner
1 On Wed, Jan 26, 2011 at 01:37:38PM +0100, Matthias Fechner wrote:
2 > Dear list,
3 >
4 > I want to build up a NFS share for several host.
5 > The base system is always equal, only some files are different
6 > (files in /etc and /var, maybe more).
7 >
8 > The structure should look like:
9 > Base system is on /basesystem
10 >
11 > Then I want a directory for every host:
12 > /nfsroot/host1
13 > /nfsroot/host2
14 > ..
15 > /nfsroot/hostn
16 >
17 > Client 1 will boot via lan and mount the /nfsroot/host1 via NFS.
18 > On the server the mount could look like:
19 > mount -t nullfs /basesystem /nfsroot/host1
20 > mount -t nullfs /basesystem /nfsroot/host2
21 >
22 > If the host1 changes now a file the changed file is not stored in
23 > /basesystem but in /nfsroot/host1.
24 > (so you can think about a filesystem in two layers, the ground layer
25 > is /basesystem and readonly, changes will go to /nfsroot/hostn)
26 >
27 > If i upgrade the /basesystem all files should be available for all
28 > hosts expect the files the host changed by itself (they are stored
29 > in the nfsroot/hostn directory).
30 >
31 > In FreeBSD there is a file system available called nullfs which
32 > could be used for this.
33 > Is there a similar filesystem for Linux available, too?
34
35 Unionfs or aufs should be able to do that.
36
37 yoyo

Replies

Subject Author
Re: [gentoo-user] Something like nullfs (FreeBSD) available in linux Matthias Fechner <idefix@×××××××.net>