LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-23-2007, 12:21 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Out Of Disk Space


I am not sure what the proper section this issue falls under so I decided this would be a safe bet.

Anyways - my server is having a problem which is due to my poor planning / partitioning. I am to blame here however I want to know if there is a simple solution to fixing this problem or what would you do.

This server running CENTOS 4.4 was unable to update / upgrade do to the simple fact that I have ran completely out of room on /usr & /var. Those are very critical directories to have low on disk space and I am freaking out now.

Here is how the disk looks.

Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             388M  219M  149M  60% /
/dev/sda1             244M   23M  209M  10% /boot
none                  506M     0  506M   0% /dev/shm
/dev/sda5             2.0G   36M  1.9G   2% /home
/dev/sda6            1012M  691M  270M  72% /usr
/dev/sda7             487M  392M   70M  85% /var
/dev/sda8             909G   56G  807G   7% /data
I was wondering if I could rob like 20 or 40 GB from /data (/dev/sdb8) and move or add it to /var & /usr?

If anyone knows a simple or logical way of resolving this error, please let me know. My Linux skills are average so if you have complex or detailed suggestions, please bare with me on how to execute them properly.

Thanks!
 
Old 05-23-2007, 12:34 PM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
looks like /var is getting pretty full, i bet there are some log files that need cleaned out of /var/log...

also i dont know where CeNTOS keeps packages after installing updates but they could be clogging up var, look in the subdirectories in /var for a bunch of RPMs and don't delete them just in case you need to re-install them, just move them somewhere else, lots of room in /data and /home or burn them to CDR, then once you have them backed up you can delete them to recover disk space...
 
Old 05-23-2007, 12:34 PM   #3
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Dunno if its possible but.

Could you move the /usr and /var (copying entire directories and all) to the large partition (sda8) and change their location in fstab. I must be missing something it couldn't be that easy hehhe. worth a try though. Only reason i suggest that is because i hate taking anymore chances with gparted when repartitioning than I have to.
 
Old 05-23-2007, 01:21 PM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I guess someone suggested to reboot the machine and boot from a Live CD so the partitions are not mounted and then use tar or cpio to move all the contents from /var & /usr to /data and then recreate the partitions as large as I want and edit etc/fstab.
 
Old 05-23-2007, 01:32 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
I guess someone suggested to reboot the machine and boot from a Live CD so the partitions are not mounted and then use tar or cpio to move all the contents from /var & /usr to /data and then recreate the partitions as large as I want and edit etc/fstab.
Yeah, pretty much. Chopping a drive up like you did is just asking for trouble. You need a "/", and you need a "/data" (or whatever you choose to call /data). All the rest can be on "/". Optionally make a "/home" of a few GB, depending on what you *realistically* expect to want to keep in "/home". I don't bother with a separate "/home". I keep very little in it, and back it up periodically to CDROM.

You will probably have to do surgery on grub, as well.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
how much disk space does it take watts3000 Linux - Newbie 9 05-04-2007 12:58 PM
disk space ? calsoft_pg Linux - Software 1 11-07-2005 10:32 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:20 PM.

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