ZFS快取
ZFS快取有二層
1.
RAM
如果有空間的RAM,ZFS會使用空間RAM的一半做為RAM DISK,做為cache,如果有使用到超過的RAM時,也會還回來
1.
SSD
可以再設定第二層,如果有設定使用另外的SSD的話…他可以用SSD做為cache,加速整體效能
分區有二部份
log – 設定為寫入快取 (ZIL)
cache – 設定為讀取快取 (L2ARC)
首先
將一塊disk劃成二個分區
root@pve:~# fdisk /dev/sdd
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-937703054, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-937703054, default 937703054): 437703054
Created a new partition 1 of type ‘Linux filesystem’ and of size 208.7 GiB.
Partition #1 contains a zfs_member signature.
Do you want to remove the signature? [Y]es/[N]o: Y
The signature will be removed by a write command.
Command (m for help): n
Partition number (2-128, default 2):
First sector (437703055-937703054, default 437704704):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (437704704-937703054, default 937703054):
Created a new partition 2 of type ‘Linux filesystem’ and of size 238.4 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.




