David Dyer-Bennet
Patron
- Joined
- Jul 13, 2013
- Messages
- 286
I'm getting my data off my old Solaris ZFS server onto a FreeNAS box. Zfs send/recv doesn't work because I've got options set that aren't supported by FreeNAS (so the recv errors out). In any case, the transfer takes long enough that being able to interrupt and restart is very valuable. Hence, rsync. And rsync daemon because it's the only way to avoid encryption of the network stream (the stream goes through one switch within my internal network, and it's a "one-shot" deal in that when I get the job completed it stops happening, so I'm not too concerned with security risks) (at 1Gb the fastest encryption slows me down to about 750Mb, not horrible, but I get about 875Mb unencrypted; and when I plug the 10Gb cards together, I expect that to become a much bigger issue, so learning to use rsyncd seems like it's worth my time).
I've had zillions of weird situations where rsync and rsyncd running as root claim they can't set the permissions of a file because...they don't have permission. Some of this is because of anomalies in my existing filesystems, and I can fix those -- the directories that have *no* permissions are artifacts of things that used to be done by ACLs, when devolved to no access when the ACLs were removed, for example. So finding and fixing those is beneficial anyway. (But why can't rsyncd running as root create a directory with no normal permissions? Seems like an unlikely case, but a perfectly legal one.) All sorts of confusing things, and I've been thrashing the configuration trying to find things that work, so some of my feeling of confusion is no doubt due to strange configs when I performed particular tests.
I probably don't understand rsyncd config properly. I'm referring to its man page frequently, and I'm viewing the /etc/local/rsyncd.conf file created by the FreeNAS gui to understand what the gui settings are actually doing, but I'm still not always clear on things.
Anyway, that's the background. Right now, I'm getting this error from this rsync invocation:
I think that that error message is an rsyncd error (so why is it labeled "rsync:"?). The reason I think that is that fsfs-backup is a user and a subdirectory on the receiving (rsyncd) system, and does not exist at all on the sending system.
On the sending side, that directory and file look like this:
Read-only, and a strange user (but I'm not propagating UID across the rsync), but nothing strange that I can see; in particular, no ACL indicated.
And on the receiving side:
Finally, the rsyncd.conf file is:
Any ideas, hints, clues, leading questions, or suggestions?
I've had zillions of weird situations where rsync and rsyncd running as root claim they can't set the permissions of a file because...they don't have permission. Some of this is because of anomalies in my existing filesystems, and I can fix those -- the directories that have *no* permissions are artifacts of things that used to be done by ACLs, when devolved to no access when the ACLs were removed, for example. So finding and fixing those is beneficial anyway. (But why can't rsyncd running as root create a directory with no normal permissions? Seems like an unlikely case, but a perfectly legal one.) All sorts of confusing things, and I've been thrashing the configuration trying to find things that work, so some of my feeling of confusion is no doubt due to strange configs when I performed particular tests.
I probably don't understand rsyncd config properly. I'm referring to its man page frequently, and I'm viewing the /etc/local/rsyncd.conf file created by the FreeNAS gui to understand what the gui settings are actually doing, but I'm still not always clear on things.
Anyway, that's the background. Right now, I'm getting this error from this rsync invocation:
Code:
root@FSFS:/export/home/ddb/Documents/fsfs/to-rebma# rsync --recursive --links --times -v --stats -R --partial --append --update --inplace --exclude .zfs/ /zp1/home/./ rsync://fsfs-mod@192.168.1.181/fsfs-backup sending incremental file list rsync: failed to read xattr rsync.%stat for "/ddb/Documents/Fandom/Minicon/Mc45/minicon_email_list_20091222.txt" (in fsfs-backup): Permission denied (13) rsync: failed to read xattr rsync.%stat for "/ddb/Documents/Fandom/Minicon/Mc45/minicon_email_list_20091222.txt" (in fsfs-backup): Permission denied (13) rsync: failed to read xattr rsync.%stat for "/ddb/Documents/Fandom/Minicon/Mc45/pr1email-end.txt" (in fsfs-backup): Permission denied (13) # and a few dozen further similar errors
I think that that error message is an rsyncd error (so why is it labeled "rsync:"?). The reason I think that is that fsfs-backup is a user and a subdirectory on the receiving (rsyncd) system, and does not exist at all on the sending system.
On the sending side, that directory and file look like this:
Code:
root@FSFS:/zp1/home/ddb# ls -ld /zp1/home/ddb/Documents/Fandom/Minicon/Mc45 dr-xr-xr-x 2 65535 other 21 Mar 31 2010 /zp1/home/ddb/Documents/Fandom/Minicon/Mc45 root@FSFS:/zp1/home/ddb# ls -l /zp1/home/ddb/Documents/Fandom/Minicon/Mc45/minicon_email_list_20091222.txt -r-------- 1 65535 other 33097 Dec 23 2009 /zp1/home/ddb/Documents/Fandom/Minicon/Mc45/minicon_email_list_20091222.txt
Read-only, and a strange user (but I'm not propagating UID across the rsync), but nothing strange that I can see; in particular, no ACL indicated.
And on the receiving side:
Code:
[ddb@rebma /mnt/Z02/fsfs-backup]$ sudo ls -ld /mnt/Z02/fsfs-backup/ddb/Documents/Fandom/Minicon/Mc45/ drwxr-xr-x 2 fsfs-backup wheel 21 Mar 31 2010 /mnt/Z02/fsfs-backup/ddb/Documents/Fandom/Minicon/Mc45/ [ddb@rebma /mnt/Z02/fsfs-backup]$ [ddb@rebma /mnt/Z02/fsfs-backup]$ sudo ls -l /mnt/Z02/fsfs-backup/ddb/Documents/Fandom/Minicon/Mc45/minicon_email_list_20091222.txt -rw------- 1 fsfs-backup wheel 33097 Dec 23 2009 /mnt/Z02/fsfs-backup/ddb/Documents/Fandom/Minicon/Mc45/minicon_email_list_20091222.txt
Finally, the rsyncd.conf file is:
Code:
[ddb@rebma /mnt/Z02/fsfs-backup]$ cat /etc/local/rsyncd.conf use chroot = yes max connections = 4 pid file = /var/run/rsyncd.pid [fsfs-backup] path = /mnt/Z02/fsfs-backup max connections = 4 uid = fsfs-backup gid = fsfs-backup comment = Access to fsfs backup area read only = false write only = false hosts allow = 192.168.1.205 fake super = yes
Any ideas, hints, clues, leading questions, or suggestions?