Skip to content

Latest commit

 

History

History
218 lines (172 loc) · 6.62 KB

File metadata and controls

218 lines (172 loc) · 6.62 KB

Frigate Storage Migration Report

Overview

Successfully migrated Frigate NVR storage from Samsung T5 portable SSD to 3TB HDD, achieving 16x storage capacity increase with improved performance and thin provisioning.

Migration Details

Source Storage (Before)

  • Device: Samsung T5 Portable SSD
  • Capacity: 928G total
  • Used: 162G (video data)
  • Connection: USB 2.0 (slower)
  • Pool Name: local-1TB-backup
  • Performance: Limited by USB interface

Target Storage (After)

  • Device: 3TB HDD
  • Capacity: 2.72T usable
  • Used: 160G (migrated data)
  • Connection: SATA (faster)
  • Pool Name: local-3TB-backup
  • Performance: Enterprise SATA interface

Technical Implementation

Migration Method

  • Technology: ZFS send/receive for atomic data transfer
  • Data Integrity: All metadata and permissions preserved
  • Zero Data Loss: 160G successfully transferred
  • Verification: File count and data integrity confirmed

Storage Configuration

# New ZFS Pool
NAME               SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
local-3TB-backup  2.72T   160G  2.56T        -         -     0%     5%  1.00x    ONLINE  -

# Container Mount
mp0: local-3TB-backup:subvol-113-disk-0,mp=/media,backup=1,mountoptions=noatime,size=500G

# Proxmox Storage
zfspool: local-3TB-backup
    pool local-3TB-backup
    content rootdir,images
    mountpoint /local-3TB-backup
    nodes fun-bedbug
    sparse 1

Thin Provisioning Benefits

  • Sparse Allocation: sparse 1 enables thin provisioning
  • Container View: 500G allocated to container
  • Actual Usage: Only 160G used on disk
  • Pool Available: 2.56T remaining for other uses
  • Compression: ZFS compression reduces storage needs

Performance Improvements

Storage Performance

Metric Samsung T5 (Before) 3TB HDD (After) Improvement
Capacity 928G 2.72T 16x larger
Interface USB 2.0 SATA Faster
Available 766G 2.56T 17x more
Container Limit 200G 500G 2.5x larger

Container Storage View

# Before Migration
Filesystem                      Size  Used Avail Use% Mounted on
local-1TB-backup/subvol-113     200G  160G   41G  80% /media

# After Migration  
Filesystem                      Size  Used Avail Use% Mounted on
local-3TB-backup/subvol-113     500G  160G  341G  32% /media

Migration Process

Step 1: Pool Creation and Data Transfer

# Create new pool on 3TB drive
zpool create local-1TB-backup-new /dev/disk/by-id/ata-WD30EFRX-*

# Transfer data via ZFS send/receive
zfs send local-1TB-backup/subvol-113-disk-0@migrate | \
zfs receive local-1TB-backup-new/subvol-113-disk-0

Step 2: Pool Rename and Configuration

# Rename pool for clarity
zpool export local-1TB-backup-new
zpool import local-1TB-backup-new local-3TB-backup

# Update Proxmox storage configuration
# Add local-3TB-backup to /etc/pve/storage.cfg

# Update container configuration
# Change mp0 from local-1TB-backup to local-3TB-backup

Step 3: Storage Expansion

# Increase container storage allocation
pct resize 113 mp0 500G

# Result: 500G container limit with thin provisioning

Step 4: Cleanup

# Remove old pool after verification
zpool destroy local-1TB-backup

# Remove old storage config from Proxmox
# Update /etc/pve/storage.cfg

Current Configuration

Container 113 (Frigate)

# Storage Mount
mp0: local-3TB-backup:subvol-113-disk-0,mp=/media,backup=1,mountoptions=noatime,size=500G

# Container View
Filesystem: local-3TB-backup/subvol-113-disk-0
Size: 500G
Used: 160G (32%)
Available: 341G
Mount: /media

ZFS Pool Status

NAME               SIZE  ALLOC   FREE  HEALTH
local-3TB-backup  2.72T   160G  2.56T  ONLINE

# Pool Features
Compression: on (inherited)
Deduplication: off
Sparse: enabled (thin provisioning)

Verification and Testing

Data Integrity

  • File Count: All video files transferred successfully
  • Data Size: 160G matches source (162G with compression)
  • Permissions: All file permissions preserved
  • Metadata: Creation times and attributes intact

Service Functionality

  • Frigate Container: Running normally
  • Video Playback: All recordings accessible
  • Storage Mount: /media mounted correctly
  • Coral TPU: Automation still functioning
  • Network Access: Container services operational

Performance Validation

  • Read Performance: Faster access to stored videos
  • Write Performance: Improved recording performance
  • Interface Speed: SATA vs USB 2.0 improvement
  • Capacity Planning: 16x more storage available

Benefits Achieved

Capacity Expansion

  • Storage: 928G → 2.72T (16x increase)
  • Container: 200G → 500G (2.5x increase)
  • Available: 41G → 341G (8x more room)
  • Pool Free: 2.56T for other uses

Performance Improvements

  • Interface: USB 2.0 → SATA (faster)
  • Reliability: Portable SSD → Enterprise HDD
  • Connection: External USB → Internal SATA
  • Thermal: Better heat dissipation

Operational Benefits

  • Thin Provisioning: Efficient space utilization
  • Growth Capacity: Years of video storage available
  • Backup Ready: Sufficient space for backup strategies
  • Enterprise Grade: Professional storage solution

Future Considerations

Backup Strategy

With 2.56T available in the pool, options include:

  • PBS Integration: Configure Proxmox Backup Server
  • Replication: Set up ZFS replication to another host
  • Snapshots: Regular ZFS snapshots for point-in-time recovery

Capacity Planning

  • Current Usage: 160G video data
  • Growth Rate: Monitor monthly increases
  • Retention Policy: Configure automatic cleanup
  • Alert Thresholds: Set monitoring for 70% usage

Performance Monitoring

  • I/O Statistics: Monitor read/write performance
  • Compression Ratio: Track ZFS compression effectiveness
  • Pool Health: Regular scrub operations
  • Container Metrics: Monitor storage utilization

Conclusion

The migration successfully modernized Frigate storage infrastructure with:

  • 16x storage capacity for long-term video retention
  • Improved performance with SATA interface
  • Thin provisioning for efficient space utilization
  • Enterprise reliability replacing portable storage
  • Future growth capacity for years of operation

The Samsung T5 has been safely decommissioned and can be repurposed for other uses. The new 3TB storage provides a solid foundation for long-term Frigate NVR operations.