Date: Thu, 12 Jan 2006 16:30:02 -0500 (EST) From: user <user@dhp.com> To: freebsd-fs@freebsd.org Subject: preventing deadlocks in snapshot directories - unexplained Message-ID: <Pine.LNX.4.21.0601121622330.8684-100000@shell.dhp.com>
next in thread | raw e-mail | index | archive | help
I have asked this before, but nobody answered ... If you have multiple snapshots, how do you segregate them in order to avoid the deadlocks that the ".snap" directory is supposed to fix ? I understand why a snapshot is created in (mount)/.snap - but what if I have multiple snapshots running simultaneously ? My instinct was that they just needed to be in different, non-recursive directories - like this: /.snap/snap1/snapshot_file /.snap/snap2/snapshot_file /.snap/snap3/snapshot_file However, I just noticed that when I: cd /.snap rm -rf snap3 the _entire_ /.snap directory locks up until that command completes. If I go in with another shell and: cd /.snap ls -asl that command hangs until the deletion of /.snap/snap3 completes. So, this leads me to conclude that actually, I need to do this: /.snap/snapshot_file /.snap2/snapshot_file /.snap3/snapshot_file Am I correct ? Why did my first strategy fail ? Why did /.snap lock up even when the snapshot files were a full directory level deeper ? Is there _anything else_ I should know about running multiple snapshots ? Thanks.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0601121622330.8684-100000>