Repository on LVM filesystem snapshot
Lasse Kliemann
lasse-list-mercurial-2009 at mail.plastictree.net
Sun Jul 5 14:17:22 UTC 2009
Under Linux, LVM allows to take a snapshot of a filesystem.
(Solaris had a similar feature for years.) This is used in order
to take a backup (with rsync, tar, etc.) reflecting the
filesystem's state at a particular time. AFAIK there is no other
way to get that on a live filesystem.
Although the snapshot is consistent in that respect that it does
reflect a state of the filesystem at a point of time, this does
not mean that is is also consistent from the viewpoint of
applications. For instance, suppose there is a Mercurial
repository on the filesystem, and the snapshot is taken during a
transaction or similar. Then the original filesystem is lost
(say, due to hardware failure) and the admin restores it using a
copy taken from the snapshot. Is it guaranteed that this gives
again a fully-functional repository?
I think it should, since the transaction might also be interupted
for a lot of other reasons.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20090705/ad838b7c/attachment-0001.asc>
More information about the Mercurial
mailing list