Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 31

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, 02:17 AM   #2
Senior Member
Registered: Apr 2010
Posts: 1,918

Rep: Reputation: 342Reputation: 342Reputation: 342Reputation: 342
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 02:19 AM. Reason: edit
Old 08-19-2016, 12:07 AM   #3
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-19-2016, 12:16 AM   #4
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 740

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

Old 08-19-2016, 09:11 AM   #5
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,101
Blog Entries: 4

Rep: Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661
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 09:19 AM.


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:42 PM.

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