apt-clone fails to create snapshot
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Nexenta Operating System |
Confirmed
|
High
|
Unassigned | |
Bug Description
When trying to run an upgrade apt-clone fails to create the snapshot.
apt-clone.
zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
syspool/
syspool/
syspool/
syspool/
syspool/
syspool/
| Tim Spriggs (tim-tajinc) wrote : | #1 |
| Tim Spriggs (tim-tajinc) wrote : | #2 |
nexenta.org is reliably reproducing the snapshot bug now.
root@nexenta:~# zfs snapshot tank/ncp2/
root@nexenta:~# zfs destroy tank/ncp2/
root@nexenta:~# zfs list -H -o name -tall -r tank/ncp2/
tank/ncp2/
tank/ncp2/
tank/ncp2/
tank/ncp2/
root@nexenta:~# zfs destroy tank/ncp2/
cannot destroy 'tank/ncp2/
Running the destroy command repeatedly gives the same error. Attempting to look in the snapshot directory yields:
root@nexenta:
total 3
dr-xr-xr-x 4 root root 4 Dec 30 18:58 .
dr-xr-xr-x 3 root root 3 Dec 30 18:58 ..
drwxr-xr-x 8 root sys 12 Jan 1 15:13 hardy-testing
drwxr-xr-x 9 root sys 13 Feb 9 21:12 latest
?--------- ? ? ? ? ? previous
Finally, renaming the snapshot seems to work but removing the renamed snapshot still provides no effect:
root@nexenta:~# zfs rename tank/ncp2/
root@nexenta:~# zfs destroy tank/ncp2/
cannot destroy 'tank/ncp2/
root@nexenta:~# zfs list tank/ncp2/
NAME USED AVAIL REFER MOUNTPOINT
tank/ncp2/
the fact that "zfs rename" works may provide a work-around for some applications (like apt-clone) if the user is careful. The cause of the problem is still not known.

I've seen similar errors while setting snapshots but they are intermittent in the latest build