From owner-freebsd-questions@freebsd.org Thu Feb 6 22:04:25 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5D3C123C2FF for ; Thu, 6 Feb 2020 22:04:25 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48DCBw2rn9z3HdH for ; Thu, 6 Feb 2020 22:04:24 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.141] (76-214-71-45.lightspeed.irvnca.sbcglobal.net [76.214.71.45]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 2813e86b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 6 Feb 2020 22:04:17 +0000 (UTC) Subject: Re: Mounting /usr/local from NFS To: D'Arcy Cain , freebsd-questions@freebsd.org References: <1becbc20-493d-4be0-da50-31cf556ae61f@druid.net> From: Pete Wright Message-ID: <8349a9cb-c2cc-6d4e-4229-a574711b56cf@nomadlogic.org> Date: Thu, 6 Feb 2020 14:04:18 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <1becbc20-493d-4be0-da50-31cf556ae61f@druid.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 48DCBw2rn9z3HdH X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-5.00 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.70)[ip: (-9.26), ipnet: 174.136.96.0/20(-3.87), asn: 25795(-0.32), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Feb 2020 22:04:25 -0000 On 2020-02-06 12:12, D'Arcy Cain wrote: > I am not sure why I am having a problem but it may be related to this. > I am mounting /usr/local from a master machine in the office. I also > mount /home and a few local directories. Everything seems to work OK > except that local rc.d scripts aren't running. For example, I have > xdm_enable set in rc.conf but when I boot it doesn't start. I look at > /var/log/messages and I don't see anything about xdm, not even errors. > > After it boots I can do "service xdm restart" and it starts just fine. > > I wonder if this is because /usr/local is mounted too late for rc to see > the scripts in /usr/local/etc/rc.d. I tried to figure out the variable > "mountcritremote" but I can't find any documentation on it. I tried > setting it to "YES" and "/usr/local" but it didn't help. > > The same issue happens with postfix which is the other program I am > running from ports. > > So, first question is, does this seem like a likely explanation for what > I am seeing? Second question is how do I fix this either way? I wonder if updating rc.conf(5) to set your nfs client configs as the early_late_divider will help:      early_late_divider                  (str) The name of the script that should be used as the                  delimiter between the "early" and "late" stages of the boot                  process.  The early stage should contain all the services                  needed to get the disks (local or remote) mounted so that the                  late stage can include scripts contained in the directories                  listed in the local_startup variable (see below). Thus, the                  two likely candidates for this value are mountcritlocal for                  the typical system, and mountcritremote if the system needs                  remote file systems mounted to get access to the                  local_startup directories; for example when /usr/local is NFS                  mounted.  For rc.conf within a jail(8) NETWORKING is likely                  to be an appropriate value.  Extreme care should be taken                  when changing this value, and before changing it one should                  ensure that there are adequate provisions to recover from a                  failed boot (such as physical contact with the machine, or                  reliable remote console access). might be misreading your email though and perhaps you are already doing thing? -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA