I'm used to df output where "blocks" is the size of the partition. With ZFS, in the past (which means OpenSolaris), "blocks" has always been the size of the pool for all the file systems in the pool. With FreeBSD, that seems not to be the case - the blocks vary, quite a lot even, and bear little resemblance to the size of the pool, which makes space management "interesting" and I'm hoping someone can explain what's going on so I can modify a script I wrote for OpenSolaris to essentially do a pool df so I can tell how much space is actually getting used in a pool. Thanks!
HJN3 is da3, making data a slightly less than 1T pool, yet:
Code:
<zbsd1.rdrop.com> [181] # dmesg | grep sector
da0: 30533MB (62533296 512 byte sectors: 255H 63S/T 3892C)
da1: 30560MB (62586880 512 byte sectors: 255H 63S/T 3895C)
da2: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C)
da3: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
da4: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
da5: 915715MB (1875385008 512 byte sectors: 255H 63S/T 116737C)
da6: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
da7: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
<zbsd1.rdrop.com> [182] # zpool status
...
pool: data
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
diskid/DISK-%20%20%20%20%20WD-WXJ1E23LHJN3 ONLINE 0 0 0
da4 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
da7 ONLINE 0 0 0
da6 ONLINE 0 0 0
HJN3 is da3, making data a slightly less than 1T pool, yet:
Code:
<zbsd1.rdrop.com> [179] # df -k
...
Filesystem 1K-blocks Used Avail Capacity Mounted on
data 509912321 521 509911800 0% /data
data/home 509911834 36 509911798 0% /data/home
data/home/alan 592652246 82740448 509911798 14% /data/home/alan
...
data/home/web/alan.batie.org 706028736 196116937 509911798 28% /data/home/web/alan.batie.org