Solved

DISK ALLOCATION HELP

Posted on 2004-07-30
5
265 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 500 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

691 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