Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 2010 10:12:36 +0200
From:      Willem Jan Withagen <wjw@digiware.nl>
To:        fs@freebsd.org
Subject:   ZFS destroy snapshot does not work
Message-ID:  <4CBD52F4.2010105@digiware.nl>

next in thread | raw e-mail | index | archive | help
Hi,

Probably due to too many reboots when the system was livelocked.
But now I have the following problem.

/sbin/zfs destroy -r zfsraid/backups@Monday
cannot destroy 'zfsraid/backups@Monday': dataset does not exist
no snapshots destroyed
/sbin/zfs snapshot -r zfsraid/backups@Monday
cannot create snapshot 'zfsraid/backups@Monday': dataset is busy
no snapshots were created

/sbin/zfs destroy -r zfsraid/home@$DATE
cannot destroy 'zfsraid/home@Monday': dataset does not exist
no snapshots destroyed
/sbin/zfs snapshot -r zfsraid/home@Monday
cannot create snapshot 'zfsraid/home@Monday': dataset is busy
no snapshots were created

Where this used to work(tm)....

I can iterate over all filesystems and then destroy/create a backup.

Except for one:
# zfs list -r zfsraid/home/trouble
NAME                          USED  AVAIL  REFER  MOUNTPOINT
zfsraid/home/trouble          149G  3.49T   148G  none
zfsraid/home/trouble@Sunday  1.06G      -   148G  -

# zfs destroy -r zfsraid/home/trouble
cannot destroy 'zfsraid/home/trouble@Sunday': dataset already exists
Exit 1
# zfs destroy zfsraid/home/trouble@Sunday
cannot destroy 'zfsraid/home/trouble@Sunday': dataset already exists
Exit 1
# zfs destroy -r zfsraid/home/trouble@Sunday
cannot destroy 'zfsraid/home/trouble@Sunday': snapshot is cloned
no snapshots destroyed

But of this last fact I do not remember cloning anything. Nor can I find 
any suggestions as to the filesystem being cloned.....

So how do I get ride of this rouge filesystem.

There is something like zdb, but the manual page is purposely vague on 
how to use that...

Thanx,
--WjW





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CBD52F4.2010105>