zfs_root_cache
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
zfs_root_cache [2020/11/30 11:08] – memeruiz | zfs_root_cache [2020/12/09 09:00] – [Create a ZFS pool for main big data!] memeruiz | ||
---|---|---|---|
Line 130: | Line 130: | ||
==== Create a ZFS pool for main big data! ==== | ==== Create a ZFS pool for main big data! ==== | ||
+ | |||
+ | * option 1: Stripping | ||
sudo zpool create tardis | sudo zpool create tardis | ||
+ | |||
+ | * option 2: raidz1 | ||
+ | |||
+ | sudo zpool create tardis raidz1 /dev/sdb4 /dev/sde4 /dev/sdf4 | ||
+ | |||
+ | * Add log and cache devices: | ||
+ | |||
sudo zpool add tardis log / | sudo zpool add tardis log / | ||
sudo zpool add tardis cache / | sudo zpool add tardis cache / | ||
Line 207: | Line 216: | ||
This will copy everthing from the zfs from that disk to the new one, attach the new one and detach the old one. In this way, it is not necessary to copy the whole disk with dd. | This will copy everthing from the zfs from that disk to the new one, attach the new one and detach the old one. In this way, it is not necessary to copy the whole disk with dd. | ||
+ | |||
+ | ==== Create a zfs pool using files instead of real disks ==== | ||
+ | |||
+ | mkfile 100m file1 | ||
+ | zpool create geekpool /file1 | ||
+ | |||
+ | ==== Create a ZFS raidz1 en degrated mode ==== | ||
+ | |||
+ | * Create a sparse file with the same size of your harddrives. Then remove it before putting files to it. | ||
+ | |||
+ | |||
+ | [[https:// | ||
Line 230: | Line 251: | ||
[[https:// | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
zfs_root_cache.txt · Last modified: 2021/02/01 05:55 by 127.0.0.1