Building Cheap and Efficient Home Servers with Laptops

· algieg's blog


Summary: This video explores the feasibility and process of converting old laptops into home servers as a budget-friendly and efficient alternative to traditional server hardware. The creator leverages three retired laptops to replicate his home lab setup, focusing on efficiency and cost-effectiveness. The video covers hardware specifications, software installation (TrueNAS, Proxmox, Proxmox Backup Server), addressing potential issues like lid behavior and power consumption, and evaluating the performance of the laptop-based server setup for various services. It concludes by discussing the pros and cons of using laptops for home servers, highlighting the Dell Latitude as a particularly suitable option due to its low power draw.

Reasons for using Laptops as Servers:

Hardware Used:

Initial Plan for System Roles:

Implementing the Plan and Adjustments:

  1. 15-inch MacBook Pro (TrueNAS):

    • Used two 2TB 2.5-inch hard drives for larger capacity.
    • Upgraded RAM to 8GB (two 4GB sticks).
    • Booted TrueNAS from two mirrored USB flash drives due to no available boot drive bay.
    • Encountered issues with USB drive fit (snapped off plastic cases).
    • Successfully installed and configured TrueNAS with a mirrored pool and SMB share.
    • Issue: System went to sleep and crashed when the lid was closed.
    • Solution: Modified login.conf to ignore the lid switch (kept the screen on).
    • Further Issue: Screen remaining on wasted power.
    • Solution: Physically unplugged the display connector.
    • Result: System idled at 25W after display removal (down from ~33W).
  2. Dell Latitude (Proxmox):

    • Swapped out the SSD and upgraded RAM to 16GB.
    • Installed Proxmox successfully.
    • Encountered lid switch issue.
    • Solution: Modified login.conf to ignore the lid switch.
    • Rather than disconnecting the display, created a script to turn off the backlight via cron job.
    • Result: Idle power consumption dropped from 6-7W to 3.5W.
  3. Revisiting the 15-inch MacBook Pro (TrueNAS) and the 13-inch MacBook Pro:

    • Questioned the power draw of the 15-inch MacBook Pro (suspected GPU/i7 influence).
    • Moved drives and RAM from the 15-inch to the 13-inch MacBook Pro.
    • Result on 13-inch MacBook Pro (TrueNAS): Power draw was lower (15-16W) but still higher than the Dell.
  4. Utilizing the Remaining 15-inch MacBook Pro:

    • Decided against using it for Home Assistant OS due to significant power draw increase.
    • Consideration: Sell the laptop to fund a better router/firewall.
    • Decision for the Video: Found a use for it as Proxmox Backup Server to back up the single-drive Proxmox server.
    • Used an SSD adapter and two unused SSDs for storage.

Final Setup and Performance:

Pros of using Laptops as Servers:

Cons of using Laptops as Servers:

Conclusion:

last updated: