Home Server Infrastructure

System Administration • Ongoing Project

Overview

I repurposed a retired desktop computer into a comprehensive Ubuntu server platform, implementing enterprise-grade features including redundant storage and secure remote access capabilities. The storage architecture utilizes RAID1 mirroring for data protection and reliability, and I've configured a WireGuard VPN tunnel integrated with PiVPN for simplified key management and user provisioning.

Current Status: The core infrastructure (storage and remote access) is complete and operational. Some additional services and power management features are still in development as I have time to work on them.

System Architecture

The server runs Ubuntu Server LTS as the base operating system, providing a stable foundation for various services. The hardware configuration includes dual hard drives configured in RAID1 for data redundancy, ensuring continuous operation even if one drive fails. This configuration provides both data protection and improved read performance for concurrent access scenarios.

Ubuntu Server RAID1 Storage WireGuard VPN PiVPN Etherwake Media Server Network Storage

Storage and Data Management

The RAID1 implementation uses Linux's mdadm software RAID system, which automatically maintains synchronized copies of all data across both drives. This setup provides immediate failover capability and eliminates single points of failure in the storage subsystem. Regular monitoring scripts check array health and send notifications if any issues arise.

The network storage functionality allows seamless file access from any device on the local network through SMB/CIFS shares. This creates a centralized backup location and shared workspace for all household devices.

Remote Access and Security

The VPN implementation uses WireGuard for its superior performance and security characteristics compared to traditional VPN protocols. PiVPN simplifies the user management process, allowing easy addition and removal of devices with automated key generation and distribution.

VPN Setup

Configured WireGuard server with PiVPN for streamlined client management and secure key distribution.

Network Configuration

Set up port forwarding and firewall rules to enable secure external access while maintaining local network security.

Client Provisioning

Generated device-specific configuration files for smartphones, laptops, and other devices requiring remote access.

Power Management Innovation (Planned)

A particularly elegant addition I'm planning involves implementing Etherwake functionality for network-based wake-on-LAN capabilities, allowing the server to remain in low-power standby mode until explicitly activated remotely. This power management approach will significantly reduce energy consumption while maintaining on-demand availability.

The system will be designed to be awakened from anywhere in the world through the VPN connection, providing full remote access capabilities without requiring the server to run continuously. Automated scripts will handle graceful shutdown after periods of inactivity, maximizing energy efficiency.

Services and Applications (Planned)

Beyond basic file storage, the server is designed to host several applications:

  • Media streaming server with transcoding capabilities for various device formats
  • Personal cloud storage accessible through web interface
  • Remote access to server for coding, processing tasks, and computational work
  • Network file sharing for centralized document storage

Technical Challenges

Fragmented Documentation

Online tutorials and documentation for home server setup often assume different software versions or configurations, making it likely you run into issues they dont.

Solution: I had to research across sources and platforms, improvising solutions for my specific hardware and software combination, and documenting my own working configurations for future reference.

Current Status and Future Development

This project is currently on hold as I got busy with other priorities, but it represents a comprehensive plan for a robust home infrastructure solution that balances functionality with operational efficiency. When completed, it will encompass network administration, Linux system configuration, security protocol implementation, and power management optimization. The planning phase has already provided valuable experience with enterprise-level system administration concepts and reinforced the importance of proper documentation and disaster recovery planning.

While not all functionality is fully implemented yet, the foundation and detailed planning are in place for when I have time to complete the project. The modular design allows for incremental implementation of features as time permits.