Hi Ned,

The difference is that for mirrored pools, zpool list displays the
actual available space so that if you have a mirrored pool of two
30-GB disks, zpool list will display 30 GBs, which should jibe with
the zfs list output of available space for file systems.

For RAIDZ pools, zpool list displays the RAW pool space and zfs list
displays actual available pool space for file systems.

The inconsistency in the way zpool list displays AVAIL pool space for
RAIDZ and mirrored pools has been around for awhile.

http://hub.opensolaris.org/bin/view/Community+Group+zfs/faq#HZFSAdministrationQuestions
Why doesn't the space that is reported by the zpool list command and the zfs list command match?

Cindy
Edward Ned Harvey wrote:
From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss-
boun...@opensolaris.org] On Behalf Of Freddie Cash

"zpool list" output show raw disk usage, including all redundant copies of
metadata, all redundant copies of data blocks, all redundancy accounted for
(mirror, raidz), etc.

Perhaps that's true after a certain version?  It's not true in the latest 
solaris 10.  Here are my results on a fully patched solaris 10 installation, 
installed from the latest disc (10u9):

[root@foo ~]# zpool status rpool
  pool: rpool
 state: ONLINE
 scrub: none requested
config:

        NAME                         STATE     READ WRITE CKSUM
        rpool                        ONLINE       0     0     0
          mirror-0                   ONLINE       0     0     0
            c0t5000C5003424396Bd0s0  ONLINE       0     0     0
            c0t5000C5002637311Fd0s0  ONLINE       0     0     0

errors: No known data errors

[root@foo ~]# zpool list rpool
NAME    SIZE  ALLOC   FREE    CAP  HEALTH  ALTROOT
rpool  97.5G  9.22G  88.3G     9%  ONLINE  -

[root@foo ~]# zfs list rpool
NAME    USED  AVAIL  REFER  MOUNTPOINT
rpool  11.3G  84.6G  32.5K  /rpool

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to