Michael Barto
2006-Nov-28 04:32 UTC
[zfs-discuss] Why Does zfs list and zpool list give different answers
Just joined this group, this may have been asked. But after creating two zfs file system, I used ''zfs list'' and ''zpool list''. Why are the answers different. Is this a bug? Example: # zfs list NAME USED AVAIL REFER MOUNTPOINT archive 78K 2.93G 24.5K /archive webdocs 77K 1.95G 24.5K /webdocs # zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT archive 2.98G 81K 2.98G 0% ONLINE - webdocs 1.98G 80K 1.98G 0% ONLINE - # -- ------------------------------------------------------------------------ *Michael Barto* Software Architect LogiQwest Circle LogiQwest Inc. 16458 Bolsa Chica Street, # 15 Huntington Beach, CA 92649 http://www.logiqwest.com/ mbarto at logiqwest.com <mailto:mbarto at logiqwest.com> Tel: 714 377 3705 Fax: 714 840 3937 Cell: 714 883 1949 *''tis a gift to be simple* ------------------------------------------------------------------------ This e-mail may contain LogiQwest proprietary information and should be treated as confidential. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20061127/c9347db5/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: circle.gif Type: image/gif Size: 651 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20061127/c9347db5/attachment.gif>
Eric Schrock
2006-Nov-28 06:43 UTC
[zfs-discuss] Why Does zfs list and zpool list give different answers
See zpool(1M): This command reports actual physical space available to the storage pool. The physical space can be different from the total amount of space that any contained datasets can actually use. The amount of space used in a raidz configuration depends on the characteristics of the data being written. In addition, ZFS reserves some space for internal accounting that the zfs(1M) command takes into account, but the zpool command does not. For non-full pools of a reasonable size, these effects should be invisible. For small pools, or pools that are close to being completely full, these discrepancies may become more noticeable. - Eric On Mon, Nov 27, 2006 at 08:32:52PM -0800, Michael Barto wrote:> Just joined this group, this may have been asked. > But after creating two zfs file system, I used ''zfs list'' and ''zpool > list''. Why are the answers different. Is this a bug? Example: > > # zfs list > NAME USED AVAIL REFER MOUNTPOINT > archive 78K 2.93G 24.5K /archive > webdocs 77K 1.95G 24.5K /webdocs > # zpool list > NAME SIZE USED AVAIL CAP HEALTH ALTROOT > archive 2.98G 81K 2.98G 0% ONLINE - > webdocs 1.98G 80K 1.98G 0% ONLINE - > # > > -- > ------------------------------------------------------------------------ > *Michael Barto* > Software Architect > > LogiQwest Circle > LogiQwest Inc. > 16458 Bolsa Chica Street, # 15 > Huntington Beach, CA 92649 > http://www.logiqwest.com/ > > mbarto at logiqwest.com <mailto:mbarto at logiqwest.com> > Tel: 714 377 3705 > Fax: 714 840 3937 > Cell: 714 883 1949 > > *''tis a gift to be simple* > ------------------------------------------------------------------------ > This e-mail may contain LogiQwest proprietary information and should be > treated as confidential. >> _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock