zfs list
這次 OS 裝在 rpool 底下,可以看到先前隨意試沒記錄的結果,長出來哪些目錄:
水一下,觀察 /var/lib/vz 底下放的是
接下來摸索一下
~# zfs help
~# zfs version
zfs-2.2.3-pve2
zfs-kmod-2.2.3-pve2
~# zfs get compression rpool
NAME PROPERTY VALUE SOURCE
rpool compression on local
~# zfs get mounted rpool
NAME PROPERTY VALUE SOURCE
rpool mounted yes -
~# zfs get type rpool
NAME PROPERTY VALUE SOURCE
rpool type filesystem -
~# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
rpool 292G 21.4G 271G - - 0% 7% 1.00x ONLINE -
~# zpool status
pool: rpool
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
nvme-eui.XXX-part3 ONLINE 0 0 0
ata-XXX3-part3 ONLINE 0 0 0
errors: No known data errors
目前只有一個 rpool , 顯示同
zpool status rpool
~# zpool status -x
all pools are healthy
其實好奇預設開壓縮會是用什麼壓縮方式,只有顯示 on
~# zfs get all rpool | grep compress
rpool compressratio 1.32x -
rpool compression on local
rpool refcompressratio 1.00x -
查論壇認為是 LZ4在2020年後被用做預設壓縮格式:
https://forum.proxmox.com/threads/what-is-the-zfs-defaultcompression-when-i-say-on.38730/
https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Workload%20Tuning.html#compression
看到這 zfs 的文件也要消化一下:為了降低風險,相關硬體都還是建議用 datacenter級的產品為佳…
就這樣再趕了一篇出來,自己追趕…