From owner-freebsd-questions@FreeBSD.ORG Thu Aug 10 14:50:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDAAD16A4DD for ; Thu, 10 Aug 2006 14:50:23 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30D5843D49 for ; Thu, 10 Aug 2006 14:50:21 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.0.253] (unknown [192.168.0.253]) by strange.daemonsecurity.com (Postfix) with ESMTP id 963432E64C; Thu, 10 Aug 2006 16:50:20 +0200 (CEST) Message-ID: <44DB479C.2000604@locolomo.org> Date: Thu, 10 Aug 2006 16:50:04 +0200 From: =?UTF-8?B?RXJpayBOw7hyZ2FhcmQ=?= Organization: Locolomo.ORG User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: =?UTF-8?B?TmFneSBMw6FzemzDsw==?= References: <44DB32B7.8080602@enternet.hu> In-Reply-To: <44DB32B7.8080602@enternet.hu> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms000500010801010807080800" Cc: freebsd-questions@freebsd.org Subject: Re: Almost ready with diskless setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2006 14:50:24 -0000 This is a cryptographically signed message in MIME format. --------------ms000500010801010807080800 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --------------ms000500010801010807080800 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIL5jCC Be8wggPXoAMCAQICCQCNA1Uf/OBPDDANBgkqhkiG9w0BAQUFADCBmTELMAkGA1UEBhMCRVMx GDAWBgNVBAoTD0RhZW1vbiBTZWN1cml0eTEeMBwGA1UECxMVQ2VydGlmaWNhdGUgQXV0aG9y aXR5MR4wHAYDVQQDExVDZXJ0aWZpY2F0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