Mount the Synology NFS share to your LXC
Mount the Synology NFS share to your LXC
Summary: Mount Synology NFS → Proxmox Host → Bind to LXC
Phase 1: NFS Setup on Synology DSM 7
- Enable NFS Service
- Control Panel → File Services → NFS tab
- Check "Enable NFS service"
- Set Maximum NFS protocol: NFSv4
- Click Apply
- Configure NFS Permissions for Obsidian Share
- Control Panel → Shared Folder → Obsidian → Edit
- Go to NFS Permissions tab → Create
- Server or IP address:
192.168.1.24(or use192.168.1.0/24for subnet) - Privilege: Read/Write
- Squash: Map all users to admin
- Security: sys
- Check: Enable asynchronous
- Check: Allow connections from non-privileged ports
- Check: Allow users to access mounted subfolders
- Note the Mount Path:
192.168.1.40:/volume1/Obsidian
Phase 2: Mount NFS on Proxmox Host
On Proxmox host (192.168.1.5):
# 1. Install NFS client tools
apt update
apt install nfs-common -y
# 2. Create mount point
mkdir -p /mnt/synology-obsidian
# 3. Mount NFS share (using NFSv3 for compatibility)
mount -t nfs -o vers=3,rw 192.168.1.40:/volume1/Obsidian /mnt/synology-obsidian
# 4. Verify mount
ls -la /mnt/synology-obsidian
ls -la /mnt/synology-obsidian/Notes
# 5. Make mount persistent (survive reboots)
echo "192.168.1.40:/volume1/Obsidian /mnt/synology-obsidian nfs vers=3,rw,relatime 0 0" >> /etc/fstab
Phase 3: Bind Mount to Unprivileged LXC
On Proxmox host:
# 1. Stop the LXC
pct stop 10300
# 2. Add bind mount to LXC config
echo "mp0: /mnt/synology-obsidian,mp=/obsidian" >> /etc/pve/lxc/10300.conf
# 3. Start LXC
pct start 10300
# 4. Verify inside LXC
pct enter 10300
ls -la /obsidian
ls -la /obsidian/Notes
exit
Phase 4: Configure n8n File Access
Inside n8n LXC (10300):
# Edit n8n service file
nano /etc/systemd/system/n8n.service
# Add this line in the [Service] section:
Environment=N8N_RESTRICT_FILE_ACCESS_TO=/obsidian;/root/.n8n-files
# Save and restart
systemctl daemon-reload
systemctl restart n8n
systemctl status n8n
Key Details for Your Setup
- Synology IP: 192.168.1.40
- Synology Share: /volume1/Obsidian
- NFS Export Path: 192.168.1.40:/volume1/Obsidian
- Proxmox Host Mount: /mnt/synology-obsidian
- LXC ID: 10300
- LXC IP: 192.168.1.24
- LXC Mount Point: /obsidian
- Vault Path in LXC: /obsidian/Notes
- NFS Version Used: NFSv3 (vers=3)
Verification Commands
# On Proxmox host - check NFS mount
mount | grep synology
ls -la /mnt/synology-obsidian/Notes
# View LXC config 10300- n8n on proxmox
cat /etc/pve/lxc/10300.conf | grep mp0
# Inside LXC - check mount
pct enter 10300
ls -la /obsidian/Notes
df -h | grep obsidian
This setup keeps your Google Drive as primary, syncs hourly to Synology via Cloud Sync (bidirectional), and makes the files accessible to n8n via NFS.