Axel Verne → Junk Drawer kit → Chapter 16
Chapter 16 — The Rack: Many Boxes Into One
3 blocks to copy, in the order they appear in the chapter. Nothing here is required to be typed by hand.
This page has the commands. The book has the rest. Chapter 16 in the book adds the drawer check (will your hardware do it?), checkpoints, "When it breaks" and an honest upgrade check.
Read two full chapters free (PDF): Chapter 1 and the Pi-hole chapter, straight from the book.
Get the next build by email. What I ran, on what hardware, and commands that paste. Free, unsubscribe any time.
Step 2: Configure shared storage (NFS)
16.1 · bash
# If you have a second disk (/dev/sdb), partition and format it:
sudo fdisk /dev/sdb # create a single partition
sudo mkfs.ext4 /dev/sdb1
sudo mkdir -p /srv/lab/shared
sudo mount /dev/sdb1 /srv/lab/shared
sudo chown -R nobody:nogroup /srv/lab/shared
# Edit /etc/fstab to make it permanent:
echo "/dev/sdb1 /srv/lab/shared ext4 defaults 0 0" | sudo tee -a /etc/fstab16.2 · bash
sudo apt-get install nfs-kernel-server
# Edit /etc/exports:
echo "/srv/lab/shared 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)" | sudo tee -a /etc/exports
sudo exportfs -a
sudo systemctl restart nfs-kernel-serverStep 3: Create the cluster
16.3 · bash
# SSH to node 1 or use the Proxmox shell
sudo pvecm create clustername --nodeid 1Get the next build in your inbox
An email when a new build write-up goes up: what I ran, on what hardware, and the commands that paste. Free, unsubscribe any time. The kit stays free either way.