From owner-freebsd-fs@FreeBSD.ORG Mon Dec 6 21:31:16 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 12B4D10656F0 for ; Mon, 6 Dec 2010 21:31:16 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.161.172]) by mx1.freebsd.org (Postfix) with ESMTP id B5A9A8FC19 for ; Mon, 6 Dec 2010 21:31:15 +0000 (UTC) Received: by gxk28 with SMTP id 28so7439173gxk.17 for ; Mon, 06 Dec 2010 13:31:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bLdrAhWPDDUY2kgNMKcezQrhUW0NTv5cjtIsLfqb/bo=; b=A/lO1Tu7cfYOEQqx507n9mnTTsXjQnK5cwAmMVFPJ3bugjJDaWQvHqxOKwm7ErjAMr 5ztHBajVI8KkysMCTHMEfpLdt4LASWLD0YoM9gSpX4enunsjoo/WfYa0giST7IXLuY7a m7rArFtJMnR2/+OM6Z0YkqUgoGYZTb3c7wFsM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Ec7PpSWITWkDlqybAfrNJfu6AqfqapTWbwBa2VuSDxWaxHaYhe/n1uV7QKkKCZNldm wXEWMi32ps7p7tuOcKPDkIvd9Cc57IlEva4swfEK40FQFvekZxxjOD6c72sR3dOcfbq4 7ZZlMplYtR7BOn6KnumrKxCa0DzhWBO9PW1V8= MIME-Version: 1.0 Received: by 10.91.203.6 with SMTP id f6mr8569780agq.30.1291671074792; Mon, 06 Dec 2010 13:31:14 -0800 (PST) Received: by 10.90.226.2 with HTTP; Mon, 6 Dec 2010 13:31:14 -0800 (PST) In-Reply-To: <4CFD558C.2060202@DataIX.net> References: <4524EE89-E0A2-4CCF-92F9-80BB709C4BF6@patpro.net> <4CFD558C.2060202@DataIX.net> Date: Mon, 6 Dec 2010 13:31:14 -0800 Message-ID: From: Freddie Cash To: jhell Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Filesystems , Patrick Proniewski 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: Mon, 06 Dec 2010 21:31:16 -0000 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=C3=A9c. 2010, at 18:20, Freddie Cash wrote: >> >>> FreeBSD automounts the "hidden" .zfs filesystem hierarchy where >>> snapshots are "stored" automatically. =C2=A0No need for amd. >> >> The zfs man page reads: >> >> File =C2=A0system snapshots can be accessed under the ".zfs/snapshot" >> direc- tory in the root =C2=A0of =C2=A0the =C2=A0file =C2=A0system. =C2= =A0Snapshots =C2=A0are >> automatically mounted =C2=A0on 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). --=20 Freddie Cash fjwcash@gmail.com