Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2010 09:20:55 -0800
From:      Freddie Cash <fjwcash@gmail.com>
To:        Patrick Proniewski <patpro@patpro.net>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: auto-mounting ZFS snapshots
Message-ID:  <AANLkTikNJuJPMJ5Ktwi6TiOjCBr7WGrPN5UfJswAbfCw@mail.gmail.com>
In-Reply-To: <4524EE89-E0A2-4CCF-92F9-80BB709C4BF6@patpro.net>
References:  <4524EE89-E0A2-4CCF-92F9-80BB709C4BF6@patpro.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 6, 2010 at 8:00 AM, Patrick Proniewski <patpro@patpro.net> wrote:
> I'm using freebsd-snapshot to create/destroy a bunch of daily/weekly snapshots
> of my ZFS datasets.
> I would like to make the automount work, so I've configured amd
> accordingly, but strangely it fails:

FreeBSD automounts the "hidden" .zfs filesystem hierarchy where
snapshots are "stored" automatically.  No need for amd.

# zfs set snapdir=visible poolname/fsname
# cd /path/to/fsname/.zfs/snapshot
# ls
# cd snapshot-name

Even a simple "ls
/path/to/fsname/.zfs/snapshot/snapshot-name/somedir/" will cause it to
be mounted.

-- 
Freddie Cash
fjwcash@gmail.com



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