Disk configuration for 'discernment'

home | airgap | charisma | verve | trail | commitment | discernment | lore


For more info see 'discernment'.

nvme0n1 (2TB)
50026B768642EFF2
fast
nvme1n1 (2TB)
50026B768642EFF4
fast
sda (120GB)
WD Green 171905A00F49
sda1 (120GB)
/
sdb (4TB)
K7GNY0ML
data
sdc (4TB)
VBG5BA1R
data
sdd (4TB)
K4K6MJ9B
data
Device Drive Model Commissioned Sequential Random WRL Temp °C Data Sheet
nvme[01]n1 Kingston NV2 PCIe 4.0 NVMe SSD 2TB KINGSTON SNV2S2000G 2023-05-28 3,500MB/s read; 2,800MB/s write 640 TBW 0°C to 70°C online
sda WD Green 120GB WDC_WDS120G1G0A-00SS50 2016? 205 MB/s 34 MB/s ? TB/yr 0°C to 70°C online
sd[bd] WD Red Pro 4TB 7200rpm WD4002FFWX 2019-03-14 160 MB/s 2 MB/s 300 TB/yr 0°C to 65°C download
sdc WD Red Pro 4TB 7200rpm WD4003FFBX 2019-03-14 160 MB/s 2 MB/s 300 TB/yr 0°C to 65°C download

ZFS zpools

Pool RAID Capacity Compression Dedup
fast RAID1 2TB lz4 on
data RAIDZ 10TB zstd 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/virt /fast/virt
data /data

Commands

Initial setup on 2024-06-02

#!/bin/bash

set -euo pipefail;
shopt -s dotglob;

apt install zfsutils-linux

FAST_1=/dev/disk/by-id/nvme-KINGSTON_SNV2S2000G_50026B768642EFF4
FAST_2=/dev/disk/by-id/nvme-KINGSTON_SNV2S2000G_50026B768642EFF2

#DATA_1=/dev/disk/by-id/ata-WDC_WD4003FFBX-68MU3N0_VBG5BA1R
#DATA_2=/dev/disk/by-id/ata-WDC_WD4002FFWX-68TZ4N0_K7GNY0ML
#DATA_3=/dev/disk/by-id/ata-WDC_WD4002FFWX-68TZ4N0_K4K6MJ9B

zpool create -f \
    -o ashift=12 -o autotrim=on \
    -O acltype=posixacl -O compression=lz4 \
    -O dnodesize=auto -O normalization=formD -O atime=off -O dedup=on \
    -O xattr=sa \
    fast mirror ${FAST_1} ${FAST_2}

#zpool create -f \
#    -O acltype=posixacl -O compression=zstd \
#    -O dnodesize=auto -O normalization=formD -O atime=off -O dedup=on \
#    -O xattr=sa \
#    data raidz ${DATA_1} ${DATA_2} ${DATA_3}

#zpool add -f data cache ${CACHE_1}
#zpool add -f data cache ${CACHE_2}

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/
rmdir /home.bak/jj5
rmdir /home.bak