hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Disk Partition Filling Up!
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Disk Partition Filling Up!

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-25-2004, 12:41 PM
Prince Prince is offline
Web Hosting Guru
 
Join Date: Nov 2001
Posts: 294
*

Disk Partition Filling Up!


Is this anything to worry about:

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.9G 2.9G 862M 78% /usr

Is there anything I can manually delete in there, like temp files?

thanks

Reply With Quote


Sponsored Links
  #2  
Old 01-25-2004, 12:46 PM
Jakiao Jakiao is offline
Community Guide
 
Join Date: Jun 2003
Location: Janesville, Wi
Posts: 1,509
What I do when I can't get a larger hard drive, and partitions are filling up, is this:

I find any extraneous files that can be moved in groups. Mainly, logs, databases, etc. I move them to a large hard drive and setup a symbolic link. Let me use the example: /var is filling up and /usr has more space.

mv /var/lib/mysql /usr/mysql
mv /var/log /usr/log
ln -s /usr/mysql /var/lib/mysql
ln -s /usr/log /var/log

That would make it so that /var/log -> /usr/log and same for mySQL. That tends to save me in times like that. So see if there is anything on /usr that you can move to a larger hard drive.

Reply With Quote
  #3  
Old 01-25-2004, 12:46 PM
xerophyte xerophyte is offline
Junior Guru
 
Join Date: Dec 2002
Location: Canada
Posts: 197
You might wanna tell us about your OS and the service , you are running on the server.

__________________
Affordable Linux Server Managament Solution
To order : http://www.linuxnetworkcare.com
Contact :[ AIM : xerophytev] [MSN : support@linuxnetworkcare.com][ Phone : 647-722-5303 ][skype:ksutha5]

Reply With Quote
Sponsored Links
  #4  
Old 01-25-2004, 12:49 PM
Prince Prince is offline
Web Hosting Guru
 
Join Date: Nov 2001
Posts: 294
Linux with WHM/CPanel

Reply With Quote
  #5  
Old 01-25-2004, 12:50 PM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,785
du -h -s /usr/*

and paste the result here

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #6  
Old 01-25-2004, 12:58 PM
Prince Prince is offline
Web Hosting Guru
 
Join Date: Nov 2001
Posts: 294
root@zeus [~]# du -h -s /usr/*

12k /usr/aquota.user
107M /usr/bin
4.0k /usr/dict
104k /usr/doc
8.0k /usr/etc
8.0k /usr/games
8.8M /usr/i386-glibc21-linux
38M /usr/include
80M /usr/java
3.3M /usr/kerberos
396M /usr/lib
744k /usr/libexec
1.6G /usr/local
52k /usr/lost+found
14M /usr/man
28k /usr/quota.user
27M /usr/sbin
596M /usr/share
36M /usr/src
0 /usr/tmp
0 /usr/usr
29M /usr/X11R6

Reply With Quote
  #7  
Old 01-25-2004, 01:00 PM
Jakiao Jakiao is offline
Community Guide
 
Join Date: Jun 2003
Location: Janesville, Wi
Posts: 1,509
Do you have any larger hard partitions? If so, you could move a few things to it and do the linking process.

Reply With Quote
  #8  
Old 01-25-2004, 01:01 PM
phpdeveloper phpdeveloper is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: Home, chair
Posts: 723
I bet you have very large log files in /usr/local/apache/domlogs directory.
Check if it's true, and to prevent this, in WHM go to Tweak Settings and check the box 'Delete each domain's access logs after stats run', then Save. Next day you should see that there's more space left.

Reply With Quote
  #9  
Old 01-25-2004, 01:02 PM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,785
You could possibly link /usr/local to /home. also check apache logs

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #10  
Old 01-25-2004, 01:09 PM
Jakiao Jakiao is offline
Community Guide
 
Join Date: Jun 2003
Location: Janesville, Wi
Posts: 1,509
Linuxguy, I wouldn't dare move /usr/local. Reason being is that you could screw up and screw the whole system.

[edit in: a lot of system binaries are in /usr/local, moving /usr/local makes them inaccessable and could kill your connection and/or take the server down because they are unavailable. That would severely screw your system.]

If you have a larger partition, you can do this:

[edit in: I had meant partition and not hard drive]

mv /usr/local/apache /partition/apache
ln -s /partition/apache /usr/local/apache

Or you can gzip all of the log files and start from scratch.

cd /usr/local/apache/logs
tar cfv /partition/apache_logs.tar ./*
gzip /partition/apache_logs.tar

--or--

bzip2 --compress /partition/apache_logs.tar

Just do not move core system directories, that would reak havok on your system.


Last edited by Jakiao; 01-25-2004 at 01:17 PM.
Reply With Quote
  #11  
Old 01-25-2004, 01:13 PM
Prince Prince is offline
Web Hosting Guru
 
Join Date: Nov 2001
Posts: 294
Thumbs up

Quote:
Originally posted by phpdeveloper
I bet you have very large log files in /usr/local/apache/domlogs directory.
Check if it's true, and to prevent this, in WHM go to Tweak Settings and check the box 'Delete each domain's access logs after stats run', then Save. Next day you should see that there's more space left.
Did this, and I just noticed a huge drop on my server load!

thanks

Reply With Quote
  #12  
Old 01-26-2004, 12:24 PM
Prince Prince is offline
Web Hosting Guru
 
Join Date: Nov 2001
Posts: 294
Thumbs up

Quote:
Originally posted by phpdeveloper
I bet you have very large log files in /usr/local/apache/domlogs directory.
Check if it's true, and to prevent this, in WHM go to Tweak Settings and check the box 'Delete each domain's access logs after stats run', then Save. Next day you should see that there's more space left.
you're were correct!

here are the drive stats today:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.9G 1.9G 1.8G 51% /usr

and this was yesterday before your recommended change:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.9G 2.9G 862M 78% /usr

Reply With Quote
  #13  
Old 01-26-2004, 12:27 PM
phpdeveloper phpdeveloper is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: Home, chair
Posts: 723
Glad it worked

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Rackspace Adds FreeBSD 9, CentOS 6.3 Support to Cloud Servers Web Hosting News 2012-07-30 12:47:10
Storm On Demand Boosts Performance with Solid State Drives Cloud Servers Web Hosting News 2012-03-07 14:31:24
Web Host Webair Improves Cloud Hosting Disk Speeds with Fusion-io Web Hosting News 2012-02-22 11:27:07
Cloud Firm Amazon Web Services Launches NoSQL Database Service Web Hosting News 2012-01-18 16:00:08
Web Host SoftLayer Adds Local Disk Storage Option to CloudLayer Hosting Web Hosting News 2011-07-26 18:43:31


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?