I've had really good luck so far running
However, I can immediately create that
I am the replicator user and I think I have the correct permissions.
If I run
Can anyone see which permissions I'm misssing? Is there a log that might give more info?
zxfer
as root, backing up to a removable drive on the same machine, but now I'm trying it as a regular user, backing up to a different machine over ssh
, and it's no longer going so well. I'm trying to follow the man page and the pull example in Advanced ZFS and am getting a permission error on the receiving side:
Bash:
$ zxfer -dFkPv -g 376 -I com.sun:auto-snapshot -O replicator@192.168.1.108 -R zroot backup/bsdclient
Checking grandfather status of all snapshots marked for deletion...
Grandfather check passed.
Creating destination filesystem "backup/bsdclient/zroot" with specified properties.
cannot create 'backup/bsdclient/zroot': permission denied
Error when creating destination filesystem.
However, I can immediately create that
zroot
filesystem by hand, so I don't understand why it didn't work.
Bash:
$ zfs create backup/bsdclient/zroot
I am the replicator user and I think I have the correct permissions.
Bash:
$ whoami
replicator
$ zfs allow backup
---- Permissions on backup -------------------------------------------
Local+Descendent permissions:
user replicator compression,create,destroy,mount,mountpoint,receive,rollback
$ sysctl vfs.usermount
vfs.usermount: 1
$ ls -alg /backup
total 15
drwxr-xr-x 6 root wheel 6 Jun 23 21:45 .
drwxr-xr-x 20 root wheel 26 Jun 23 21:44 ..
drwxr-xr-x 3 replicator replicator 3 Jun 24 00:02 bsdclient
$ ls -alg /backup/bsdclient/
total 2
drwxr-xr-x 3 replicator replicator 3 Jun 24 00:02 .
drwxr-xr-x 6 root wheel 6 Jun 23 21:45 ..
drwxr-xr-x 2 replicator replicator 2 Jun 24 00:02 zroot
If I run
zxfer
again it gets farther, but again fails with a similar error.
Bash:
$ zxfer -dFkPv -g 376 -I com.sun:auto-snapshot -O replicator@192.168.1.108 -R zroot backup/bsdclient
Checking grandfather status of all snapshots marked for deletion...
Grandfather check passed.
Sending zroot@zfs-auto-snap_frequent-2020-06-23-23h45 to backup/bsdclient/zroot. Sending zroot@zfs-auto-snap_hourly-2020-06-24-00h00 to backup/bsdclient/zroot.
(incremental to zroot@zfs-auto-snap_frequent-2020-06-23-23h45.)
Sending zroot@zfs-auto-snap_daily-2020-06-24-00h07 to backup/bsdclient/zroot.
(incremental to zroot@zfs-auto-snap_hourly-2020-06-24-00h00.)
Creating destination filesystem "backup/bsdclient/zroot/ROOT" with specified properties.
cannot mount '/backup/bsdclient/zroot/ROOT': failed to create mountpoint
filesystem successfully created, but not mounted
Error when creating destination filesystem.
Can anyone see which permissions I'm misssing? Is there a log that might give more info?