NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
rapple
Jul 08, 2020Aspirant
ReadyNAS, RSYNC, Windows ACLs and XigmaNAS
So, I have a new XigmaNAS server and an old ReadyNAS 10TB server (95% full). They are connected and can talk directly over a dedicated link. Sorry but it was much cheaper to build a 50TB server than buy one of the newer Netgear Boxes.
The objective is to have the READYNAS device become the backup server once the data has been copied over.
I currently use Netgear's RSYNC to auto backup from the ReadyNAS to an even older ReadyNAS (DUoV2) and all is fine. I can then mount the backup shares under windows and all the permissions are intact.
During testing I couldn't get a ReadyNAS Rsync job to log in correctly to the Xigmanas server so I've set the XigmaNAS as a client, set up RSYNC under share/network access and run a job to transfer a small share from ReadyNAS. All appears to transfer. At the root level of the share I can happily create/edit/delete documents. However at lower level directories I can read but not write anything. or I can't access some directories i.e. permissions aren't being transferred.
When I look at the permissions I can see, the ReadyNAS security list looks much more like a "normal" Windows ACL and includes CREATOR OWNER, CREATOR GROUP with owners and users listed from the ReadyNAS device. The XigmaNAS list is essentially all special permissions for XigmaNAS users and deosn't include the CREATOR permissons.
The Windows ACLs aren't complicated but I'd rather continue to use them as most of the clients used here are windows.
I think that the ZFS datasets and SMB shares are set up correctly on XigmaNAS to inherit ACLs and permissions. I can copy the same share using a windows client and all seems to be OK. So I'm guessing that it's either RSYNC itself or RSYNC combined with how the two different systems store the Windows ACLs. but reading the docs for SAMBA, RSYNC, ReadyNAS and XigmaNAS at "user" level isn't giving me a direction to try next. There's many a thread covering where it doesn't work but haven't ofund much that's helpful in a general sense or specific to these two environments.
Obviously I could use a Windows client, but tying up a windows machine to transfer 10TB over the main network rather than use the direct port to port link between the two boxes seems mad. In any case I wouldn't then have a solution for automated backup between XigmaNAS and ReadyNAS going forward.
So I'd either like to get this working or if that isn't possible find another way to copy windows shares between the two boxes.
Has anyone else done this or if you can explain or point to references that explain how either XigmaNAS or Readynas or both use (are configured for) SAMBA and RSYNC that would be helpful.
Thanks
7 Replies
Replies have been turned off for this discussion
- SandsharkSensei
Linux permissions always include an owner (aka creator) user and group, so you are mis-interpreting something.
You may need to reset the permissions on the share(s). In the Share settings, insure everything is as you want it in File Access/Security, then select Reset at the left and click the box. It can take a bit before the NAS will report it has completed the task if you have a lot of files and folders.
- rappleAspirant
Thanks for the reply Sandshark, but I'm not quite sure what you are referring to here when you say Linux. Do you mean ReadyNAS OS? Which system are you talking about?
There's nothing wrong with the ReadyNAS solution as I've been running with it for a number of years. Windows ACL's seem to work fine and transfer fine.
I don't think there's anything wrong with the XigmaNAS setup either, but FreeBSD and ZFS are new to me so there's always scope there for errors.
I think the issue is in the transfer from one box to the other and I'm trying to work out why. It may well be that RSYNC isn't smart enough to do what I need it to do and that Netgear have coded something specific with their Rsync solution (as I said, it works between my Netgear boxes) . It may just be that I need to configure Rsync a bit better or it may be that I need to do something specific on each environment (NAS box). What I'm really after is understanding how it works on each OS or if I'm really, really lucky to find someone that has already done it!
- StephenBGuru - Experienced User
rapple wrote:
and that Netgear have coded something specific with their Rsync solution
It's just linux rsync. I'm not 100% sure of the command line options, but there is nothing they have "coded".
rapple wrote:
All appears to transfer. At the root level of the share I can happily create/edit/delete documents. However at lower level directories I can read but not write anything. or I can't access some directories i.e. permissions aren't being transferred.
File Permissions in linux are linked to the UID/GID used by your account. The UID/GID of the transfered files aren't remapped by rsync. You can see the UID/GID of the files with ls -n
Since you want the XigmaNAS to become the main NAS, then the simplest thing to do is to reset the permissions on the XigmaNAS (for instance with chmod and/or chown,chgrp) and see if that solves your access problem.
Another option is to change your account UID or GID to match the UID or GID of the files..
A third option is create a user account on the RN104 that has the same UID/GID as the account on the XigmaNAS. Then set the share(s) to that user/group, and then re-apply reset the file permissions on the NAS as suggested by Sandshark. Then run rsync again (it should run pretty quickly).
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!