Nathanael Burton
2010-Jan-23 18:23 UTC
[zfs-discuss] zfs destroy snapshot: dataset already exists?
Hi, I recently upgraded from 2009.06 to b131 (mainly to get dedup support). The upgrade to b131 went fairly smoothly, but then I ran into an issue trying to get the old datasets snapshotted and send/recv''d to dedup the existing data. Here''s the steps I ran: zfs snapshot -r data/media at prereplicate zfs create -o mountpoint=none data/media.new zfs send -R data/media at prereplicate | zfs recv -du data/media.new The zfs send/recv then failed with an error about a "dataset already exists", unfortunately I don''t have the exact error message. Then I tried to cleanup the data/media.new dataset to try it again and ran into issues: zfs destroy -r data/media.new cannot destroy ''data/media.new/media/video at zfs-auto-snap:hourly-2010-01-18-09:00'': dataset already exists So I try to get rid of the snapshot: zfs destroy -r data/media.new/media/video at zfs-auto-snap:hourly-2010-01-18-09:00 cannot destroy ''data/media.new/media/video at zfs-auto-snap:hourly-2010-01-18-09:00'': snapshot is cloned no snapshots destroyed Check for clones: zfs get origin | grep data/media.new/media/video at zfs-auto-snap:hourly-2010-01-18-09:00 data/media.new/media/video at zfs-auto-snap:hourly-2010-01-18-09:00 origin - I can''t seem to figure out why it won''t let me get rid of the snapshot or how it got messed up in the first place I did see evidence in a Nexenta forum of similar issues: http://www.mail-archive.com/gnusol-devel at lists.sonic.net/msg00566.html Any ideas? Thanks, Nate