Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2005 11:52:14 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        user <user@dhp.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: creating snapshot capable ufs2 filesystems _after the fact_
Message-ID:  <20051020165213.GC4225@dan.emsphone.com>
In-Reply-To: <Pine.LNX.4.21.0510201234390.8180-100000@shell.dhp.com>
References:  <Pine.LNX.4.21.0510201234390.8180-100000@shell.dhp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 20), user said:
> I was just looking at the man page for newfs, and the new "-n" option
> ... basically if you newfs with -n, a .snap directory is not created 
> in the new filesystem, and thus that new filesystem will not support
> snapshots.
> 
> Does this mean that if I simply `mkdir .snap` in the root of a
> filesystem that suddenly it is snapshot capable ?  That is to say, is
> that .snap directory simply a plain old directory, and having a ufs2
> filesystem support or not support snapshots is only dependent on
> simply having that directory in place ?

Snapshots are always enabled, and can be placed anywhere.  .snap is
used by background fsck, and newfs creates that directory so that it's
guaranteed to exist when fsck needs it.  You can use create it manually
if you want, or create another directory to put your snapshots in.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051020165213.GC4225>