Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2006 16:50:04 +0200
From:      =?UTF-8?B?RXJpayBOw7hyZ2FhcmQ=?= <norgaard@locolomo.org>
To:        =?UTF-8?B?TmFneSBMw6FzemzDsw==?= <nagylzs@enternet.hu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Almost ready with diskless setup
Message-ID:  <44DB479C.2000604@locolomo.org>
In-Reply-To: <44DB32B7.8080602@enternet.hu>
References:  <44DB32B7.8080602@enternet.hu>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Nagy László wrote:

> http://www.onlamp.com/pub/a/bsd/2004/09/30/diskless_clients.html

This is quite old, things have changed.

> 1. mount_nfs is complaining. It cannot update mounttab. However, the
> mounttab is in /var/db and /var is not mounted yet. Is there a nice way
> to supress these annoying messages?

This is a chicken-egg problem - you try to mount a filesystem /var, but
nfsclient wants to record the mount in /var/db/mounttab first, and this
is not writeable - and shouldn't be as other clients would use the same
file. The path to mounttab is hardcoded in the mounttab.h file.

The easy solution seems to be to let  FreeBSD boot without your custom
rc script and use the ones provided in the standard distribution. Then
the client will figure out it is diskless and do what is "appropriate":

The client will create memory file systems for /var and /tmp if these
are not writeable. Once you have the writable /var you can mount other
nfs partitions easily.

As far as I understand this is silly: The point of mounttab is to notify
the server on a reboot after a crash. But if the information is stored
on a memory file system then it is lost on a crash. There seems to be no
way to disable the mounttab.

You might really want to share /var among your diskless clients - then
you only have one locate database to maintain, by default stored in
/var/db.

The only thing that cannot be shared AFAIK is /var/run and /var/tmp. You
can link these to /tmp. /tmp need not be very big - 1 MB should do - so
it may be ok to have that as an memory file system. Then all that
remains is to hack mounttab.h to store the mounttab file on /tmp.

> 2. syslogd tells that it cannot open the pid file. (Operation not
> supported)  However, it creates /var/log/syslogd.pid. But that file is
> empty. What can be the problem?

Are you sure it is created? Check on the server. Anyway, the problem
will likely be solved once you get 1) solved.

-- 
Ph: +34.666334818                      web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9

[-- Attachment #2 --]
0	*H
010	+0	*H
00נ	UO0
	*H
010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U00
060420131650Z
070420131650Z0b10	UES10U
LocoLomo.Org10U
Erik Norgaard1$0"	*H
	norgaard@locolomo.org0"0
	*H
0
>NPLGMK	$^ha~	Xם-`Y^P
oœtƥ*\.e_!2\j]m)B>v+z2VfDѝR}Tc&E/#_.9DŽ9÷(3	?ԝWu%)vŅͯTr)FA+(R6ƶw
{9zP_Q^zpk/jXMYn0j0U00U0Uiy,]ñtb?i0U#0Àa&WtЕna=⥡010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U0	UO0 U0norgaard@locolomo.org08U10/0-+)'http://www.daemonsecurity.com/ca/ds.crl0
	*H
ǟ@&<mWc4LS@G4['s5\\VN^`I
&>"@>"[xq89`@sG;LP]ƜTT|sGٶ2Ҋctx?'ҭ$0r;2#ba"%$B
p%rԆU
ì>!73ȁg6_I.2Ġ!AaAmF
G'bךuf>-dxqq09#XOSk+FuyTvr+p!!}n.6NH'5+9`CVĩ;7RߔRKIpv&S@P`;%eƓxCuiL	Cb
Y,)x:3ѓGjRe
EtPҰk<
c\;9pT9/K̩ LHzMMuʔ(dkskj<ds08PxZ
NWC00נ	UO0
	*H
010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U00
060420131650Z
070420131650Z0b10	UES10U
LocoLomo.Org10U
Erik Norgaard1$0"	*H
	norgaard@locolomo.org0"0
	*H
0
>NPLGMK	$^ha~	Xם-`Y^P
oœtƥ*\.e_!2\j]m)B>v+z2VfDѝR}Tc&E/#_.9DŽ9÷(3	?ԝWu%)vŅͯTr)FA+(R6ƶw
{9zP_Q^zpk/jXMYn0j0U00U0Uiy,]ñtb?i0U#0Àa&WtЕna=⥡010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U0	UO0 U0norgaard@locolomo.org08U10/0-+)'http://www.daemonsecurity.com/ca/ds.crl0
	*H
ǟ@&<mWc4LS@G4['s5\\VN^`I
&>"@>"[xq89`@sG;LP]ƜTT|sGٶ2Ҋctx?'ҭ$0r;2#ba"%$B
p%rԆU
ì>!73ȁg6_I.2Ġ!AaAmF
G'bךuf>-dxqq09#XOSk+FuyTvr+p!!}n.6NH'5+9`CVĩ;7RߔRKIpv&S@P`;%eƓxCuiL	Cb
Y,)x:3ѓGjRe
EtPҰk<
c\;9pT9/K̩ LHzMMuʔ(dkskj<ds08PxZ
NWC100010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U0	UO0	+)0	*H
	1	*H
0	*H
	1
060810145004Z0#	*H
	1	L,B,ae}0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+710010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U0	UO0*H
	1010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U0	UO0
	*H
~w/K	`{x+T^@ÖSѻk$^V1]4ߓbzxT.iMvkk&"eboe>aʛu)8.Xk1fǂϳ^cc-NFup!9%rM4zmPuI󝼜Oug>>Ma
KLlt21ifT͹$,

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44DB479C.2000604>