Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use BackupPC to create backups of all servers at work. What once took an hour to make a complete backup now takes twelve hours or more. I've already determined through tests that the memory and hard drives are OK. It's super delayed even working through the command line.
I thought swap space was the issue first but then when I created a swap file, it didn't help much.
With the above, sure looks like an underperforming disk system.
The setup is software RAID1. Do you have any tips on improving it? After startup one time it was able to do a backup of one server but then went slow again.
Thanks in advance.
Our manager was laid off and I'm not a Linux expert by any means, but I can find my way around.
Last edited by Toasterman; 06-27-2014 at 08:58 AM.
It's hanging on a job. Which job? Log into the web interface, find out what job is still running and look at the error logs for that host.
--edit-- on second thought, since you can't see the full command, the only remedy I can think of is to log iotop to a file to see the full command. The command will show the host name which you can lookup in the web interface. I'm sure someone smarter than me has a better solution.
make sure you aint dd to your md0 or sdX , only towards that folder in order not to destroy raid data
15 min boot time is simply not allowed ! mine is 6 seconds on SSD drive and 12 secs on sata 2 (since grub)
on 2 blue caviar 1 TB raid 1 should be about 270 MB/s on first test
have you got raid 10 (two raid 1 grouped in raid 0 ) ? even so , resync should be longer if raid is dammaged , but not affecting overall boot time
what hdd-s you use ?
please post here
Code:
cat /proc/mdstat
as syg00 said , some is simply not right there
make sure sata cables are in good conditions , i ve seen nasty boot times and errors just from some 1 buck damn faulty cable , raid 1 is more prone to this kinda faults coz data is stripped along
make sure you aint dd to your md0 or sdX , only towards that folder in order not to destroy raid data
Sorry but what is that folder? Am I supposed to create one? Would I be safe if I copied and pasted exactly what you put here? The fact that you said I could destroy RAID data makes me cautious so I want to make sure.
Quote:
Is this server using hardware or software RAID? What RAID level?
Hello sir !
yes , mkdir test folder as I specified
As long you run dd on a file but not an /dev/sdX it cannot distroy any data .. but ......
well , do not run any tests specified above ! it aint worth it !
Sync raid 1 says 12K/sec .. it cannot be true ! this resync speed cannot be allowed even on a 286 old time computer.
simply replace sata2 cables , and run the numbers again.. if computer got dusty then disasembly all parts inside and clean them properly ..
i do repeat myself .. smart says it is ok but sync speed is not tolerable .
1. Smart is ok on both drives
2. sync speed is not ok by any means
3.boot time is 15 mins or so...
overall , main (not spare) drive is faulting somehow
seek time , read speed on main drive sucks big time that is why sync take ages and boot time also
Combined with SMART ok results , the problem is even a faulty sata cable , or MAYBE .. motherboard can be the issue here
Sometimes , if power drain is 2 high , power source can be the culprit , but on a server built upon a desktop PC , except a powerfull video card , everything else suppose to drain just about 150 W - 170 W , not more. ( CPU about 100 - 125 W , HDD just 8W each , Mobo , and some other devices )
Just for benchmarking sake , my raid 1 (2 WD caviar blue 1 TB ) resync at 137 Mb/s in just 2 hours , not 12 K/s like your mdstat report.
Replace all sata cables and hope to hear nothing but good infos here !
Sincerely , gabriel@linux-romania.com
The drives were in a front hot-swappable bay. I removed them from there and connected them directly to the motherboard. No improvement
I then put the hard drives in another computer to see if the motherboard was the problem. No improvement
So it has something to do with the drives after all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.