Rsync, Perl and samba filesystem (smbfs) ** SOLUTION **
drpoo at houston.rr.com
Thu Dec 5 21:09:56 EST 2002
Well, i think i got the problem solved... Well, *I* didn't so much.
The problem was with the File::Rsync module itself that i was using (i guess
i didn't even mention that..?)
I got in contact with the author of the module and he said there was someone
just a week or so ago that emailed him having a very similiar problem...So he
patched the module.. Now version 0.23 (but not on CPAN, yet, let me know if
anyone needs it) and everything works fine.
Thanks for all you're help.
On Thursday 05 December 2002 02:36 pm, Dave Dykstra wrote:
> Also, you'll probably want to use the --whole-file option of rsync to
> minimize the amount of samba network traffic (although J.W. is probably
> right about the main problem being in perl). That's the default in later
> versions of rsync when copying between two local file paths.
> - Dave Dykstra
> On Tue, Dec 03, 2002 at 03:49:41PM -0800, jw schultz wrote:
> > On Tue, Dec 03, 2002 at 04:33:38PM -0600, Dr. Poo wrote:
> > > My name is Chris, Hi!
> > >
> > > I've got rsync being called from a perl script that is called by cron
> > > (or for that matter, by hand) and when I 'rsync' a locally mounted
> > > samba filesystem (eg. to /mnt/smbfs), it successfully syncs the smbfs
> > > to the destination directory, but without reason hangs... and take all
> > > my cpu power...
> > >
> > > When i look at all the processes running, the rsync pid is defuct...
> > > and it's actually saying that the parent perl script that made the call
> > > is gobbling up all my cpu resources....
> > >
> > > This ONLY happens (so far anyways) with the samba mounts... Any
> > > suggestions??
> > >
> > > Thanks a bundle!
> > > -Chris
> > The fact that the rsync process is defunct tells me that it
> > isn't rsync. Defunct (also known as the zombie state) means
> > that the process has exited but the parent (your perl
> > script) has not reaped the status with wait().
> > It sounds like your perl script is reading from the rsync
> > output and failing to check for EOF. If you described or
> > better sent your perl script someone might be able to help.
> > --
> > ________________________________________________________________
> > J.W. Schultz Pegasystems Technologies
> > email address: jw at pegasys.ws
More information about the rsync