[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mount local NFS share on boot



On Thu, 2015-02-12 at 18:54 +0300, Reco wrote:
>  Hi.
> 
> On Thu, 12 Feb 2015 08:50:46 -0600
> Laverne Schrock <lists-laverne@schrock.email> wrote:
> 
> > So here is my question: What is the best way to automatically mount a
> > NFS share on the system acting as the server?
> 
> Try using automount feature of systemd for NFS share. That way you'll
> delay actual mounting of said filesystem until someone will actually
> need the contents of NFS share.
> 
> http://www.freedesktop.org/software/systemd/man/systemd.automount.html
> 
> Reco
> 
> 
I went the route of still using fstab so here is my entry now:

localhost:/.private/snapshots /snapshots nfs
ro,noauto,x-systemd.automount 0 0

This seems to work quite well, with both boot time and shutdown time
being greatly improved. 

Thanks for the help

Laverne




Reply to: