On Sun, 15 Jul 2007 13:57:57 +0200
Peter Boosten <[EMAIL PROTECTED]> wrote:

> Norberto Meijome wrote:
> > On Sun, 15 Jul 2007 08:59:04 +0200
> > Peter Boosten <[EMAIL PROTECTED]> 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.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to