UniFi Cloud Gateway Max & ZFS Flashpool: Part 1 Setup
A year with the UniFi Cloud Gateway Max, keeping the Cloud Key Gen2 Plus for Protect, and moving Proxmox ZFS pools onto striped mirrors in late 2025.
It's January 10, 2026, and looking back, it has been almost a year since I unboxed the UniFi Cloud Gateway Max on January 17, 2025.
The short version: I kept my existing Cloud Key Gen2 Plus as a dedicated UniFi Protect NVR instead of forcing an all-in-one migration, then rebuilt my mismatched ZFS RAIDZ1 pools (basin, pond, and stank) into a 5-way striped mirror flashpool after migrating workloads to rpool.
Life got in the way after that unboxing and the rack sat mostly quiet for months. Then in November 2025 (about half a year after wrapping up my May 2025 Proxmox VE Helper-Scripts series), I finally had breathing room to clean up both the gateway layout and the storage pools without spinning up noisy, power-hungry enterprise gear.
The unboxing itself was low-key. Typing notes on the phablet at low battery, as usual. My first full restore attempt onto the Cloud Gateway Max went sideways during network reconfiguration and sent me straight into thumbtack reset territory. Instead of fighting it, keeping my Cloud Key Gen2 Plus (UCK-G2-PLUS) around for UniFi Protect and adopting it under the Gateway Max worked cleanly. The Gateway Max handles routing, firewall rules, and 2.5GbE traffic visibility; the Cloud Key keeps camera recording off the main gateway. Document your VLANs, firewall rules, and port maps before touching anything.
No AI needed for picking between the Cloud Gateway Max and Ultra—Evan McCann's comparison charts made the compact form factor, 2.5Gbps ports, and IDS/IPS headroom an easy call.
Storage was where a single chat session with Gemini Pro (Gemini 3) in November 2025 actually saved me hours. My old RAIDZ1 pools choked on random-write IOPS for Wazuh and OpenCTI, and the Dell MD1200 DAS was burning extra power and throwing unnecessary heat. Rather than standing up a whole RAG pipeline in n8n or Flowise just to bounce architecture ideas around, I pasted my live zpool status and hardware limits into one long-context session and argued through the trade-offs (capacity vs. IOPS, single-node simplicity, zero-downtime migration) until we locked in a clean layout.
First rule: move every LXC and VM onto rpool via Proxmox's Move Disk / qm migrate before touching the old pools. Once everything was safely off, the rebuild came down to a straightforward CLI sequence:
# 1. Destroy old RAIDZ1 pools after verifying all disks moved to rpool
zpool destroy basin
zpool destroy pond
zpool destroy stank
# 2. Wipe partition tables and signatures
for disk in sdc sdd sde sdf sdg sdh sdi sdj sdk sdl sdm; do
wipefs -af /dev/$disk
sgdisk --zap-all /dev/$disk
done
partprobe /dev/sd[c-m]
# 3. Build 5-way striped mirror flashpool
zpool create -f -o ashift=12 flashpool \
mirror scsi-36b083fe0dffbfa002d21cca4172514ec scsi-36b083fe0dffbfa002d21ccbb187797e4 \
mirror scsi-36b083fe0dffbfa002d21cf9227b92ed4 scsi-36b083fe0dffbfa002de694ac1f246e22 \
mirror scsi-36b083fe0dffbfa002de694ab1f06447c scsi-36b083fe0dffbfa002de694ab1f10ce50 \
mirror scsi-36b083fe0dffbfa002de694ac1f16b6a1 scsi-36b083fe0dffbfa002de694ac1f1e4a2c \
mirror scsi-36b083fe0dffbfa002de694ad1f2bbbbf scsi-36b083fe0dffbfa002de694ad1f3282b5
# 4. Tune datasets for security log ingestion and register in Proxmox
zfs set compression=lz4 flashpool
zfs set atime=off flashpool
zfs set xattr=sa flashpool
zfs set recordsize=64k flashpool
zfs create flashpool/sec-stack
zfs set quota=4T flashpool/sec-stack
pvesm add zfs flashpool --pool flashpool --content images,rootdir --sparse 1
With flashpool online, the MD1200 DAS powered down, and containers migrated back, the whole storage overhaul wrapped up in the time it took to finish a sous vide steak and pour a glass of Argentinian Malbec. Voila!
Next up in Part 2: how the native LXC vs. Docker-in-LXC split actually shook out across the isolated lab network, and why Podman, CasaOS, and containerized TrueNAS didn't make the cut.
Until then.