ZFS log and cache

macamba

Renowned Member
Mar 8, 2011
96
5
73
I am trying to create a zfs log and cache with gdisk but I am stuck with two things. But I need confirmation about my 'procedure' and I am stuck at choosing the filesystem? Your instruction says:
"Add cache and log to an existing pool
If you have a pool without cache and log. First partition the SSD in 2 partition with parted or gdisk
Always use GPT partition tables.
The maximum size of a log device should be about half the size of physical memory, so this is usually quite small. The rest of the SSD can be used as cache.
# zpool add -f <pool> log <device-part1> cache <device-part2>"

So my procedure looks at follow:
1) gdisk /dev/sda
2) Option 'O create a new empty GUID partition table'
3) Option 'N add a new partition' but what filesystem should I choose for the ZFS log and cache device? 8300 Linux filesystem, ef01 MBR partition scheme, a504 FreeBSD ZFS, other option? Linux ZFS is no option provided...
4) zpool add -f zpool log /dev/sda1 cache /dev/sda2
 
3) Option 'N add a new partition' but what filesystem should I choose for the ZFS log and cache device? 8300 Linux filesystem, ef01 MBR partition scheme, a504 FreeBSD ZFS, other option? Linux ZFS is no option provided...

It does not matter, just choose one. There is also no Linux ZFS, the entry that is picked by the default install is 'Solaris /usr & Apple ZFS'.
 
It does not matter, just choose one. There is also no Linux ZFS, the entry that is picked by the default install is 'Solaris /usr & Apple ZFS'.
The default suggest by gdisk is 8300 linux filessystem so I use this. So I understand that should do as log and cache.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!