LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-08-2016, 12:43 AM   #1
AbrahamJose
Member
 
Registered: Feb 2006
Location: India
Posts: 167

Rep: Reputation: 31
rsysnc


I used to use rsync to copy files after nfs mount.

When I tried it in a new RHEL server , I got the error message
rsysnc chown .... failed. Invalid argument (22)

Can anybody help me
 
Old 08-08-2016, 01:17 AM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,890

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Are you copying from RHEL to Windows?

Make sure both target and destination is using file system that supports chown, or ext# file system.

or just do an rsync -av <your parameters source - destination>

or post the rsync command you supplied.

Last edited by JJJCR; 08-08-2016 at 01:19 AM. Reason: edit
 
Old 08-18-2016, 11:07 PM   #3
AbrahamJose
Member
 
Registered: Feb 2006
Location: India
Posts: 167

Original Poster
Rep: Reputation: 31
Sorry for the delay in reply. I was not in station for few days.
I am copying files from Linux to Linux
Command is
rsync -azv --delete source destination
 
Old 08-18-2016, 11:16 PM   #4
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 722

Rep: Reputation: 152Reputation: 152
works fine for me. Can you copy the actual command plus error message and paste here as a quote?

Regards
 
Old 08-19-2016, 08:11 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,342
Blog Entries: 4

Rep: Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332
The invalid argument (22) message more-or-less happens with any connectivity issue. It is trying to set the ownership of the transferred file. Unfortunately, rsync is not the world's best at producing meaningful error messages.

Provide us with the actual rsync command that you are trying to use, and tell us a little bit more about that share ... and your permissions to it.

Other possibly useful (external) links:
Remember that NFS is very peculiar with regards to owner-ids. Does this owner-id (uuid number ...) exist on both servers? Does the share allow you to change it, or does it "squash?"

Last edited by sundialsvcs; 08-19-2016 at 08:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration