Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: NFS Boot
Date: Sun, 17 Jan 2010 10:23:06
Message-Id: 201001171220.47118.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] Re: NFS Boot by walt
1 On Saturday 16 January 2010 22:14:00 walt wrote:
2 > On 01/16/2010 08:32 AM, Mikie wrote:
3 > > Hello,
4 > >
5 > > I am converting an Ubuntu 9.10 to NFS boot by coping files to the NFS
6 > > root.
7 > >
8 > > My question is:
9 > >
10 > > Would it be better to create a local hard drive swap and file system for
11 > > certain root dir?
12 > >
13 > > Should Tmp be local rather than on the NFS root?
14 >
15 > I'm no expert on the subject, but I'm interested in the answer too.
16 > I'm thinking it may depend on your reason for wanting to boot from NFS.
17 >
18 > One big reason for network booting is for diskless workstations, but
19 > it seems you plan to keep the existing drive(s) in that machine?
20 >
21 > In that case I would choose to make the NFS boot fs read-only and put
22 > any writeable fs on the local disk -- but again that would depend on
23 > your reasons for making the change in the first place.
24 >
25 > But I await more informed opions than mine.
26
27 The usual scenario for network booting is indeed diskless workstations - these
28 usually often have a decent amount of ram, and the login sessions on them are
29 short-lived (on the order of a few hours).
30
31 tmpfs is the best choice for /tmp in this case
32
33 swap may need some fiddling. By it's nature, the faster swap is the better.
34 NFS tends to be either set up properly then it's fast (I have NASes runnign
35 NFS that out-perform all but the fastest local disks....), or it's set up
36 badly then it's very slow indeed.
37
38 One should benchmark swap on a local device (either disk or ramdisk) and
39 compare it to swap over nfs and decide based on the results. I've not yet seen
40 a formula that lets you predict in advance which one is likely to be better
41
42
43 --
44 alan dot mckinnon at gmail dot com