?
Solved

DISK ALLOCATION HELP

Posted on 2004-07-30
5
Medium Priority
?
268 Views
Last Modified: 2013-12-06
my /dev/hda7  is @ 98%  

I need to allocate more space to this system.

I don't know how to do this.  Will I need another hard drive or can i get some more space from
the existing hd?

I am running Red Hat 7.1

the df -k command returns the following results.

Filesystem           1k-blocks      Used          Available        Use%      Mounted on
/dev/hda8               256667    104840       138575           44%        /
/dev/hda1                54416      8071          43536             16%       /boot
/dev/hda6              2949028    534204      2265020          20%      /home
/dev/hda5              2949028   1225016     1574208          44%      /usr
/dev/hda7               256667    238409         5006               98%     /var
none                        571184         0             571184             0%     /dev/shm

Thank you
0
Comment
Question by:Cleavis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 11678154
The easy fix for this would be to identify what directory(s) in /var that are the problem (I'd guess /var/log and/or /var/spool) and move those to /usr or /home. Then symlink  them back to /var.
0
 
LVL 23

Expert Comment

by:brettmjohnson
ID: 11678219
check the files and directories under /var/log.  You may have logfiles
that grown and accumulated over time.  You might want to archive
really old logfiles to tape or DVD-R, then delete them.  If you have
very recent log files that have grown very large, examine them carefully.
They may be filling up with messages related to some failed process
or service that need to be fixed.

0
 

Author Comment

by:Cleavis
ID: 11678231
/var/log & /var/spool are very small

i need to steal some space from another filesystem or add an additional hd.
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 2000 total points
ID: 11678540
What's using up most of the space?

Try
du -h /var |sort -n

Usually it's possible to (for instance) boot into single user mode, move a directory over to /usr and create a symboliclink in the old place to point to the new directory

Ex:
  mv /var/blah /usr
   ln -s /usr/blah /var
0
 

Author Comment

by:Cleavis
ID: 11678608
I see. This will work well for my application. Thank You
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question