LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-28-2013, 01:21 PM   #1
prathamesh7478
LQ Newbie
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 25

Rep: Reputation: Disabled
Free Up Disk Space


Hello Guys,

I am getting following messages from one our server.
..Filesystem kbytes used avail capacity Mounted on
../dev/md/dsk/d1 2058319 1597651 398919 81% /var

But i am unbale to decide what can i move,can you help on it
 
Old 02-28-2013, 03:04 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
You can use compression to shrink unused log files or archive them off to another location. You will need to provide more information about what is on your /var partition to get useful answers though.
 
1 members found this post helpful.
Old 02-28-2013, 03:08 PM   #3
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,622
Blog Entries: 1

Rep: Reputation: Disabled
http://www.linuxquestions.org/questi...-space-419461/

or something like
Code:
sudo find /var -type f  -size +1024k -exec ls -hal {} \; > ~/large_files.out
and review manually the entries in ~/large_files.out
 
1 members found this post helpful.
Old 02-28-2013, 03:27 PM   #4
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
Lightbulb

When I go on a hunt for what's eating up my disk space, I begin like this:
Code:
# du --max-depth=2 -h | sort -r -n | more
or
Code:
# du --max-depth=2 -h | sort -r -n > /tmp/du.out
Change --max-depth to a value that's useful for you.
 
Old 02-28-2013, 03:46 PM   #5
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,622
Blog Entries: 1

Rep: Reputation: Disabled
I always check apache's log file first on hosts that have it installed.
It's somewhere under|below /var/log/
This location varies by distribution or apache version.
 
Old 02-28-2013, 04:15 PM   #6
prathamesh7478
LQ Newbie
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 25

Original Poster
Rep: Reputation: Disabled
thanks for your reply,

I can see that /var/adm/sa contains system activity logs can i compress it ,Will it have any harmfull effects on system.T
I have /var/apache also can you tell me more about it
 
Old 02-28-2013, 04:37 PM   #7
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,622
Blog Entries: 1

Rep: Reputation: Disabled
/var/adm/sa is the sysstat package directory for the sar output.
It may contain .gz archives. sar archives for 7 days by default, AFAIK. Removing the .gz files is up to you.

/var/apache... I wouldn't touch that.
What OS and apache version please, if you know it?
Code:
lsb_release -drc
 
Old 02-28-2013, 04:58 PM   #8
prathamesh7478
LQ Newbie
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 25

Original Poster
Rep: Reputation: Disabled
I dont know it,
But i have zip files in /var/adm/sa/sa05.z
Will it cause any problem for the system in creating new sa files for the next month.
 
Old 02-28-2013, 05:01 PM   #9
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,622
Blog Entries: 1

Rep: Reputation: Disabled
Code:
lsb_release -drc
du -sh /var/*
outputs please
 
1 members found this post helpful.
Old 02-28-2013, 05:07 PM   #10
prathamesh7478
LQ Newbie
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 25

Original Poster
Rep: Reputation: Disabled
/var/adm/sa contains some normal and binary files,I have just zipped the binary file
by compress sa05 and now the file in sa directory is sa05.z.As i can see there are 25 files
from 05 feb 2013 - 25 feb 2013.I wanted to know when the march files would be created it wont cause any problem
to the sar activity beacuse of zipping of this file.[COLOR="Silver"]

Last edited by colucix; 03-01-2013 at 03:34 AM. Reason: Removed (merged) duplicate.
 
Old 02-28-2013, 05:26 PM   #11
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,622
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by prathamesh7478 View Post
/var/adm/sa contains some normal and binary files,I have just zipped the binary file
by compress sa05 and now the file in sa directory is sa05.z.As i can see there are 25 files
from 05 feb 2013 - 25 feb 2013.I wanted to know when the march files would be created it wont cause any problem
to the sar activity beacuse of zipping of this file.

---------- Post added 02-28-13 at 02:07 PM ----------

/var/adm/sa contains some normal and binary files,I have just zipped the binary file
by compress sa05 and now the file in sa directory is sa05.z.As i can see there are 25 files
from 05 feb 2013 - 25 feb 2013.I wanted to know when the march files would be created it wont cause any problem
to the sar activity beacuse of zipping of this file.
You sir, are stepping over a dollar to pick up a penny.
You need to stop, breathe, relax and
Code:
lsb_release -drc
du -sh /var/*
Please.

Or I can stop answering your inquiries?
 
2 members found this post helpful.
Old 02-28-2013, 06:04 PM   #12
prathamesh7478
LQ Newbie
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 25

Original Poster
Rep: Reputation: Disabled
Sorry,i was quite worried due to zipping of sar logs.

I am not getting any output through command provided by you.

(net@dc1fcpe05)~# lsb_release -drc
lsb_release: Command not found.
 
Old 02-28-2013, 08:35 PM   #13
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,622
Blog Entries: 1

Rep: Reputation: Disabled
I gave you 2 commands, the most important one being
Code:
du -sh /var/*
Good Luck.
Says Solved at http://www.linuxquestions.org/questi...ad-4175452115/
same system?
 
Old 02-28-2013, 09:02 PM   #14
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,258

Rep: Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559
Is logrotate configured and running on that server?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 01:57 PM
Free Disk Space Not Available qwertyman19 Linux - General 5 04-24-2007 04:40 PM
Disk Free Space Ian D Linux - Newbie 1 02-09-2006 08:11 AM
Can't free disk space mcm8327 Linux - Software 4 03-29-2004 09:19 AM
Free up disk space TheShemeta Slackware 5 11-26-2003 05:50 PM


All times are GMT -5. The time now is 05:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration