Author Topic: Disc Full - What to DO? - SOLVED!  (Read 8460 times)

Martin109

  • Vectorite
  • ***
  • Posts: 290
Disc Full - What to DO? - SOLVED!
« on: February 21, 2009, 08:17:19 am »
The section of my hard disk /dev/hda2 is full.  How should I go about freeing up space?  My 'Home' directory is on /dev/hda3, and still has some space.  Mysql has stopped autoloading - is that related to /dev/hda2 being full?
« Last Edit: February 21, 2009, 10:40:10 am by Martin109 »
Compaq Armada E500, i686 Pentium III, 512Mb RAM, 3.2 Gb HDD, running Vector Linux 5.9 Standard

Fujitsu Lifebook, i686 Pentium M, 1.7 GHz, 1028Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

Compaq Evo, i686 Pentium M, 1.4 GHz, 512Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

bigpaws

  • Administrator
  • Vectorian
  • *****
  • Posts: 1902
Re: Disc Full - What to DO?
« Reply #1 on: February 21, 2009, 08:27:44 am »
Yes Mysql is more than likely freezing due to the lack of space.
There are probably other problems as well like your logs not
running.

Without knowing the partitioning scheme you are using, disk
space available it is difficult to really reply with anything
more than start moving things you don't need.

Bigpaws

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4482
Re: Disc Full - What to DO?
« Reply #2 on: February 21, 2009, 08:27:50 am »
Please post output of "df -h"

Martin109

  • Vectorite
  • ***
  • Posts: 290
Re: Disc Full - What to DO?
« Reply #3 on: February 21, 2009, 08:36:09 am »
Thanks for such quick responses.

Output of df -h is:

Code: [Select]
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2             2.8G  2.7G     0 100% /
/dev/hda3             939M  829M   63M  94% /home
tmpfs                 250M     0  250M   0% /dev/shm

Compaq Armada E500, i686 Pentium III, 512Mb RAM, 3.2 Gb HDD, running Vector Linux 5.9 Standard

Fujitsu Lifebook, i686 Pentium M, 1.7 GHz, 1028Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

Compaq Evo, i686 Pentium M, 1.4 GHz, 512Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

bigpaws

  • Administrator
  • Vectorian
  • *****
  • Posts: 1902
Re: Disc Full - What to DO?
« Reply #4 on: February 21, 2009, 08:40:42 am »
Do you have another disk available?

That was a tight install to start with.

It is possible to add another disk and move
some things to that disk.

Bigpaws

Martin109

  • Vectorite
  • ***
  • Posts: 290
Re: Disc Full - What to DO?
« Reply #5 on: February 21, 2009, 08:42:10 am »
I've got a usb external disk I could use, but how would I move stuff to it, and how would I choose what to move?
Compaq Armada E500, i686 Pentium III, 512Mb RAM, 3.2 Gb HDD, running Vector Linux 5.9 Standard

Fujitsu Lifebook, i686 Pentium M, 1.7 GHz, 1028Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

Compaq Evo, i686 Pentium M, 1.4 GHz, 512Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

Martin109

  • Vectorite
  • ***
  • Posts: 290
Re: Disc Full - What to DO?
« Reply #6 on: February 21, 2009, 08:50:33 am »
File vector.linux.net.err states:

Code: [Select]
090221 15:16:53  mysqld started
090221 15:16:57  InnoDB: Started; log sequence number 0 43695
/usr/libexec/mysqld: Disk is full writing './mysql-bin.000155' (Errcode: 28). Waiting for someone to free space... Retry in 60 secs
090221 15:20:52  mysqld started
090221 15:20:57  InnoDB: Started; log sequence number 0 43695
/usr/libexec/mysqld: Disk is full writing './mysql-bin.000156' (Errcode: 28). Waiting for someone to free space... Retry in 60 secs
Compaq Armada E500, i686 Pentium III, 512Mb RAM, 3.2 Gb HDD, running Vector Linux 5.9 Standard

Fujitsu Lifebook, i686 Pentium M, 1.7 GHz, 1028Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

Compaq Evo, i686 Pentium M, 1.4 GHz, 512Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

bigpaws

  • Administrator
  • Vectorian
  • *****
  • Posts: 1902
Re: Disc Full - What to DO?
« Reply #7 on: February 21, 2009, 09:29:58 am »
You asked the ultimate question.

A disk I am referring to would be a permanent disk
since it will become part of the system.

You could try moving /var/log/packages that would
free up some space.

The other part of the equation would be how much
space do you predict for the future?

Bigpaws

caitlyn

  • Packager
  • Vectorian
  • ****
  • Posts: 2921
    • The Linux Works
Re: Disc Full - What to DO?
« Reply #8 on: February 21, 2009, 09:54:41 am »
For a quick fix you can clear out /tmp safely.  Delete any larger files there.  That will get you off zero.

You can move or delete old log files.  Sometimes that clears out an amazing amount of space.  You may well have some files like Xorg.0.log.old.  Move or delete the .old files.  If you use logrotate to rotate logs things like /var/log/messages.0 and /var/log/messages.1 are the older, rotated versions.  They can be archived somewhere else.  If you aren't using log rotation you may want to enable it and only keep current information on your drive.

Go into gslapt and sort by status.  Take a good, long look at what software you have installed on your system.  If there are any large packages you never use then uninstall them.  Do you have both Firefox and Seamonkey installed?  If so can you live with one and not the other?  You get the idea.

The command du -k run as root and piped either to more or to a file will tell you where the space is being used.  That will help you evaluate further.

HTH,
Cait
eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
VL64 7.1

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1

Martin109

  • Vectorite
  • ***
  • Posts: 290
Re: Disc Full - What to DO?
« Reply #9 on: February 21, 2009, 09:59:15 am »
Many thanks, I'll try all that.
Compaq Armada E500, i686 Pentium III, 512Mb RAM, 3.2 Gb HDD, running Vector Linux 5.9 Standard

Fujitsu Lifebook, i686 Pentium M, 1.7 GHz, 1028Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

Compaq Evo, i686 Pentium M, 1.4 GHz, 512Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

Martin109

  • Vectorite
  • ***
  • Posts: 290
Re: Disc Full - What to DO? - SOLVED
« Reply #10 on: February 21, 2009, 10:39:35 am »
Thanks all.

I've quite quickly managed to free up 252.6Mb, so Mysql is now autoloading again, and I can use it.

I'll now have to plan what to do for the future, but thanks for getting me going.
Compaq Armada E500, i686 Pentium III, 512Mb RAM, 3.2 Gb HDD, running Vector Linux 5.9 Standard

Fujitsu Lifebook, i686 Pentium M, 1.7 GHz, 1028Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

Compaq Evo, i686 Pentium M, 1.4 GHz, 512Mb RAM, 40 Gb HDD, running Vector Linux 6.0 Standard

gamfa

  • Vectorite
  • ***
  • Posts: 245
Re: Disc Full - What to DO? - SOLVED!
« Reply #11 on: February 21, 2009, 11:21:21 am »
Have you used Gslapt to download and install any packages? If you did, the tgz files might still be in /home/ftp/pub/veclinux/packages dir. You could delete them and gain some space.
"Don't tell my cattle I have leather seats in my truck"

"I never let schooling stand in the way of my education"...Mark Twain

caitlyn

  • Packager
  • Vectorian
  • ****
  • Posts: 2921
    • The Linux Works
Re: Disc Full - What to DO? - SOLVED!
« Reply #12 on: February 21, 2009, 11:37:06 am »
gamfa:  Your suggestion is excellent for people who install VL into a single partition .  Martin used a separate home partition so it won't clear space in his root partition.  I actually believe the way Martin did his installation (home separate) is preferable to a single partition install.
eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
VL64 7.1

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1