Harry Putnam wrote:
I think this has probably been discussed here.. but I'm getting
confused about how to determine actual disk usage of zfs filesystems.
Here is an example:
$ du -sb callisto
46744 callisto
$ du -sb callisto/.zfs/snapshot
86076 callisto/.zfs/snapshot
Two questions then.
I do need to add those two to get the actual disk usage right?
Is something wrong here... there are only 2 snapshots there.
And I've seen it mentioned repeatedly about how little space snapshots
take.
'du' does a stat() of each file it finds; it sees and reports
identical files in snapshots as full size. 'rsync' will also
work on all copies of a file.
To see space usage, you need to ask zfs itself:
NAME USED AVAIL REFER MOUNTPOINT
rpool/ROOT 10.4G 7.93G 18K /rpool/ROOT
rpool/r...@rob 0 - 18K -
The snapshot I just took and named after myself doesn't yet
take any space for itself. If I delete a file, e.g. my
/var/crash/* files that I'm done with, I *may* see space
start to be accounted to the snapshot.
Rob T
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss