LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-12-2013, 03:44 PM   #1
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Rep: Reputation: 7
Strange behavior with simple backup routine


Hey all, I've created a simple backup system for quick restoring of files in case they get accidentally deleted. My backup server is running Debian Squeeze, and the storage is a 2TB MDADM RAID 10 array. I did something like this a while back and everything was working fine but I came in this morning and my Nagios server was complaining about my backup server (Critical CPU Usage and excessive processes). Here's what I'm using for my backup script:

Code:
mount -t cifs -o username=admin,password=Pass1! //192.168.2.29/Shares /mnt/Windows
cp -R /mnt/Windows/"Not Shared"/* /mnt/r10/Backup/srvDictum2/5-Fri/NotShared
cp -R /mnt/Windows/Shared/* /mnt/r10/Backup/srvDictum2/5-Fri/Shared
umount /mnt/Windows
I ran ps -aux | less and toward the bottom I saw this:

Code:
root  14684  0.0  0.0  45556   776 ?   S    01:56   0:00 /USR/SBIN/CRON
root  14685  0.0  0.0   3956   372 ?   Ss   01:56   0:00 /bin/sh -c /home/jobee/bin/TueDictum2  >/dev/null 2>&1
root  14686  0.0  0.0   3956   384 ?   S    01:56   0:00 /bin/sh /home/jobee/bin/TueDictum2
root  14688  0.0  0.0  18080   684 ?   D    01:56   0:31 cp -R /mnt/Windows/Not Shared/ADA
and then 20 more lines filled with folder entries (/mnt/Windows yadda yadda). There were about 61 of those groups.

I started this from crontab (a different backup file for each day of the week) so I'm going to go in and kill that until I figure out what I'm doing wrong. Any help would be greatly appreciated.

Thanks,

Joe B
 
Old 02-12-2013, 04:39 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
The process status is your big indicator here that its a wait issue.

The process status of D is disk wait basically.

Man page:
Code:
 D   uninterruptible sleep (usually IO)
This is a common problem with CIFS(atleast in my experience) windows shares. Its usually resolved by a reboot of the windows machine and a restart of the services on the linux machine but thats been in my cases. You can do an strace on teh process it is probably doing a "POLL" on a file descriptor which is a socket that is connecting to the windows machine. If that's the case you know the issue is on the Windows box.
 
1 members found this post helpful.
Old 02-15-2013, 01:22 PM   #3
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Ok, thought it was because I was backing up over a 100Mb (when I thought it was a 1Gb connection) but that's not it. I'm running at 1Gb now and I'm still getting this error...

That was yesterday before I was interrupted. Today the server is almost unresponsive; ls -l takes about 10 seconds to display and an additional 10 seconds or so to run.

I don't understand why this worked on another server a few months ago but not now. I'll kill this backup, create some wimpy folders and files and experiment on them while running Wireshark to see if I can figure this out.

Thanks,

Joe B
 
  


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
Best way to program a simple serial routine nutthick Programming 2 06-20-2006 01:15 AM
Arkeia Network Backup - Strange Behavior - Can anybody help? bdb4269 Linux - Software 4 03-03-2006 06:43 PM
Very Strange Behavior raysr Mandriva 4 08-31-2004 02:06 PM
Please confirm backup routine LLS Linux - General 4 09-30-2003 11:30 AM
Strange Behavior andrewb758 Linux - Hardware 5 08-31-2003 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:01 PM.

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