zfs: using, then destroying a snapshot sometimes confuses zfs
stb at lassitu.de
Sun Feb 8 06:13:12 PST 2009
Sorry I can't be more precise at the moment, but while creating a
script that mirrors some zfs filesystems to another machine, I've now
twice gotten weird behaviour and then a panic.
The script iterates over a couple of zfs file systems:
- creates a snapshot with zfs snapshot tank/foo at mirror
- uses rsync to copy the contents of the snapshot with rsync /tank/
- destroys the snapshot with zfs destroy tank/foo at mirror
During testing the script, I twice got to a point where, after the
snapshot was created without an error message, rsync dropped out with
an error message similar to "invalid file handle" on /tank/foo/.zfs/
At that point, I could cd to /tank/foo/.zfs, but ls produced the same
I then tried to unmount the snapshot with zfs umount, and got a panic
(which I also didn't manage to capture).
Is this a generally known issue, or should I try to capture more
information when this happens again?
I'm running with these loader variables on amd64:
Stefan Bethke <stb at lassitu.de> Fon +49 151 14070811
More information about the freebsd-fs