I am in the process of upgrading from FreeBSD-8.1 with ZFSv14 to
FreeBSD-8.2 with ZFSv15 and, following a crash, have run into a
problem with ZFS claiming a snapshot or clone exists that I can't
find.

I was transferring a set of snapshots from my primary desktop to a
backup host (both ZFSv14) using:
  zfs send -I zroot/home@20110210bu -R zroot/home@20110317bu | \
    ssh backup_host zfs recv -vd zroot
and whilst that was in progress, I did a 'df -k' on backup_host.
At this point, both the df and the zfs recv wedged unkillably.

"zfs list" showed that the last snapshot on the destination system
was zroot/home@20110309, so I did a rollback to it (which reported
no error) and ran:
  zfs send -I zroot/home@20110309 -R zroot/home@20110317bu | \
    ssh backup_host zfs recv -vd zroot
which reported:
receiving incremental stream of zroot/home@20110310 into zroot/home@20110310
cannot restore to zroot/home@20110310: destination already exists
warning: cannot send 'zroot/home@20110310': Broken pipe

I cannot find anything by that name (or any snapshots later than
zroot/home@20110309 or any clones) and cannot destroy
zroot/home@20110309:

# zfs rollback zroot/home@20110309
# zfs destroy zroot/home@20110309
cannot destroy 'zroot/home@20110309': dataset already exists
# zfs destroy -r zroot/home@20110309
cannot destroy 'zroot/home@20110309': snapshot is cloned
no snapshots destroyed
# zfs destroy -R zroot/home@20110309
cannot destroy 'zroot/home@20110309': snapshot is cloned
no snapshots destroyed
# zfs destroy -frR zroot/home@20110309
cannot destroy 'zroot/home@20110309': snapshot is cloned
no snapshots destroyed
# zfs list -t all |grep home@20110310
# zfs get all | grep origin
# zfs get all | grep home@20110310
# 

I have tried rebooting, upgrading the pool from v14 to v15 and
export/import without success.  Does anyone have any other suggestions?

"zpool history -i" looks like:

2011-03-17.08:02:57 zfs rollback zroot/home@20110210bu
2011-03-17.08:02:59 zfs recv -vd zroot
2011-03-17.08:02:59 [internal replay_inc_sync txg:872817696] dataset = 973
2011-03-17.08:02:59 [internal reservation set txg:872817697] 0 dataset = 469
...
2011-03-17.08:09:41 [internal snapshot txg:872817974] dataset = 1203
2011-03-17.08:09:42 [internal replay_inc_sync txg:872817975] dataset = 1208
2011-03-17.08:09:42 [internal reservation set txg:872817976] 0 dataset = 469
2011-03-17.08:09:42 [internal property set txg:872817977] compression=10 
dataset = 469
2011-03-17.08:09:42 [internal property set txg:872817977] mountpoint=/home 
dataset = 469
2011-03-17.08:09:50 [internal destroy_begin_sync txg:872817980] dataset = 1208
2011-03-17.08:09:51 [internal destroy txg:872817983] dataset = 1208
2011-03-17.08:09:51 [internal reservation set txg:872817983] 0 dataset = 0
2011-03-17.08:09:51 [internal snapshot txg:872817984] dataset = 1212
2011-03-17.08:09:52 [internal replay_inc_sync txg:872817985] dataset = 1217
2011-03-17.08:09:52 [internal reservation set txg:872817986] 0 dataset = 469
2011-03-17.08:09:52 [internal property set txg:872817987] compression=10 
dataset = 469
2011-03-17.08:09:52 [internal property set txg:872817987] mountpoint=/home 
dataset = 469
<system wedged here>
2011-03-17.08:35:01 [internal rollback txg:872818038] dataset = 469
2011-03-17.08:35:01 zfs rollback zroot/home@20110309
2011-03-17.08:35:14 zfs recv -vd zroot
2011-03-17.08:36:37 [internal pool scrub txg:872818059] func=1 mintxg=0 
maxtxg=872818059
2011-03-17.08:36:41 zpool scrub zroot
2011-03-17.09:17:27 [internal pool scrub done txg:872818513] complete=1
2011-03-17.09:19:44 [internal rollback txg:872818542] dataset = 469
2011-03-17.09:19:45 zfs rollback zroot/home@20110309
2011-03-17.10:51:38 [internal rollback txg:872819603] dataset = 469
2011-03-17.10:51:39 zfs rollback zroot/home@20110309
2011-03-17.10:54:11 zpool upgrade zroot
2011-03-17.10:59:12 [internal rollback txg:872819688] dataset = 469
2011-03-17.10:59:12 zfs rollback zroot/home@20110309
2011-03-17.11:16:38 [internal rollback txg:872819895] dataset = 469
2011-03-17.11:16:39 zfs rollback zroot/home@20110309
2011-03-17.11:16:54 zpool export zroot
2011-03-17.11:17:31 zpool import zroot
2011-03-17.11:30:13 [internal rollback txg:872819992] dataset = 469
2011-03-17.11:30:13 zfs rollback zroot/home@20110309
2011-03-17.12:01:02 zfs recv -vd zroot
2011-03-17.12:03:57 [internal rollback txg:872820399] dataset = 469
2011-03-17.12:03:57 zfs rollback zroot/home@20110309

-- 
Peter Jeremy

Attachment: pgpQBYUCWUiu1.pgp
Description: PGP signature

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to