From 821ea2192cfa1f62bf76bd2c0615bd709a56c7d0 Mon Sep 17 00:00:00 2001 From: Daniel Sato Date: Thu, 9 Oct 2025 16:13:01 -0300 Subject: [PATCH] Adicionar Criar zpool com ZIL e CACHE --- Criar-zpool-com-ZIL-e-CACHE.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Criar-zpool-com-ZIL-e-CACHE.md diff --git a/Criar-zpool-com-ZIL-e-CACHE.md b/Criar-zpool-com-ZIL-e-CACHE.md new file mode 100644 index 0000000..afd1b9f --- /dev/null +++ b/Criar-zpool-com-ZIL-e-CACHE.md @@ -0,0 +1,22 @@ +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 log cache ` + +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 log ` \ No newline at end of file