LinuxQuestions.org
Visit Jeremy's Blog.
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 04-10-2013, 06:51 PM   #1
gaogier
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
/dev/sda1 89% full and increasing...


Hello

I am having problems with my server. I am a newbie on dedicated servers.

Please note that my host is non-managing and don't care.

Service Status - in WHM shows the following...

Disk information

Device Mount point Usage
/tmp /var/tmp 2% (11,089 of 495,844)
/dev/sda1 / 89% (8,564,700 of 10,158,008)
/dev/sda2 /home 2% (28,324,328 of 1,927,440,916)
/usr/tmpDSK /tmp 2% (11,089 of 495,844)


As you can see, /dev/sda1 is 89% full and its increasing.

I don't know what it is thats making it increase and I was wondering if you guys can help me sort it out so my server can update cpanel/run smoothly as possible.

If you have questions please ask as I don't know what to give (don't want to give info away that can cause security problems for my server.

Its nearly 1am, and I am going to bed, so no replies till I wake up. Sorry... I hope to get this sorted tomorrow sometime.
 
Old 04-10-2013, 08:19 PM   #2
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
/dev/sdaq is mounted on / (root) there are many directories under root / e.g /var/ or /usr/. Most probably may cause under /var/log/* . It is filling up because some daemon/service producing too much logging .e.g apache creates log files in /var/log/apache2/*Filename* some other service logging in /var/log/messages. You can check it with the command
Code:
du -sh /*
This command will show you the directory name occupying more space e.g it shows you /var/ most space. Then run again the command
Code:
du -sh /var/*
again

Code:
du -sh /var/log/*
and so on. Ultimately you will find which directory/file is occupying most space.

Hope it helps
 
Old 04-10-2013, 09:09 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Would be good to know what distro+version you're running
Code:
cat /etc/*release*
uname -a
Check logs as above; the most likely problem.

See the logrotate tool which is pretty std on major distros. On RHEL/Centos the main conf is in /etc/logrotate.conf and individual confs in /etc/logrotate.d
 
Old 04-11-2013, 08:21 AM   #4
gaogier
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello

KinnowGrower -

Thanks for the ssh commands

3.3G /var/lib not log... I am going to pin point it down... as you suggested.

3.2G /var/lib/mysql

1.5G /var/lib/mysql/logaholicDB_taffy


chrism01 -

CentOS release 6.4 (Final)
CentOS release 6.4 (Final)
CentOS release 6.4 (Final)
cpe:/o:centos:linux:6:GA
 
Old 04-11-2013, 09:25 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,657
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
I strongly recommend for servers that you use a logical-volumes filesystem for "pretty much everything." Not only do you not ever want to "run out of space on" a disk drive, but you don't want to direct a preponderance of the traffic to a single head/disk assembly.

When looking at "file sizes," pay attention to open files, which are consuming space on the drive but whose actual size may not be up-to-date in the directory entry. Commands like lsof can help you to see what files are open.
 
  


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
My pendrive suddenly changed from /dev/sda1 to /dev/sdb1! stf92 Slackware 10 08-08-2012 05:02 PM
Technical question: /dev/sda1 vs /mnt/sda1 macnab Linux - Newbie 5 01-03-2012 04:58 AM
[SOLVED] dev/sda1 100% full ruisof Linux - Newbie 1 09-03-2010 01:30 PM
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM

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

All times are GMT -5. The time now is 04:25 AM.

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