KobRheTilla
used register
Hi Leute,
ich hab hier ein Problem. TLDR: Zwei Fileserver mit unterschiedlichen ZPool-Konfigurationen (HDD/RAID-Z2 - SSD/striped-mirrors) und unterschiedlichen FreeBSD-Versionen zeigen im ZFS mit identischem Dateibestand unterschiedliche Belegung, sowohl mittels du(1) als auch mit zfs list. Kann mir jemand erklären, warum?
System A
FreeBSD 8.2-STABLE
# zpool status
# du -hd1 /path/to/zfs
4.6G /path/to/zfs
# zfs get used,available,referenced,compressratio,quota,usedbydataset path/to/zfs
# cd /path/to/zfs
# df .
System B
FreeBSD 10.2-RELEASE-p5
# zpool status
# du -hd1 /path/to/zfs
5.5G /path/to/zfs
# zfs get used,available,referenced,compressratio,quota,usedbydataset path/to/zfs
# cd /path/to/zfs
# df .
Danke im Voraus,
Rob
ich hab hier ein Problem. TLDR: Zwei Fileserver mit unterschiedlichen ZPool-Konfigurationen (HDD/RAID-Z2 - SSD/striped-mirrors) und unterschiedlichen FreeBSD-Versionen zeigen im ZFS mit identischem Dateibestand unterschiedliche Belegung, sowohl mittels du(1) als auch mit zfs list. Kann mir jemand erklären, warum?
System A
FreeBSD 8.2-STABLE
# zpool status
Code:
config:
NAME STATE READ WRITE CKSUM
home ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
da1 ONLINE 0 0 0
da2 ONLINE 0 0 0
da3 ONLINE 0 0 0
da4 ONLINE 0 0 0
da5 ONLINE 0 0 0
raidz2-1 ONLINE 0 0 0
da6 ONLINE 0 0 0
da7 ONLINE 0 0 0
da8 ONLINE 0 0 0
da9 ONLINE 0 0 0
da10 ONLINE 0 0 0
# du -hd1 /path/to/zfs
4.6G /path/to/zfs
# zfs get used,available,referenced,compressratio,quota,usedbydataset path/to/zfs
Code:
NAME PROPERTY VALUE SOURCE
path/to/zfs used 4.44G -
path/to/zfs available 575M -
path/to/zfs referenced 4.44G -
path/to/zfs compressratio 1.00x -
path/to/zfs quota 5G local
path/to/zfs usedbydataset 4.44G -
# cd /path/to/zfs
# df .
Code:
Filesystem 1K-blocks Used Avail Capacity Mounted on
path/to/zfs 5242880 4653936 588944 89% /path/to/zfs
System B
FreeBSD 10.2-RELEASE-p5
# zpool status
Code:
config:
NAME STATE READ WRITE CKSUM
home ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gpt/mirror0-a ONLINE 0 0 0
gpt/mirror0-b ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
gpt/mirror1-a ONLINE 0 0 0
gpt/mirror1-b ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
gpt/mirror2-a ONLINE 0 0 0
gpt/mirror2-b ONLINE 0 0 0
mirror-3 ONLINE 0 0 0
gpt/mirror3-a ONLINE 0 0 0
gpt/mirror3-b ONLINE 0 0 0
# du -hd1 /path/to/zfs
5.5G /path/to/zfs
# zfs get used,available,referenced,compressratio,quota,usedbydataset path/to/zfs
Code:
NAME PROPERTY VALUE SOURCE
path/to/zfs used 5.33G -
path/to/zfs available 691M -
path/to/zfs referenced 5.33G -
path/to/zfs compressratio 1.33x -
path/to/zfs quota 6G local
path/to/zfs usedbydataset 5.33G -
# cd /path/to/zfs
# df .
Code:
Filesystem 1K-blocks Used Avail Capacity Mounted on
path/to/zfs 6291456 5583724 707732 89% /path/to/zfs
Danke im Voraus,
Rob