ZFS on Proxmox

Adding NVMe L2ARC and SILOG to ZFS

L2ARC and SILOG are the best was to get performance from a ZFS filesystem. This will show how to add in two NVMe drives and use them as your L2ARC and SILOG. These instructions where done on Debian linux but should apply to just about any version.

Partition the NVMe Drives:

# cfdisk /dev/nvme0n1

Using 500Gb NVMe drives, partition it so that you have two partitions of type “Solaris /usr & Apple ZFS“. The SILOG partition only caches meta data and does not need to be large so 6G is fine for that partition, the rest we will use for L2ARC.

Here is a view of what my partition looks like:

Make sure to partition both of the NVMe drives ( /dev/nvme0n1 and /dev/nvme1n1 ). After you are done that, you can use lsblk to view the drives and see if the NVMe drives show the partitions under them.

Adding the L2ARC and SILOG to the existing pool

The two following command will add in the L2ARC and SILOG to the existing pool and ZFS will start using it. The first command add the L2ARC into the pool as a concatenated cache and the second line created the SILOG as a mirror.

# zpool add -f rpool cache /dev/nvme0n1p1 /dev/nvme1n1p1
# zpool add -f rpool log mirror /dev/nvme0n1p2 /dev/nvme1n1p2
# zpool status -v

After you are done, you should see the L2ARC and SILOG in your zpool.

Leave a Comment

Your email address will not be published. Required fields are marked *