zfs_root_cache
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
zfs_root_cache [2020/12/07 12:36] – memeruiz | zfs_root_cache [2021/02/01 05:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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 (with 3 new disks in raidz1 configuration of 2xdisk space) | ||
+ | |||
+ | sudo zpool create tardis raidz1 /dev/sdb4 /dev/sde4 /dev/sdf4 | ||
+ | | ||
+ | * option 3: raidz1 but degraded. (without one disk at the beginning) Solution: Use a sparse file as one of the starting disks [10]. | ||
+ | |||
+ | truncate -s 8T tardisfake.img (Use the same exact size of the real disk partition) | ||
+ | sudo zpool create tardis raidz1 /dev/sde4 /dev/sdf4 / | ||
+ | sudo zpool offline tardisnew / | ||
+ | |||
+ | * 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 138: | Line 153: | ||
sudo zfs create -o encryption=on -o keyformat=passphrase tardis/data | sudo zfs create -o encryption=on -o keyformat=passphrase tardis/data | ||
+ | |||
+ | * Create compressed subvolume | ||
+ | |||
+ | sudo zfs create tardis/ | ||
+ | sudo zfs set compression=on tardis/ | ||
+ | |||
* Avoid data to be mounted automatically with zfs: | * Avoid data to be mounted automatically with zfs: | ||
Line 212: | Line 233: | ||
mkfile 100m file1 | mkfile 100m file1 | ||
zpool create geekpool /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 239: | Line 267: | ||
[[https:// | [[https:// | ||
+ | |||
+ | |||
+ | [10] [[https:// | ||
+ | |||
+ | [[https:// | ||
zfs_root_cache.1607344592.txt.gz · Last modified: 2021/02/01 05:55 (external edit)