I think I'm seeing an error in the output from zfs list with regards
to snapshot space utilization.

In the first list, there are 818M used by snapshots, but the snaps
listed aren't using anything close to that amount. If I destroy the
first snapshot, then the second one suddenly jumps in space used to
813M, which seems about right and the USEDSNAP column makes sense.

Is this a bug in snapshot accounting or reporting, or is there
something I missed?

r...@basestar:/export/vmware# zfs list -t all -r -o space
tank/export/volumes/caliban
NAME
 AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
tank/export/volumes/caliban
 3.09T  1.59G      818M    813M              0          0
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-10:00
     -  2.88M         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-11:00
     -  2.80M         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-12:00
     -   200K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-12:15
     -   174K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-12:30
     -   252K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-12:45
     -   340K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-13:00
     -      0         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-13:00
     -      0         -       -              -          -
r...@basestar:/export/vmware# zfs destroy
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-10:00
r...@basestar:/export/vmware# zfs list -t all -r -o space
tank/export/volumes/caliban
NAME
 AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
tank/export/volumes
 3.09T  39.3G         0   47.1K              0      39.3G
tank/export/volumes/caliban
 3.09T  1.59G      815M    813M              0          0
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-11:00
     -   813M         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-12:00
     -   200K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-12:15
     -   174K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-12:30
     -   252K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-12:45
     -   340K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-13:00
     -      0         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-13:00
     -      0         -       -              -          -
r...@basestar:/export/vmware# zfs destroy
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-11:00
r...@basestar:/export/vmware# zfs list -t all -r -o space
tank/export/volumes/caliban
NAME
 AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
tank/export/volumes/caliban
 3.09T   815M     2.04M    813M              0          0
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-12:00
     -   200K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-12:15
     -   174K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-12:30
     -   252K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-12:45
     -   340K         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:hourly-2010-03-19-13:00
     -      0         -       -              -          -
tank/export/volumes/cali...@zfs-auto-snap:frequent-2010-03-19-13:00
     -      0         -       -              -          -


--
Brandon High : bh...@freaks.com
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to