[zfs-discuss] Space usage
I'm just uploading all my data to my server and the space used is much more than what i'm uploading; Documents = 147MB Videos = 11G Software= 1.4G By my calculations, that equals 12.547T, yet zpool list is showing 21G as being allocated; NAMESIZE ALLOC FREECAP DEDUP HEALTH ALTROOT dpool 27.2T 21.2G 27.2T 0% 1.00x ONLINE - It doesn't look like any snapshots have been taken, according to zfs list -t snapshot. I've read about the 'copies' parameter but I didn't specify this when creating filesystems and I guess the default is 1? Any ideas? -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] Space usage
On Sun, Aug 14, 2011 at 10:32 AM, Lanky Doodle lanky_doo...@hotmail.comwrote: I'm just uploading all my data to my server and the space used is much more than what i'm uploading; Documents = 147MB Videos = 11G Software= 1.4G By my calculations, that equals 12.547T, yet zpool list is showing 21G as being allocated; NAMESIZE ALLOC FREECAP DEDUP HEALTH ALTROOT dpool 27.2T 21.2G 27.2T 0% 1.00x ONLINE - It doesn't look like any snapshots have been taken, according to zfs list -t snapshot. I've read about the 'copies' parameter but I didn't specify this when creating filesystems and I guess the default is 1? Any ideas? 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. This is the total number of physical bytes used on the disk. zfs list output shows the amount of usable pool storage allocated to the data. This is more indicative of what the end-user believes they are using. This doesn't include redundancy or anything like that, but does include some compression and other info (I believe). There's an excellent post in the archives that shows how ls -l, du, df, zfs list, and zpool list work, and what each sees as disk usage. Don't remember exactly who wrote it, though. It should definitely be added to the ZFS Admin Guide, though. :) -- Freddie Cash fjwc...@gmail.com ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] Space usage
Thanks fj. Should have realized that when it showed 27T available, which is the raw total size before raid-z2! -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] Space usage
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 rpoolONLINE 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 NAMESIZE ALLOC FREECAP HEALTH ALTROOT rpool 97.5G 9.22G 88.3G 9% ONLINE - [root@foo ~]# zfs list rpool NAMEUSED 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
Re: [zfs-discuss] Space usage
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 rpoolONLINE 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 NAMESIZE ALLOC FREECAP HEALTH ALTROOT rpool 97.5G 9.22G 88.3G 9% ONLINE - [root@foo ~]# zfs list rpool NAMEUSED 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