1 |
Hi gentoo-clusterists, |
2 |
|
3 |
I have been working on patching genkernel and some initrd scripts to be |
4 |
able to directly overlay "/" with a rw unionfs branch. What's new here? |
5 |
|
6 |
The modifications give the possibility to mount a ro NFS root and |
7 |
overlay another rw NFS directory over the root of a diskless client. |
8 |
This way, you can have a stateful diskless client. |
9 |
|
10 |
I'm testing it right now, both in an SSI setup (all machines share the |
11 |
same "/" -- but you probably all know what SSI means :) ), and in a |
12 |
more traditional way, having a root for the master node, and a root |
13 |
dedicated to the diskless nodes (typically /nfsroot/). |
14 |
|
15 |
At boot, the nodes first nfs-mount "/" from the master, then nfs-mount |
16 |
"/var/state/systems/unionfs_changes/nodeXY" as their rw unionfs overlay. |
17 |
|
18 |
You can then modify directly the "per-nodes" configuration, for example |
19 |
"/var/state/.../nodeXY/etc/fstab", so this will be the fstab seen on |
20 |
boot by nodeXY. Or you modify it live on the node, it will stay this |
21 |
way. |
22 |
|
23 |
If anybody would care to try and give me feedback on the approach, you |
24 |
may find the patches in |
25 |
|
26 |
http://bugs.gentoo.org/show_bug.cgi?id=121334 |
27 |
and |
28 |
http://bugs.gentoo.org/show_bug.cgi?id=99682 |
29 |
|
30 |
|
31 |
Thanks, |
32 |
|
33 |
-- |
34 |
Jean-Francois Richard -- http://jean-francois.richard.name |
35 |
Most general statements are false, including this one. |
36 |
-- |
37 |
gentoo-cluster@g.o mailing list |