From owner-freebsd-fs@FreeBSD.ORG Tue Dec 7 12:44:06 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 742EE1065670 for ; Tue, 7 Dec 2010 12:44:06 +0000 (UTC) (envelope-from martin@lispworks.com) Received: from lwfs1-cam.cam.lispworks.com (mail.lispworks.com [193.34.186.230]) by mx1.freebsd.org (Postfix) with ESMTP id EB37F8FC17 for ; Tue, 7 Dec 2010 12:44:05 +0000 (UTC) Received: from higson.cam.lispworks.com (IDENT:U2FsdGVkX1/Nee4iA+czCETnGmLI6oqj/zip57GVVLg@higson [192.168.1.7]) by lwfs1-cam.cam.lispworks.com (8.14.3/8.14.3) with ESMTP id oB7Ci2Fb087765; Tue, 7 Dec 2010 12:44:02 GMT (envelope-from martin@lispworks.com) Received: from higson.cam.lispworks.com by higson.cam.lispworks.com (8.13.1) id oB7Ci2G5006890; Tue, 7 Dec 2010 12:44:02 GMT Received: (from martin@localhost) by higson.cam.lispworks.com (8.13.1/8.13.1/Submit) id oB7Ci2AD006887; Tue, 7 Dec 2010 12:44:02 GMT Date: Tue, 7 Dec 2010 12:44:02 GMT Message-Id: <201012071244.oB7Ci2AD006887@higson.cam.lispworks.com> From: Martin Simmons To: freebsd-fs@freebsd.org In-reply-to: (message from Freddie Cash on Mon, 6 Dec 2010 13:31:14 -0800) References: <4524EE89-E0A2-4CCF-92F9-80BB709C4BF6@patpro.net> <4CFD558C.2060202@DataIX.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: auto-mounting ZFS snapshots X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 12:44:06 -0000 >>>>> On Mon, 6 Dec 2010 13:31:14 -0800, Freddie Cash said: > > On Mon, Dec 6, 2010 at 1:28 PM, jhell wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On 12/06/2010 16:13, Patrick Proniewski wrote: > >> On 6 déc. 2010, at 18:20, Freddie Cash wrote: > >> > >>> FreeBSD automounts the "hidden" .zfs filesystem hierarchy where > >>> snapshots are "stored" automatically.  No need for amd. > >> > >> The zfs man page reads: > >> > >> File  system snapshots can be accessed under the ".zfs/snapshot" > >> direc- tory in the root  of  the  file  system.  Snapshots  are > >> automatically mounted  on demand and may be unmounted at regular > >> intervals. The visi- bility of the ".zfs" directory can be controlled > >> by the "snapdir" prop- erty. > >> > >> "may be unmounted at regular intervals" <-- what about this? Do I > >> have to create a periodic script that'll unmount snapshots? And if > >> so, how can I make a script that'll unmount only snapshots mounted > >> for over, say, 1 hour? > > > > No this is a no worry type of thing. This is a transparent process that > > handles what is available. Just consider them mounted all the time but > > you will not see them. > > > > Play with it a little and see what it looks like. mount(1) will not even > > show them as mounted so there is no worries here. The correct thing > > happens to keep you from shooting yourself in the foot. > > Oh, that's right. Mount was updated in 8.x to not show ZFS snapshots, > so you don't even have to worry about it anymore. > > My previous reply applies to 7.x, though (which is what's running on > one of our backups boxes). In 8.0 at least, they are still shown in the output of /etc/periodic/security/200.chkmounts by default. __Martin