Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 03-06-2009, 05:26 PM   #1
LQ Newbie
Registered: Jan 2009
Posts: 9

Rep: Reputation: 0
rsync causing remote system to sometimes go readonly

Hey all:

I sync several linux systems using the rsync command.
This has been working well for a couple of years. Lately,
though, sometimes a rsync call from one RHEL 4 machine
to another RHEL 4 machine causes the remote machine to
remount its file system as readonly. I then have to reboot
and run fsck, etc. Quite a pain.

Both x86_64 systems have up-to-date kernels:

Linux 2.6.9-78.0.8.ELsmp #1 SMP Wed Nov 5 07:14:58 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

The rsync command is run within a script that updates selected
subdirectories of my home directory. whisper2 is the name of
the computer to be updated, which is the computer that remounts
/ as readonly:


pushd ~

foreach dirName (classify octave Workshop contracts/Whisper contracts/SDSI)
rsync -avz --exclude="core.*" \
--exclude="*.o" \
--exclude="*.a" \
--exclude="whisperControl" \
--exclude="*.ps" \
--exclude="*.tim" \
--exclude="ICS" \
--exclude="fftw-2.1.3" \
--exclude="*.bin" \
--exclude=".cshrc" \
--exclude="OLD" \
--exclude="Disk_*" \
--exclude="EEG_1*" \
--exclude="Aug2006*" \
/home/spooner/$dirName/ \$dirName



I've gone back and forth with Red Hat Support and they
don't have many clues.

The two involved systems are quite similar and use internal
SCSI disks (no USB disks are involved in the rsync updating).

We moved /var/log/messages to a separate disk on whisper2
because when the remounting to readonly happens, there is
some unreadable line that gets appended to messages. Since
moving /var/log/messages to /disk2, however, I've not been
able to force the problem.

Anyway, since Red Hat is struggling, I thought I'd check here.
Does this problem sound familiar to anyone? I've search LQ
but haven't found anything helpful.


Old 03-08-2009, 03:05 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,707

Rep: Reputation: 1758Reputation: 1758Reputation: 1758Reputation: 1758Reputation: 1758Reputation: 1758Reputation: 1758Reputation: 1758Reputation: 1758Reputation: 1758Reputation: 1758
What do you have on your mount options in fstab ?.
Personally I would be leery of that (target) disk.
Old 03-10-2009, 06:17 PM   #3
LQ Newbie
Registered: Jan 2009
Posts: 9

Original Poster
Rep: Reputation: 0

The target computer is whisper2, and the source computer, luna,
has the following relevant entries in /etc/fstab:

--------------------------------------------------------------- /mnt/Whisper_whisper2 nfs user,rsize=4096,bg,
soft 0 0 /mnt/Whisper_disk2 nfs user,rsize=4096,bg,
soft 0 0 /mnt/Whisper2RAID_A nfs use
r,rsize=4096,bg,soft 0 0 /mnt/Whisper2RAID_B nfs use
r,rsize=4096,bg,soft 0 0 /mnt/Whisper2RAID_C nfs use
r,rsize=4096,bg,soft 0 0 /mnt/Whisper2RAID_D nfs use
r,rsize=4096,bg,soft 0 0

These whisper2 filesystems are not always mounted on luna, however.
I haven't seen any correlation between when they are mounted
and when I get the readonly problem.




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
My grub is not loading on dual operating system with windows Xp Pro causing my system marlene tack Linux - Newbie 2 03-17-2008 07:54 AM
rsync over two remote hosts Meson Linux - General 5 01-12-2008 08:46 AM
Remote rsync permissions error gigamike Linux - Networking 0 05-19-2007 07:21 PM
how to mount a readonly file system? redsector Linux - Newbie 4 05-16-2005 01:48 AM
Remote SSH login causing system shutdown stevey99 Linux - Networking 2 01-08-2005 03:14 PM

All times are GMT -5. The time now is 05:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration