I have a zpool with one dataset and a handful of snapshots. I cannot delete two of the snapshots. The message I get is "dataset is busy". Neither fuser or lsof show anything holding open the .zfs/snapshot/<sanpshot name> directory. What can cause this ?
xxx> uname -a SunOS nyc-sed3 5.10 Generic_142909-17 sun4u sparc SUNW,SPARC-Enterprise xxx> zpool upgrade This system is currently running ZFS pool version 22. All pools are formatted using this version. xxx> zpool get all zpool-01 NAME PROPERTY VALUE SOURCE zpool-01 size 74.9T - zpool-01 capacity 10% - zpool-01 altroot - default zpool-01 health ONLINE - zpool-01 guid 6976165213827467407 default zpool-01 version 22 default zpool-01 bootfs - default zpool-01 delegation on default zpool-01 autoreplace off default zpool-01 cachefile - default zpool-01 failmode wait default zpool-01 listsnapshots on default zpool-01 autoexpand off default zpool-01 free 67.2T - zpool-01 allocated 7.75T - xxx> zfs upgrade This system is currently running ZFS filesystem version 4. All filesystems are formatted with the current version. xxx> zfs get all zpool-01/dataset-01 NAME PROPERTY VALUE SOURCE zpool-01/dataset-01 type filesystem - zpool-01/dataset-01 creation Tue Jan 25 10:02 2011 - zpool-01/dataset-01 used 4.60T - zpool-01/dataset-01 available 39.3T - zpool-01/dataset-01 referenced 1.09M - zpool-01/dataset-01 compressratio 1.54x - zpool-01/dataset-01 mounted yes - zpool-01/dataset-01 quota none default zpool-01/dataset-01 reservation none default zpool-01/dataset-01 recordsize 32K inherited from zpool-01 zpool-01/dataset-01 mountpoint /zpool-01/dataset-01 default zpool-01/dataset-01 sharenfs off default zpool-01/dataset-01 checksum on default zpool-01/dataset-01 compression on inherited from zpool-01 zpool-01/dataset-01 atime on default zpool-01/dataset-01 devices on default zpool-01/dataset-01 exec on default zpool-01/dataset-01 setuid on default zpool-01/dataset-01 readonly off default zpool-01/dataset-01 zoned off default zpool-01/dataset-01 snapdir hidden default zpool-01/dataset-01 aclmode passthrough inherited from zpool-01 zpool-01/dataset-01 aclinherit passthrough inherited from zpool-01 zpool-01/dataset-01 canmount on default zpool-01/dataset-01 shareiscsi off default zpool-01/dataset-01 xattr on default zpool-01/dataset-01 copies 1 default zpool-01/dataset-01 version 4 - zpool-01/dataset-01 utf8only off - zpool-01/dataset-01 normalization none - zpool-01/dataset-01 casesensitivity sensitive - zpool-01/dataset-01 vscan off default zpool-01/dataset-01 nbmand off default zpool-01/dataset-01 sharesmb off default zpool-01/dataset-01 refquota none default zpool-01/dataset-01 refreservation none default zpool-01/dataset-01 primarycache all default zpool-01/dataset-01 secondarycache all default zpool-01/dataset-01 usedbysnapshots 4.60T - zpool-01/dataset-01 usedbydataset 1.09M - zpool-01/dataset-01 usedbychildren 0 - zpool-01/dataset-01 usedbyrefreservation 0 - zpool-01/dataset-01 logbias latency default xxx> zfs list | grep zpool-01/dataset-01 zpool-01/dataset-01 4.60T 39.3T 1.09M /zpool-01/dataset-01 zpool-01/dataset-01@1299636001 117G - 1.12T - zpool-01/dataset-01@1300233615 3.48T - 4.48T - zpool-01/dataset-01@1301950939 0 - 1.02M - zpool-01/dataset-01@1301951162 0 - 1.02M - zpool-01/dataset-01@1302004805 0 - 1.09M - zpool-01/dataset-01@1302005162 0 - 1.09M - zpool-01/dataset-01@1302005414 0 - 1.09M - xxx> sudo zfs destroy zpool-01/dataset-01@1299636001 Password: cannot destroy 'zpool-01/dataset-01@1299636001': dataset is busy xxx> sudo zfs destroy zpool-01/dataset-01@1300233615 cannot destroy 'zpool-01/dataset-01@1300233615': dataset is busy xxx> -- {--------1---------2---------3---------4---------5---------6---------7---------} Paul Kraus -> Senior Systems Architect, Garnet River ( http://www.garnetriver.com/ ) -> Sound Coordinator, Schenectady Light Opera Company ( http://www.sloctheater.org/ ) -> Technical Advisor, RPI Players _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss