This document outlines the proposed step-by-step strategy to perform a comprehensive audit and inventory of all workloads, computers, virtual machines, Docker stacks, and scripts utilizing SMB shares from the UNAS Pro (10.1.2.2) NAS.
1.1 Mac Studio Host Storage Check: Enumerate active /Volumes/ mounts, persistent login items, mount scripts (e.g., mount_smbfs), and local SMB optimization configurations.
2.1 MMProxmox Host Storage Check: Inspect /etc/pve/storage.cfg and host /etc/fstab on the hypervisor to check for direct UNAS Pro SMB mappings.
Shares Mapped: Software (mounted at /mnt/pve/Software via /etc/pve/storage.cfg CIFS pool).
Purpose: Storing VM/LXC backup files, OS installer ISOs, and container templates.
2.2 Pi-Hole (LXC 100) Bind Mount Check: Read LXC configuration (/etc/pve/lxc/100.conf) on the host to check for active bind-mounted SMB folders.
Status: Confirmed completely independent of UNAS-Pro SMB storage.
2.3 HomeAssistant (VM 200) Storage Audit: Check the Home Assistant VM OS mounts and core storage files for active mapped shares.
Status: Confirmed completely independent of UNAS-Pro SMB storage.
2.4 MMDocker (VM 230) Mount & Stack Scan: Read VM fstab/mounts and inspect Docker container volumes (docker inspect / docker-compose bind-mounts) for UNAS Pro SMB usage.
Shares Mapped: 11 total via /etc/fstab (Software, ProxmoxBackups, Books, Documents, Downloads, Immich, Musique, Nadine, Photos, Films, TVSeries).
Docker Container Usage:
Share: Downloads (mounted at /mnt/Downloads) is actively consumed by:
Radarr: Media ingestion container.
Sonarr: Media ingestion container.
Lidarr: Music ingestion container.
qBittorrent: Default downloads directory.
Scripts & Automations:
Share: ProxmoxBackups (mounted at /mnt/ProxmoxBackups) is actively consumed by:
rclone Sync Script: /home/marc/scripts/priority_backups_rclone_gdrive_sync.sh running daily at 23:00 to upload backups to GDrive.
Dormant/Unused fstab Mounts:
Shares: Software, Books, Documents, Immich, Musique, Nadine, Photos, Films, TVSeries are persistently mounted at /mnt/ but have no active mappings to running Docker containers or local scripts.
Backrest: Restic wrapper backing up source shares to Google Drive daily.
Scripts & Automations:
Share: Documents is consumed hourly by /home/marc/docker-compose/paperless/scripts/paperless-sync.sh (rsyncing paperless media to Documents/Paperless/).
Share: Software is consumed daily by /mnt/Software/Software/Scripts/Linux/publish-hugo-{homelab,gendash}.sh (Git mirroring / website push scripts).
3.5 HP1BackupServer (VM 211) Storage Check: Audit active mounts on Proxmox Backup Server.
Shares Mapped: Software (mounted at /mnt/Software), ProxmoxBackups (mounted at /Backups-Priority).
Active Consumers: PBS Daemon (storing deduplicated VM/LXC backup chunks on ProxmoxBackups).
3.6 HP1Clouds (VM 217) Mount & Stack Scan: Read VM fstab/mounts and inspect Docker container volumes and crons.
Shares Mapped: 11 total via /etc/fstab (Films, TVSeries, Books, Documents, Musique, Nadine, Photos, Software, Downloads, Paperless_consume, Immich [read-only]).
Docker Container Usage:
All 11 Shares are passed to the Nextcloud AIO master environment:
Nextcloud AIO Nextcloud: Mounts /mnt directly to serve external directories.
Owncloud Server: Mounts all 11 shares directly to expose external directories.
Scripts & Automations:
All Shares indexed hourly by /home/marc/docker-compose/nextcloud-aio/scripts/file_indexer.sh.
7.1 Scripts Repository Scan: Perform regex searches in the scripts folder (/Users/marc/Scripts) for references to UNAS, 10.1.2.2, /Volumes/, cifs, or smb.
Findings: Located multiple operational scripts with direct dependencies on UNAS Pro shares:
Git Post-Commit Hook (/Users/marc/Scripts/.git/hooks/post-commit): Auto-mirrors committed files from /Users/marc/Scripts/ to /Volumes/Software/Software/Scripts/ (the Software share) if mounted.
Proxmox Node Backup Script (/Users/marc/Scripts/Proxmox/proxmox_backup.sh): Runs on Proxmox hosts to package system database configs and store them at /mnt/pve/Software/PVEBackups/ (the Software share).
TrueNAS Pull Backup Scripts (/Users/marc/Scripts/TrueNAS/HP{1,2,3,7,8}_UNAS_Pull_Backup.sh): Run on respective TrueNAS backup hosts via cron. They pull the 10 core data modules (Books, Photos, Nadine, Immich, Musique, Software, HomesDSM, Documents, Downloads, GoogleCloudSync) from the UNAS-Pro Rsync daemon over SSH.
7.2 Canary and Safety Verification Review: Identify sync scripts utilizing mountpoint checking (mountpoint -q) or safety canary files (like .paperless-canary) to protect target directories.
7.3 Scheduled Jobs and Cron Audit: Enumerate and audit system and user crontabs across Mac Studio and active Linux hosts for scheduled SMB sync operations.