Koozali.org: home of the SME Server

Rsync problem on Saturdays only

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Rsync problem on Saturdays only
« on: October 03, 2016, 11:34:36 AM »
I have configured the sme server 9 rsync backup monday to saturday at 3.00am. From 3 months, rsync stucks only on every saturday. I checked that the availability of Nas drive has no errors, enough space to run backup. No other crontab jobs are assigned to run on saturday. My rsync command consists only --delete option and --log-file option.
When I track the log, it says
"No space left on device (28)"
"rsync error: error in file IO (code 11) at receiver.c(397) [receiver=3.1.1]"
"rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.1]".

My problem is why this happens only on saturdays and if there any other thing that i can monitor this problem?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Rsync problem on Saturdays only
« Reply #1 on: October 03, 2016, 11:52:56 AM »
"No space left on device (28)"

that's all..

BTW, since you're not telling us how are you doing your backup and using a non standard procedure, is hard to help you

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Rsync problem on Saturdays only
« Reply #2 on: October 03, 2016, 02:44:18 PM »
I am doing my backup by rsync to a Nas drive. using --delete options and --log-file options are using.
what is the thing that non standard way? you mean that rsync is not suitable to backup files to Nas drive ?

Offline ReetP

  • *
  • 3,940
  • +6/-0
Re: Rsync problem on Saturdays only
« Reply #3 on: October 04, 2016, 12:17:50 AM »
Have you setup rsync manually or are you using the.rsync contrib?

If you are using the contrib please add a bug.

If you are setting it up manually you need to show some configurations and how you run it etc.

Clearly rsync thinks there is no space. You need to look at why it thinks this is the case.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Rsync problem on Saturdays only
« Reply #4 on: October 04, 2016, 10:31:55 AM »
Hi ReetP, I run rsync by manually with crontab job,
rsync -ar --delete --log-file "/var/log/rsync/rsync.log.$(date)" /source /destination

where destination is Nas drive connected by Cifs with local credentials of nas drive.

Why this happens only on saturdays is the mysterious thing to me, is it?

There are 150GB free on nas drive.
When it is stucked by the message there is no space, the most problem is all the files are syncronized to mounted location and if i unmount it, the files are remain in the mounted location. then the server is in dead position. 
« Last Edit: October 04, 2016, 10:41:32 AM by smnirosh »

Offline ReetP

  • *
  • 3,940
  • +6/-0
Re: Rsync problem on Saturdays only
« Reply #5 on: October 04, 2016, 11:51:07 AM »
Why this happens only on saturdays is the mysterious thing to me, is it?

I suggest you check on Friday before the rsync runs to see if the connection is OK - try running manually on a Friday. Presumably you have something that happens weekly that upsets the sync job.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Rsync problem on Saturdays only
« Reply #6 on: October 04, 2016, 11:56:17 AM »
I am doing my backup by rsync to a Nas drive. using --delete options and --log-file options are using.
what is the thing that non standard way? you mean that rsync is not suitable to backup files to Nas drive ?

I meant that you're doing backups of your server in a custom way, not using any of the features available via server-manager or contrib.
IOW, you're using a custom script (which we ignore) so it's hard for us to help you..
I agree with reetp, check what happens on your server on friday/saturday

BTW, I use a rsync script on two servers of mine to keep files in sync from the "master" to the slave.. will the master fail, I can "rise" the slave in few minutes, just like affa does (we're talking about 4 TB..); it runs everyday, never had an issue

guest22

Re: Rsync problem on Saturdays only
« Reply #7 on: October 04, 2016, 12:56:19 PM »
I suggest you check on Friday before the rsync runs to see if the connection is OK - try running manually on a Friday. Presumably you have something that happens weekly that upsets the sync job.


I would check the NAS device to see what it is doing on a Saturday during that specific time. Maybe it's busy...

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Rsync problem on Saturdays only
« Reply #8 on: October 04, 2016, 02:08:54 PM »
I understand what stefano and RequestedDeletion suggest.
Yes i already run a backup from "workstation backup" to another Nas drive. (purchased 2month before) it has no problem. I use the same nas drive model for backup via the rsync (my boss suggested to do also a rsync). I, once, ran the friday backup manually and got no problem. Checked that what tasks are scheduled to run at the same time.
According to you i am admitted to believe that this not a fault of rsync or sme server, but am i possible to track this down to point out the problem.?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Rsync problem on Saturdays only
« Reply #9 on: October 04, 2016, 02:15:46 PM »
well, I'd start from telling us what do you want achieve..

you're telling us you're using rsync toward a nas.. what do you rsync? files? emails?
what's the aim? have a copy of your files on a second machine? keeping a good copy of last version of a file?
once we know what you what to achieve, we can help you (maybe rsync is not the right tool/approach)

BTW, if your boss is not a tech, you'd ask him "please explain me your proble, not your solution" before starting typing code on the keyboard :-)

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Rsync problem on Saturdays only
« Reply #10 on: October 04, 2016, 02:42:27 PM »
Thanks stefano, i have answered to your questions below:

you're telling us you're using rsync toward a nas.. what do you rsync? Home folder
what's the aim? keeping a good copy of last version of a file


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Rsync problem on Saturdays only
« Reply #11 on: October 04, 2016, 09:23:11 PM »
Thanks stefano, i have answered to your questions below:

you're telling us you're using rsync toward a nas.. what do you rsync? Home folder
what's the aim? keeping a good copy of last version of a file

Process of elimination, change the Sat cron job to Sunday & see what happens
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Rsync problem on Saturdays only
« Reply #12 on: October 05, 2016, 03:28:26 PM »
thanks janet. I will do it and let you all know.
have a good day to all