LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-20-2007, 01:59 AM   #1
jmoschetti45
Member
 
Registered: Oct 2004
Location: Michigan
Distribution: Debian Squeeze (2.6.32-5)
Posts: 137
Blog Entries: 1

Rep: Reputation: 17
Exclamation FC6 Server Randomly Writes Data To HDD


Brace yourselves for this one, I'm totally clueless.

At random, my server will stop responding (PHP errors out, sites don't load, MySQL refuses logins, etc). It'll sit in that coma state for about 10-15 minutes, then resume working like nothing ever went wrong.

After that mess is over, a "df -h" shows that 8-10GB of space went MIA. It literally goes MIA, the partition size doesn't change, and I can't locate anything on it consuming that space. Logs don't show anything either. No logs for anything even show that things went bad at all, hence I'm left totally clueless.

I've checked for weird services, signs of being hacked, etc, but nothing comes up.

This has happened twice now, 13 days exactly apart, but at different times of the day. Next time this happens it'll be out of space.

Suggestions?
 
Old 05-20-2007, 07:00 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I don't know why it's happening, but the du command should help you find where the files are being written. For example, run du -sh /* to get the space usage at the top of your file system. If, for example, there was an unusually large usage under /var, you could use du -sh /var/* and keep going like that until you find the files that were created.

Alternatively, if you know when it's happening, you could use the find command and look for files less than a particular age..
 
Old 05-22-2007, 01:21 AM   #3
jmoschetti45
Member
 
Registered: Oct 2004
Location: Michigan
Distribution: Debian Squeeze (2.6.32-5)
Posts: 137

Original Poster
Blog Entries: 1

Rep: Reputation: 17
I know what days things went bad on, any way to list what files were created/modified that day?
 
Old 05-22-2007, 02:14 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The find command will do that - have a look at the -amin, -atime, -mmin and -mtime options. For example, the following will list the files that were accessed at least 100 minutes ago in the /tmp directory:
Code:
find /tmp -amin +100
 
Old 05-22-2007, 03:02 AM   #5
jmoschetti45
Member
 
Registered: Oct 2004
Location: Michigan
Distribution: Debian Squeeze (2.6.32-5)
Posts: 137

Original Poster
Blog Entries: 1

Rep: Reputation: 17
Thanks. Seems like logs were the cause of this mess. Logs of a DDoS
 
Old 05-22-2007, 02:17 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have you looked at logrotate before? It lets you cycle your log files by date or size. That way you can control how large the /var/log directory gets.
 
Old 05-22-2007, 03:16 PM   #7
jmoschetti45
Member
 
Registered: Oct 2004
Location: Michigan
Distribution: Debian Squeeze (2.6.32-5)
Posts: 137

Original Poster
Blog Entries: 1

Rep: Reputation: 17
Looks like the right tool for the job
 
  


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
installing fc6 from hdd rapix Fedora - Installation 4 01-27-2007 02:03 AM
Cannot have a IDE HDD and SATA HDD together when using FC6 RivalSlayer Linux - Hardware 3 12-19-2006 03:03 AM
DVD writes bad data to disk when growisofs is executed from script akiladila Linux - Hardware 4 04-17-2006 05:30 PM
Advice needed on transferring data from HDD to HDD denimglen Linux - Newbie 3 03-04-2006 07:33 PM
Gnome 2.6, odd hdd writes. slackMeUp Slackware 11 10-07-2004 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:06 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