OztekLab

Major Homelab Infrastructure Updates - September 2025

โ€ข3 min read
truenasstoragekubernetesautomationdocumentation

Major Homelab Infrastructure Updates - September 2025

๐ŸŽฏ Overview

This post covers the significant infrastructure improvements made to the OztekLab homelab during September 2025. These updates focus on storage optimization, documentation organization, and workflow automation to create a more robust and maintainable infrastructure.


๐Ÿ”ง TrueNAS Storage Optimization

Problem Solved: HGST Drive DIF Compatibility Issues

Background: Our HGST HUH721212AL4200 12TB enterprise drives were causing TrueNAS pool creation failures due to DIF (Data Integrity Field) protection being enabled by default.

Solution Implemented:

  • Created automated monitoring scripts for sg_format operations
  • Developed DIF-disabled 4K sector formatting: --size=4096 --fmtpinfo=0
  • Implemented comprehensive drive status monitoring with automatic recovery

Key Achievements:

โœ… 14 enterprise drives being formatted to 4K sectors with DIF disabled
โœ… Automated monitoring scripts with real-time progress tracking
โœ… Comprehensive documentation created in Outline knowledge base
โœ… Version-controlled scripts in ozteklab/infra repository

Technical Details:

BASH
# Critical formatting command with DIF disabled
sg_format --format --size=4096 --fmtpinfo=0 --count=1 /dev/sdX

# Drive mapping (NAS-02)
- sda: System drive (TrueNAS OS)
- sdb: Special case (excluded)  
- sdc-sdp: 14 drives targeted for 4K DIF-disabled formatting

๐Ÿ“š Infrastructure Documentation Overhaul

Unified Documentation Repository

Repository: https://git.ozteklab.com/ozteklab/infra

Accomplished: โœ… Removed 2 unnecessary collections (Test, tetst)
โœ… Deleted 8+ duplicate/empty documents
โœ… Reorganized 20+ documents into proper collections
โœ… Consolidated academic research in dedicated collection

Key Collections Organized:

  • TrueNAS: Storage configuration and SG_FORMAT scripts
  • Kubernetes: K3s, Traefik, Rancher comprehensive guides
  • N8N: Workflow automation documentation

๐Ÿค– Automation & Workflow Enhancements

N8N MCP Wrapper Integration

Achievement: Successfully integrated N8N with MCPO wrapper providing 48+ functions for:

  • Outline API: Complete document management
  • Workflow Automation: Advanced N8N operations
  • Infrastructure Management: Cross-platform orchestration

Monitoring Scripts Development

SG_FORMAT Monitoring System:

  • Real-time Progress Tracking: Percentage-based monitoring
  • Automatic Drive Recovery: Reset stuck drives automatically
  • Concurrent Operation Management: Limit to 6 drives to prevent overload
  • Smart Status Indicators: Visual feedback with colored terminal output

๐Ÿ“Š Current Infrastructure Status

TrueNAS (nas-02.internal.ozteklab.com):

  • Status: Active formatting of 14x 12TB HGST drives
  • Progress: 1-2 drives completing 4K DIF-disabled formatting
  • Expected Completion: 3-7 days for all drives

Edge Docker Host (192.168.70.10):

  • Traefik: Load balancing and SSL termination
  • Jekyll: Homelab documentation website (ozteklab.com)
  • Services: Running under /srv directory structure

K3s Cluster:

  • Ingress: Dual Traefik setup (internal/external)
  • Storage: Longhorn distributed storage
  • Management: Rancher UI for cluster administration

๐Ÿ”— Resources & References

Key Commands Reference:

BASH
# Check formatting progress
./quick_status.sh

# Start continuous monitoring  
./sg_format_monitor.sh

# Validate drive formatting
sg_format --count=1 /dev/sdX | grep "Block size"

๐Ÿ“ Conclusion

The September 2025 infrastructure updates represent a significant leap forward in homelab maturity and reliability. The resolution of the HGST drive DIF compatibility issues, combined with comprehensive documentation organization and automation enhancements, creates a solid foundation for future growth.

Key Success Metrics:

  • ๐ŸŽฏ Problem Resolution: Critical storage issue identified and solved
  • ๐Ÿ“š Documentation Quality: Knowledge base cleaned and organized
  • ๐Ÿค– Automation Level: Monitoring and recovery scripts implemented
  • ๐Ÿ”„ Version Control: Complete infrastructure tracking in git

These improvements ensure the OztekLab infrastructure is well-documented, properly monitored, and ready for production workloads.


Last Updated: September 15, 2025 Infrastructure Repository: ozteklab/infra


๐Ÿงช API Playground Test

Test the Ragtronic Chat API directly from this post:

Powered by Ragtronic

Assistant

Ozteklab Logo

Hi! How can I help you with Ozteklab documentation today?

Ask me anything about the documentation, code examples, or best practices.