Adicionar Criar zpool com ZIL e CACHE
22
Criar-zpool-com-ZIL-e-CACHE.md
Normal file
22
Criar-zpool-com-ZIL-e-CACHE.md
Normal file
@@ -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 <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>`
|
||||||
Reference in New Issue
Block a user