NFS-mounted /usr/local and ldconfig

Steven G. Kargl kargl at troutmask.apl.washington.edu
Mon Aug 8 14:33:58 UTC 2016


On Mon, Aug 08, 2016 at 03:07:25PM +0100, Chris Rees wrote:

> On 10 June 2016 22:44:43 BST, "Steven G. Kargl" <kargl at troutmask.apl.washington.edu> wrote:
> >I recently updated a cluster to FreeBSD 11.0-CURRENT r300782M,
> >and noticed on rebooting one of the nodes that ldconfig -r
> >does not include any of the libraries on an NFS-mounted
> >/usr/local.  Has a change been made to the rc scripts that
> >has ldconfig running to mounting of all filesystems in 
> >/etc/fstab?  Where's the best place to insert an command
> >of the form 'ldconfig -R /usr/local/lib' to pick up the 
> >libraries?
> >
> Hi Steve,
> 
> Just curious, are you mounting with these NFS mounts from fstab?

Yes.  The fstab entry is

node10:/usr/local  /usr/local  nfs  rw,noatime  0  0

where node10 is defined in /etc/hosts.  node10 is up and running
well before any of the systems that have an NFS mounted /usr/local
are booted.

>  Are they marked late?

No.

> https://reviews.freebsd.org/D6621
> 
> This hit SVN late May, matching your timing.  From reading the
> code, I think making the mounts late would stop mountcritremote
> working correctly.
> 
> I'm assuming this wasn't a problem before, so it looks as though
> rcorder was confused on your system before this fix.
> 
> If nothing works, rc.local should suffice for your ldconfig linei
> for the time being.

Thanks for the pointer.  Fortunately, the cluster is only rebooted 
every 3 to 6 months when I do a complete upgrade (kernel, world
and ports).  I'll keep this in mind for the next maintenance window.

-- 
steve

> >-- 
> >Steve
> >http://troutmask.apl.washington.edu/~kargl/
> >_______________________________________________
> >freebsd-rc at freebsd.org mailing list
> >https://lists.freebsd.org/mailman/listinfo/freebsd-rc
> >To unsubscribe, send any mail to "freebsd-rc-unsubscribe at freebsd.org"
> >
> >
> >-- 
> >This message has been scanned for viruses and
> >dangerous content by MailScanner, and is
> >believed to be clean.
> 
> -- 
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 

-- 
Steve
http://troutmask.apl.washington.edu/~kargl/


More information about the freebsd-rc mailing list