Criar zpool com ZIL e CACHE #1

Closed
opened 2025-10-09 16:08:29 -03:00 by daniel.sato · 1 comment
Owner

Add cache and log to an existing pool
If you have a pool without cache and log you can still add both, or just one of them, at any time.

For example, let’s assume you got a good enterprise SSD with power-loss protection that you want to use for improving the overall performance of your pool.

As the maximum size of a log device should be about half the size of the installed physical memory, it means that the ZIL will most likely only take up a relatively small part of the SSD, the remaining space can be used as cache.

First you have to create two GPT partitions on the SSD with parted or gdisk.

Then you’re ready to add them to a pool:

Add both, a separate log device and a second-level cache, to an existing pool
zpool add -f <pool> log <device-part1> cache <device-part2>
Just replace , and with the pool name and the two /dev/disk/by-id/ paths to the partitions.

You can also add ZIL and cache separately.

Add a log device to an existing ZFS pool
zpool add <pool> log <log-device>

Add cache and log to an existing pool If you have a pool without cache and log you can still add both, or just one of them, at any time. For example, let’s assume you got a good enterprise SSD with power-loss protection that you want to use for improving the overall performance of your pool. As the maximum size of a log device should be about half the size of the installed physical memory, it means that the ZIL will most likely only take up a relatively small part of the SSD, the remaining space can be used as cache. First you have to create two GPT partitions on the SSD with parted or gdisk. Then you’re ready to add them to a pool: Add both, a separate log device and a second-level cache, to an existing pool ` zpool add -f <pool> log <device-part1> cache <device-part2>` Just replace <pool>, <device-part1> and <device-part2> with the pool name and the two /dev/disk/by-id/ paths to the partitions. You can also add ZIL and cache separately. Add a log device to an existing ZFS pool `zpool add <pool> log <log-device>`
daniel.sato added this to the ZFS com Log/L2Arc/SpecialVdev project 2025-10-09 16:08:29 -03:00
daniel.sato moved this to To Do in ZFS com Log/L2Arc/SpecialVdev on 2025-10-09 16:08:32 -03:00
daniel.sato moved this to Done in ZFS com Log/L2Arc/SpecialVdev on 2025-10-09 16:08:34 -03:00
Author
Owner

Transferido para WiKI

Transferido para WiKI
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: daniel.sato/Proxmox-8#1
No description provided.