NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
yachtman
Sep 20, 2006Aspirant
NV-NFS --> NFS backup failing due to permissions
:?
Need help with a permissioning problem between NFS systems.
Here are the details - Backing up files from an NV (using NFS backup) to a network attached server (Kurobox HG) with NFS running. Got all the files to transfer, but I get an error on every file indicating that permissions could not be set.
**********
cp: failed to preserve ownership for `/job_007/letterhead.dot': Operation not permitted
**********
Scanned other postings and tried to tackle the problem through setting UIDS, and I got as far as setting the UID on the backup server to be the same as that on the NV. No change.
As an aside, on the NV Backup settings page I set the login to be a specific user, not root.
Any ideas of what my problem is?
yachtman
Additional details: v3.00c1-p2 / User security (*** EDIT.. was Share security)
BACKUP LOG
Job: 007
Protocol: nfs
Source: [test_share]/
Destination: 192.168.0.6:/datafiles/backup
`./LinuxTrainingApp.pdf' -> `/job_007/LinuxTrainingApp.pdf'
cp: failed to preserve ownership for `/job_007/LinuxTrainingApp.pdf': Operation not permitted
`./01 NPR_ Bringing Narnia to the Screen.mp3' -> `/job_007/01 NPR_ Bringing Narnia to the Screen.mp3'
cp: failed to preserve ownership for `/job_007/01 NPR_ Bringing Narnia to the Screen.mp3': Operation not permitted
`./AAPL-600 shares.pdf' -> `/job_007/AAPL-600 shares.pdf'
cp: failed to preserve ownership for `/job_007/AAPL-600 shares.pdf': Operation not permitted
`./letterhead.dot' -> `/job_007/letterhead.dot'
cp: failed to preserve ownership for `/job_007/letterhead.dot': Operation not permitted
`./Paula_DeAnda_-_Paula_DeAnda_(2006)_-_R_B.3517526.TPB.torrent' -> `/job_007/Paula_DeAnda_-_Paula_DeAnda_(2006)_-_R_B.3517526.TPB.torrent'
cp: failed to preserve ownership for `/job_007/Paula_DeAnda_-_Paula_DeAnda_(2006)_-_R_B.3517526.TPB.torrent': Operation not permitted
cp: preserving times for `/job_007/.': Operation not permitted
Backup failed Wed Sep 20 22:37:37 SGT 2006.
Reason for failure:
Error encountered copying data from source path /test_share/ ==> 192.168.0.6:/datafiles/backup due to unknown reason. Please see log.
Need help with a permissioning problem between NFS systems.
Here are the details - Backing up files from an NV (using NFS backup) to a network attached server (Kurobox HG) with NFS running. Got all the files to transfer, but I get an error on every file indicating that permissions could not be set.
**********
cp: failed to preserve ownership for `/job_007/letterhead.dot': Operation not permitted
**********
Scanned other postings and tried to tackle the problem through setting UIDS, and I got as far as setting the UID on the backup server to be the same as that on the NV. No change.
As an aside, on the NV Backup settings page I set the login to be a specific user, not root.
Any ideas of what my problem is?
yachtman
Additional details: v3.00c1-p2 / User security (*** EDIT.. was Share security)
BACKUP LOG
Job: 007
Protocol: nfs
Source: [test_share]/
Destination: 192.168.0.6:/datafiles/backup
`./LinuxTrainingApp.pdf' -> `/job_007/LinuxTrainingApp.pdf'
cp: failed to preserve ownership for `/job_007/LinuxTrainingApp.pdf': Operation not permitted
`./01 NPR_ Bringing Narnia to the Screen.mp3' -> `/job_007/01 NPR_ Bringing Narnia to the Screen.mp3'
cp: failed to preserve ownership for `/job_007/01 NPR_ Bringing Narnia to the Screen.mp3': Operation not permitted
`./AAPL-600 shares.pdf' -> `/job_007/AAPL-600 shares.pdf'
cp: failed to preserve ownership for `/job_007/AAPL-600 shares.pdf': Operation not permitted
`./letterhead.dot' -> `/job_007/letterhead.dot'
cp: failed to preserve ownership for `/job_007/letterhead.dot': Operation not permitted
`./Paula_DeAnda_-_Paula_DeAnda_(2006)_-_R_B.3517526.TPB.torrent' -> `/job_007/Paula_DeAnda_-_Paula_DeAnda_(2006)_-_R_B.3517526.TPB.torrent'
cp: failed to preserve ownership for `/job_007/Paula_DeAnda_-_Paula_DeAnda_(2006)_-_R_B.3517526.TPB.torrent': Operation not permitted
cp: preserving times for `/job_007/.': Operation not permitted
Backup failed Wed Sep 20 22:37:37 SGT 2006.
Reason for failure:
Error encountered copying data from source path /test_share/ ==> 192.168.0.6:/datafiles/backup due to unknown reason. Please see log.
5 Replies
Replies have been turned off for this discussion
- ewokNETGEAR ExpertMy guess is that the NFS server is doing what's called root squashing, which means that when a user who is root is trying to perform some activity on the server over NFS, the root user can only access it as the squashed user, which is usually "nobody".
An NFS backup runs as the root user. Since his user is being squashed, he can't preserve file ownerships, which is causing the error you see. - kaffeetasseAspirantI get the same error on my ReadyNAS Duo using NFS backup to a network attached server. Is there any way to specify under which user (other than root) the NFS backup should run? Or is there any way to specify the uid / gid which should be used by the ReadyNAS Duo when connecting to the network attached server to backup to?
- ewokNETGEAR ExpertWow, five year thread bump. :)
NFS backups will always happen as root. - actignerAspirantI just started testing a Readynas to rRadynas backup/sync operation and am getting the same 'failed to preserve ownership for' message. Is this normal? Once complete full copy I will switch to rsync.
- kaffeetasseAspirantI think I have found a workaround for this. It does however require that on the local NAS the add on "Enable Root SSH Access" (http://www.readynas.com/?p=4203) is installed:
1. Set up a user (e.g. john1) via Frontview on the local NAS with a uid corresponding to the uid of the user you want to use on the remote NAS (i.e. the user under which the backup process using rsnyc should run).
2. Set up a share (e.g. remotenas) via Frontview on the local NAS that will be used as mount point for the remote share.
3. Login as root via ssh to the local NAS.
4. Mount the share (e.g. /mnt/md1/test) from the remote NAS (e.g. 192.168.8.7) to which you want to back up to via NFS:mount -t nfs 192.168.8.7:/mnt/md1/test /remotenas
5. Run rsync to back up a share (e.g. media) on the local NAS to the remote NAS:sudo -u john1 rsync -v -r -u /media/ /remotenas/
After completion a copy of the content of the share media on the local NAS is in the share /mnt/md1/test on the remote NAS.
6. Unmount the share:umount /remotenas
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!