From owner-freebsd-questions@FreeBSD.ORG Sun Jul 15 13:44:25 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 09E5016A400 for ; Sun, 15 Jul 2007 13:44:25 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id C9C0013C4CB for ; Sun, 15 Jul 2007 13:44:24 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 28383 invoked from network); 15 Jul 2007 08:44:24 -0500 Received: from 203-158-59-146.dyn.iinet.net.au (HELO localhost) (203.158.59.146) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 15 Jul 2007 08:44:24 -0500 Date: Sun, 15 Jul 2007 23:44:20 +1000 From: Norberto Meijome To: Peter Boosten Message-ID: <20070715234420.5520ce64@localhost> In-Reply-To: <469A0BC5.4060709@boosten.org> References: <4699C5B8.9000005@boosten.org> <20070715175850.52d6f45e@localhost> <469A0BC5.4060709@boosten.org> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.13; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: .snap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2007 13:44:25 -0000 On Sun, 15 Jul 2007 13:57:57 +0200 Peter Boosten wrote: > Norberto Meijome wrote: > > On Sun, 15 Jul 2007 08:59:04 +0200 > > Peter Boosten wrote: > > > >> Hi all, > >> > >> Is it possible to mount a filesystem with it creating a .snap directory? > >> > >> I mount a different partition for mysql under /var/db/mysql, but since > >> there's a .snap directory, mysql thinks there's a .snap database > > > > :-D > > > >> (the > >> name is actually a bit complexer). > > > > You can tell mysql where to look for pretty much anything via my.cnf, or > > rc.conf settings (i think you want to do the latter). > > - the /var/db/mysql is the default, but by no means unchangeable. > > > > for example, mount your partition in /mnt/dbs , make a > > directory /mnt/dbs/mysql and point mysql to this. the .snap will be > > in /mnt/dbs . > > > Thanks for the suggestion, Norberto, but that doesn't answer my > question: is it possible to mount a partition _without_ it creating a > .snap directory? ah, sorry. man newfs [...] -n Do not create a .snap directory on the new file system. The resulting file system will not support snapshot generation, so dump(8) in live mode and background fsck(8) will not function properly. The traditional fsck(8) and offline dump(8) will work on the file system. This option is intended primarily for memory or vnode-backed file systems that do not require dump(8) or fsck(8) support. but i am not so sure it's such a good idea if u plan to use dump (unless u can assure you won't have any writes to the partition while dump is working ) B _________________________ {Beto|Norberto|Numard} Meijome Never attribute to malice what can adequately be explained by incompetence. I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.