Disk configuration for 'order'

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


For more info see 'order'.

sda (120GB)
171905A00F49
sda1 (1MB)
grub
sda2 (2GB)
/boot
sda3 (100GB)
/
sda4 (8GB)
data:cache
sdb (3TB)
WMC4N0D8E3C9
data
sdc (3TB)
WMC4N1926862
data
sdd (3TB)
WMC4N0D5506W
data
Device Drive Model Commissioned Sequential Random WRL Temp °C Data Sheet
sda WD Green 120GB SSD WDC WDS120G1G0A-00SS50 2017? 205 MB/s 35 MB/s 40 TBW 0°C to 70°C download
sd[bcd] WD Red 3TB 5400rpm WD30EFRX-68EUZN0 2014? 106 MB/s 1 MB/s 180 TB/yr 0°C to 60°C download

fstab

Device Capacity File-system Mount
sda2 2GB ext4 /boot
sda2 100GB btrfs /

ZFS zpools

Pool RAID Capacity Compression Dedup
data RAID0 8TB lz4 on

ZFS datasets

These are the datasets we create on our zpools.

Dataset Mount
data /data
data/backup /data/backup

Commands

Initial setup on 2023-02-01

#!/bin/bash

set -euo pipefail;
shopt -s dotglob;

DATA_DISK_1=/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0D8E3C9
DATA_DISK_2=/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N1926862
DATA_DISK_3=/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0D5506W

DATA_CACHE=/dev/disk/by-id/ata-WDC_WDS120G1G0A-00SS50_171905A00F49-part4

apt install zfsutils-linux

zpool create -f \
    -O acltype=posixacl -O compression=lz4 \
    -O dnodesize=auto -O normalization=formD -O atime=off -O dedup=on \
    -O xattr=sa \
    data ${DATA_DISK_1} ${DATA_DISK_2} ${DATA_DISK_3}

zpool add data cache ${DATA_CACHE}

zfs create data/backup