From ZFS Dataset to NFS Share to a Mac Mount
Updated November 26, 2026

My VM backups were piling up on the hypervisor's own disks, which is the one place a backup should not live.
This week I fixed that in one morning. I had a ZFS pool (a group of disks managed together) on my Proxmox host with plenty of room, so the plan was a chain of three links: a ZFS dataset to hold the backups, an NFS (Network File System) export so other machines could reach it, and a mount on my Mac so I could see and copy the files from my desktop. The Mac is my workstation, and it's also the management device I use across the whole network, which is the only reason I wanted the share there. My notes have three timestamps that morning, about an hour apart, one for each link.
Each link is simple on its own. The trouble is that when the Mac says "permission denied" or "server not responding", the cause can be in any of the three layers. So I built them in order and checked each one before moving to the next.
Link One: a Dataset, Not a Folder
Start by confirming the pool is healthy. If zpool status shows anything other than ONLINE with no errors, stop and deal with that first.
zpool status
zfs create tank/vm_backups
zfs list
Why a dataset and not just mkdir? A dataset is a folder with its own settings. It can have its own compression, its own quota, its own snapshots and its own NFS export properties, and none of that affects the rest of the pool. Backups in particular benefit from a quota: a runaway backup job fills its own dataset and stops, and the VMs sharing the pool keep running.
Proxmox can use the dataset directly as storage (Datacenter, Storage, Add, ZFS), which is fine for backups made on that same host. I wanted more than that, because I wanted to reach the files from other machines.
Link Two: Exporting It Over NFS
On the Proxmox host (which is Debian underneath) that means the kernel NFS server:
apt update && apt install -y nfs-kernel-server
The export goes in /etc/exports. This is the line where security decisions get made, so it's worth slowing down. Here is a restricted version, allowing only one subnet, with a documentation range as the example:
/tank/vm_backups 192.0.2.0/24(rw,sync,no_subtree_check)
My notes weighed two versions of this line. One allowed a single trusted address. The other allowed anyone who could reach the server, using *, plus the options no_root_squash and insecure. Those two options deserve a plain explanation:
no_root_squashmeans root on the client is treated as root on the share. Convenient for a backup tool that runs as root. Dangerous if the client list is wide.insecureallows clients that connect from a high source port. That matters for macOS, which I'll come back to.
The rule I settled on: open the export only to the machines that need it, and only add no_root_squash when a specific client needs root on the share. A wildcard export on a backup share means anyone on that network can read, or overwrite, every VM you own.
Apply and check:
exportfs -ra
exportfs -v
Then I added it to Proxmox as NFS storage (Datacenter, Storage, Add, NFS, content type "VZDump backup file") and ran a test backup. My notes show I wanted backups with names that said what they were, so the test wrote a backup to a file I named myself:
vzdump 101 --mode stop --stdout > /tank/vm_backups/vm-101-base-install.vma
ls -lh /tank/vm_backups
A named file for a known-good state is easier to find later than a timestamp. The scheduled backups keep the default names, and the hand-made restore points get descriptive ones.
Link Three: Mounting It on the Mac
From the Mac, the first command asks the server what it's exporting. If this fails, the problem is the network or the export list, and there's no point trying to mount yet:
showmount -e nas01
Then make a mount point and mount it:
mkdir -p ~/mnt/vm_backups
sudo mount -t nfs -o vers=3,resvport nas01:/tank/vm_backups ~/mnt/vm_backups
df -h | grep vm_backups
Two options in that mount line are there because of what macOS does by default:
vers=3forces NFSv3. The macOS client and a Linux server tend to disagree on how to negotiate NFSv4, so I worked with v3 from the start. It's the boring, reliable choice for a simple backup share.resvportmakes the Mac connect from a privileged port. Linux NFS servers expect that by default, and when the Mac doesn't do it you get a vague "operation not permitted". The other fix isinsecureon the server side, which is why that option kept showing up in my notes. I usedinsecurea few times, but the client-sideresvportoption is the usual way around it, and the better habit.
Permissions are the last thing that bites. NFSv3 trusts numeric user IDs (UIDs). If your Mac user is UID 501 and the files on the server belong to a different UID, you can mount the share and still not read the files. Check with ls -ln on both ends and make the ownership match on purpose.
For a mount that comes back after a reboot, macOS has its own mechanism: the automounter, configured through /etc/auto_master and a map file. Editing /etc/fstab on a Mac is a holdover and not the supported route. I don't remember whether I made my mount persistent.
Moving Files Across It
Once the mount worked, copying was the easy part. For anything bigger than a few files I use rsync with a dry run first, because it shows what it would do before it does it:
rsync -avh --dry-run ~/Downloads/isos/ ~/mnt/vm_backups/isos/
rsync -avh --progress ~/Downloads/isos/ ~/mnt/vm_backups/isos/
The trailing slash on the source matters: with it, rsync copies the contents of the folder; without it, rsync copies the folder itself.
What I'd Tell Someone Doing This Tomorrow
Build the chain one link at a time and test each link where it lives. zpool status and zfs list for the dataset. exportfs -v on the server for the export. showmount -e from the client for the network path. Only then mount. When something fails, you will know which layer to open.
Keep the export list as narrow as the job allows, and write down why each option is there. Six months later, no_root_squash on a backup share looks like a mistake unless a note next to it says which client needed it and why.
Update, March 2026: this pool carried my backups for well over a year, until it reported a degraded drive and I migrated it to new disks overnight. That story is in Midnight Surgery: Migrating a Degraded ZFS Pool While I Slept. Having the backups in their own dataset from the start meant they moved as one unit. It's a later, bigger version of the same setup, and it shows the pieces holding up through a drive swap.
Enjoyed this article?
Subscribe to get notified about new posts on software engineering, AI development, and infrastructure.
No spam, unsubscribe anytime.