暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Proxmox ZFS設定SSD做為快取

原创 ming64 2020-10-30
5422

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.

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论