LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-25-2012, 09:37 PM   #1
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Error while copying data from one server to another, using rsync.


Hi,

I'm using RHEL 5.3 and while copying some data i.e., log files from one server to another using rsync, I got some error.
I executed this command for copying:

Code:
# rsync -avze ssh 2012Mar11-2012Mar11 <destination-IP-address>:/logs/Linux_Server_Logs/sarg/Mar-2012/daily/
And I got this error:

Quote:
rsync: recv_generator: mkdir "/logs/Linux_Server_Logs/sarg/Mar-2012/daily/2012Mar11-2012Mar11/172.16.31.55" failed: No such file or directory (2)
rsync: stat "/logs/Linux_Server_Logs/sarg/Mar-2012/daily/2012Mar11-2012Mar11/172.16.31.55" failed: No such file or directory (2)
The folder '012Mar11-2012Mar11' is of 143MB and there are number of directories and files in there.

For every directories inside 2012Mar11-2012Mar11 folder I'm getting this error while copying.
 
Old 03-25-2012, 09:44 PM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Original Poster
Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
I tried copying using scp. I got this error:

Code:
# scp -r 2012Mar11-2012Mar11 root@172.16.104.22:/logs/Linux_Server_Logs/sarg/Mar-2012/daily
root@172.16.104.22's password:
scp: /logs/Linux_Server_Logs/sarg/Mar-2012/daily/2012Mar11-2012Mar11: Read-only file system
 
Old 03-25-2012, 11:39 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,361

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
Read-only file system
Well, that would be a problem ....
 
Old 03-26-2012, 12:02 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Original Poster
Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
Read-only file system
Exactly that is the problem. And I solved this problem by again mounting the filesystem.
I used this command to remount the filesystem:

Code:
# mount -o rw -t ext3 /dev/logsvg/logslv /logs
And it worked for me and succeeded in copying the data in destination server.

Now again I got the error while deleting the data from the destination server. Again it says "read only filesystem"
 
Old 03-26-2012, 01:31 AM   #5
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Original Poster
Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
I again tried to mount the filesystem with this command:

Code:
# mount -o remount,rw -t ext3 /dev/logsvg/logslv /logs
It gives me this error:
Quote:
mount: block device /dev/logsvg/logslv is write-protected, mounting read-only
I tried to ignore the locking failure with this command:

Code:
# lvchange --ignorelockingfailure -p w /dev/logsvg/logslv
It gives me this error:
Quote:
Invalid argument w
Error during parsing of command line.
Any idea?
 
Old 06-14-2012, 06:43 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Original Poster
Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Well, now the problem has been solved. The partition which was causing errors was deleted and recreated the same partition. All the problem was due to the extraction of some free space from the server to rearrange the SAN space. So, I marking the thread as SOLVED.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync: error while copying Fusi Linux - Software 5 06-09-2013 11:00 PM
rsync not copying files, no error shown RedMist Linux - Server 1 09-16-2009 08:44 AM
Error while copying data to other Hard disk fa_khan50 Linux - Newbie 6 03-24-2008 06:46 AM
I/O error while copying some data on to external HDD gary4gar Linux - Hardware 2 10-31-2007 03:50 AM
server (Fedora core 3) crashing after copying data... zepplin611 Linux - Hardware 1 01-21-2005 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:13 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