hardware server sideproject ZFS archlinux youtube_video
This document describes the reasoning for building a home server machine. It is sometimes called “Home Lab”. However, I won’t use this term as it has been loaded with more concepts and expanded in scope. so I’ll refer to what I want as a “Home Server”. a machine that works 24/7 and support some use cases.
This machine should support the following use cases
I have some hardware at home that can potentially be used
Half of the VPS and all the data we have now is the minimum
More reasonable hardware based on the minimum in the previous section and taking into account the future need
2 Baracuda computer 8TB x 131.89EUR (Amazon)
ConBee II The Universal Zigbee USB Gateway 39.95EUR (Amazon)
3 SATA cables 5.79EUR (Amazon)
Total: 309.52 EUR
Budget remains from cost saving: 427.32 - 309.52 = 117.8 EUR
Boot into ArchIso and load ZFS
Black screen after booting
nomodeset
to kernel optionscurl -s https://raw.githubusercontent.com/eoli3n/archiso-zfs/master/init | bash
networkctl
shows configuring
Create ZFS pool
zpool create -o ashift=12 -o autotrim=on -R /mnt -O acltype=posixacl -O relatime=one -O xattr=sa -O canmount=off -O compression=lz4 -O dnodesize=legacy -O normalization=formD -O mountpoint=none -O encryption=aes-256-gcm -O keyformat=passphrase -O keylocation=prompt -O dedup=on zroot raidz1 /dev/disk/by-id/ata-<id>
mkinitcpio
fails as libcrypto
doesn’t exist https://github.com/archzfs/arc…
openssl-1.1
packageafter reboot with zfsbootmenu it loads the kernel and asks for the password then stops
zfs set canmount=on zroot/ROOT/default
/etc/fstab
zfs set org.zfsbootmenu:commandline="nomodeset rw loglevel=4" zroot/ROOT/default
🎊 Finally booted to the new system and logged in to my user
Network is not working
DNS is not working
installed Openssh, allow my user and copy SSH key then disabled password login
installed docker, docker-compose, rsync, python3
Clone zfsbootmenu
Run ./contrib/remote-ssh-build.sh
sudo cp build/vmlinuz.EFI <disk>/EFI/BOOT/BOOTX64.EFI
dracut-network.conf
should include something like ip=<IP>::<gateway>:255.255.255.0:homeserver:[<mac>]:none rd.neednet=1
ssh permission denied
authorized_keys
had wrong owner chown root:root dropbear/authorized_keys
system asks for password again
Using Unix Benchmark
BYTE UNIX Benchmarks (Version 5.1.3)
System: : GNU/Linux
OS: GNU/Linux -- 5.18.6-arch1-1 -- #1 SMP PREEMPT_DYNAMIC Wed, 22 Jun 2022 18:10:56 +0000
Machine: x86_64 (unknown)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 1: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 2: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 3: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 4: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 5: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 6: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 7: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 8: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 9: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 10: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
CPU 11: AMD Ryzen 5 3600 6-Core Processor (7189.9 bogomips)
Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
17:12:05 up 32 min, 1 user, load average: 0.33, 0.20, 0.18; runlevel
------------------------------------------------------------------------
Benchmark Run: Wed Jul 26 2023 17:12:05 - 17:41:50
12 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 52901528.7 lps (10.0 s, 7 samples)
Double-Precision Whetstone 9173.2 MWIPS (10.0 s, 7 samples)
Execl Throughput 7207.1 lps (29.3 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 315773.4 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 80529.9 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1171845.0 KBps (30.0 s, 2 samples)
Pipe Throughput 2703933.8 lps (10.0 s, 7 samples)
Pipe-based Context Switching 316754.7 lps (10.0 s, 7 samples)
Process Creation 10246.4 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 6614.6 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 3543.6 lpm (60.0 s, 2 samples)
System Call Overhead 3146084.4 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 52901528.7 4533.1
Double-Precision Whetstone 55.0 9173.2 1667.8
Execl Throughput 43.0 7207.1 1676.1
File Copy 1024 bufsize 2000 maxblocks 3960.0 315773.4 797.4
File Copy 256 bufsize 500 maxblocks 1655.0 80529.9 486.6
File Copy 4096 bufsize 8000 maxblocks 5800.0 1171845.0 2020.4
Pipe Throughput 12440.0 2703933.8 2173.6
Pipe-based Context Switching 4000.0 316754.7 791.9
Process Creation 126.0 10246.4 813.2
Shell Scripts (1 concurrent) 42.4 6614.6 1560.0
Shell Scripts (8 concurrent) 6.0 3543.6 5906.1
System Call Overhead 15000.0 3146084.4 2097.4
========
System Benchmarks Index Score 1593.8
------------------------------------------------------------------------
Benchmark Run: Wed Jul 26 2023 17:41:50 - 18:13:01
12 CPUs in system; running 12 parallel copies of tests
Dhrystone 2 using register variables 452528054.3 lps (10.0 s, 7 samples)
Double-Precision Whetstone 95126.5 MWIPS (10.0 s, 7 samples)
Execl Throughput 36518.9 lps (29.7 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 687753.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 175226.1 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2643789.0 KBps (30.0 s, 2 samples)
Pipe Throughput 22267414.7 lps (10.0 s, 7 samples)
Pipe-based Context Switching 2332771.7 lps (10.0 s, 7 samples)
Process Creation 88665.5 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 44352.6 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 5034.3 lpm (64.5 s, 2 samples)
System Call Overhead 13947317.3 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 452528054.3 38777.0
Double-Precision Whetstone 55.0 95126.5 17295.7
Execl Throughput 43.0 36518.9 8492.8
File Copy 1024 bufsize 2000 maxblocks 3960.0 687753.1 1736.8
File Copy 256 bufsize 500 maxblocks 1655.0 175226.1 1058.8
File Copy 4096 bufsize 8000 maxblocks 5800.0 2643789.0 4558.3
Pipe Throughput 12440.0 22267414.7 17899.9
Pipe-based Context Switching 4000.0 2332771.7 5831.9
Process Creation 126.0 88665.5 7036.9
Shell Scripts (1 concurrent) 42.4 44352.6 10460.5
Shell Scripts (8 concurrent) 6.0 5034.3 8390.5
System Call Overhead 15000.0 13947317.3 9298.2
========
System Benchmarks Index Score 7436.9
sudo zpool add zroot cache /dev/disk/by-id/<disk-id>
sudo zfs set sync=disabled zroot
/etc/systemd/network/20-wired.network
and the interface was enp6s0
the new motherboard device name is enp3s0
why is it different? I have no ideaTitle
[Arabic] 14TB Archlinux Linux ZFS Home server Build | ارتش لينكس 14 تيرابايت سيرفر للبيت
Description
شرح تفصيلي لمشروع ارتش لينكس سيرفر للبيت واختيارات الهاردوير والسوفتوير والمميزات التي تم اختيارها مثل ZFS, Zigbee gateway, Docker containers, Self hosted services
معلومات تفصيلية عن المشروع: https://www.emadelsaid.com/Hom…
المشروع على جيت هب: https://github.com/emad-elsaid…
ZFS archlinux arabic home_automation RAID