Date: Sun, 15 Jul 2007 23:44:20 +1000 From: Norberto Meijome <freebsd@meijome.net> To: Peter Boosten <peter@boosten.org> Cc: freebsd-questions@freebsd.org Subject: Re: .snap Message-ID: <20070715234420.5520ce64@localhost> In-Reply-To: <469A0BC5.4060709@boosten.org> References: <4699C5B8.9000005@boosten.org> <20070715175850.52d6f45e@localhost> <469A0BC5.4060709@boosten.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 15 Jul 2007 13:57:57 +0200 Peter Boosten <peter@boosten.org> wrote: > Norberto Meijome wrote: > > On Sun, 15 Jul 2007 08:59:04 +0200 > > Peter Boosten <peter@boosten.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070715234420.5520ce64>