Setting up a PXE boot environment – Part 1: TFTP Server & DHCP Server

Disclaimer: Regardless part 0 is more or less around Raspberry Pi, in this post, I am only implementing a bare-minimum version of PXE, it will only handle single architecture (x64) and either UEFI or BIOS, not a general purpose PXE environment. some of the PXE boot environment mentioned should also work with Raspberry Pi 3B+ or above, here’s the official Raspberry Pi documentation.

Continue reading Setting up a PXE boot environment – Part 1: TFTP Server & DHCP Server

TrueNAS (FreeNAS) – 7 years later

7 years after the original FreeNAS, It has changed a lot. Guess it’s time to write some recap and experiences along the additions and modifications to my NAS. It’s gonna be a long one, for those impatient, here is the TL;DR:

  • Maxed RAM to 128G
  • Added a PCIe NVMe expansion card, and
    • Upgraded mirrored boot device to NVMe drives
    • Added another NVMe drive for L2ARC
  • Upgraded disks to 8TB
    • Shucking and SATA power pin hack
    • Disk burn-in with smartctl and badblocks
    • Resilvering
  • Upgraded switch to MultiGig (10G/2.5G) – Not directly related to the NAS itself
  • Peak CIFS get a nice bump, from 3.5Gbps to 5.45Gbps

自從組 FreeNAS 已經過了七年,特別寫一篇 blog 詳述中間各種變化與升級,下面條列升級重點,給沒時間細讀的人參考。

  • 記憶體加滿 – 128G
  • 加了一張 PCIe NVMe 擴充卡
    • 把開機 USB 換成 NVMe
    • 再多加一張 NVMe 當成 L2ARC
  • 硬碟就地升級成 8TB
    • 拆外接硬碟,改 SATA 電源接頭
    • smartctlbadblocks 壓力測試硬碟
    • 陣列重組 (resilvering)
  • 升級區網,終於讓主機板上的 10G 網卡解除限制器
  • CIFS 效能從 3.5Gbps 提升到 5.45Gbps

If you are still interested, keep going…

對細節有興趣的請繼續往下看…

Continue reading TrueNAS (FreeNAS) – 7 years later

Configure a http/2 Nginx using Let’s Encrypt free SSL certificate

Once upon a time (circa. 2015), it would cost you for a few dozen bucks, to a few hundred dollars, per year, to get that shiny green little locky thingy appear on your URL bar in the browser. The cost would be justifiable for someone that runs a large business on the web, not so much for small companies or someone who occasionally runs a random httpd somewhere, like me. That was the dark time of the internet.

Continue reading Configure a http/2 Nginx using Let’s Encrypt free SSL certificate