Disk configuration for 'tact'
home |
airgap |
charisma |
verve |
trail |
commitment |
discernment |
lore
For more info see 'tact'.
nvme0n1 (1TB)
nvme0n1p1 (512M)
boot
nvme0n1p2 (331G)
/
nvme0n1p3 (16G)
cache:fast
nvme0n1p4 (24G)
cache:data
nvme0n1p5 (560G)
vbox
sda (512GB)
fast
sdb (512GB)
fast
sdc (6TB)
data
sdd (6TB)
data
ext4
Device |
Capacity |
Mount |
nvme0n1p2 |
320GB |
/ |
ZFS zpools
Note: we don't have separate log devices for /data because we don't want
to wear one of the SSDs out. /data can write its logs to the magnetic
disks, that's fine.
Pool |
RAID |
Capacity |
Compression |
Dedup |
fast |
RAID1 |
512GB |
lz4 |
on |
data |
RAID1 |
6TB |
lz4 |
on |
vbox |
N/A |
560GB |
lz4 |
on |
ZFS datasets
These are the datasets we create on our zpools.
Dataset |
Mount |
fast |
/fast |
fast/home |
/home |
fast/home/jj5 |
/home/jj5 |
fast/mysql |
/var/lib/mysql |
fast/vbox |
/fast/vbox |
data |
/data |
data/host |
/data/host |
Commands
- # apt install zfsutils-linux
- # zpool create fast mirror sda sdb
- # zpool add fast cache nvme0n1p3
- # zfs set atime=off fast
- # zfs set xattr=sa fast
- # zfs set acltype=posixacl fast
- # zfs set compression=lz4 fast
- # zfs set dedup=on fast
- # zfs create fast/home
- # zfs create fast/home/jj5
- # mv /home /home.bak
- # zfs set mountpoint=/home fast/home
- # chown jj5:jj5 /home/jj5
- # mv /home.bak/jj5/* /home/jj5/
- # mv /home.bak/jj5/.[!.]* /home/jj5/
- # zfs create fast/mysql
- # zfs set mountpoint=/var/lib/mysql fast/mysql
- # zfs set compression=lz4 fast/mysql
- # zfs create fast/vbox
- # zpool create data mirror sdc sdd
- # zpool add data cache nvme0n1p4
- # zfs set atime=off data
- # zfs set xattr=sa data
- # zfs set acltype=posixacl data
- # zfs set compression=lz4 data
- # zfs set dedup=on data
- # zfs create data/host
- # zfs create data/blob
- # zfs set mountpoint=/blob data/blob
- # zpool create vbox nvme0n1p5
- # zfs set atime=off vbox
- # zfs set xattr=sa vbox
- # zfs set acltype=posixacl vbox
- # zfs set compression=lz4 vbox
- # zfs set dedup=on vbox