Current Disk Usage
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 387M 374M 0 100% /
/dev/hda5 48G 2.6G 43G 6% /home
/dev/hda6 3.8G 2.5G 1.1G 69% /usr
/dev/hda7 1.9G 313M 1.5G 17% /var
Here's a list of my server diskspace usage.
I would like to add more space or free up hda1, but the problem is how?
For adding more space, is there anyway I can assign diskspace from hda5 etc to hda1?
And for freeing up the diskspace, where's it "/" located at? Is it the root folder for the server? Or I just have to remove files located outside /home , /usr/ or /var?
I need advices please. Thank you very much.
regier
11-21-2001, 11:47 PM
Hello,
Chances are it is your /tmp directory that is taking up the extra space. You can remove the files in it without troubles. You might also want to use a symbolic link to move the /tmp folder into another partition.
Thank you very much :)
Just another question, anymore directory which I can remove without worries as well?
regier
11-22-2001, 03:28 AM
I've never had a need to move any other directories. Generally the /tmp is the only one that is active with the config that you showed. Therefore if you move it elsewhere, your space shouldn't get used up.
mahinder
11-22-2001, 06:32 AM
remove unwanted files from /mail folder this will save some space
:)
Domenico
11-22-2001, 06:49 AM
I made a cron job rm -rf /tmp/*
This runs every day so I don't have to worry about that anymore.
If someone thinks or knows that this is a bad thing to do then please tell me :D
magnafix
11-22-2001, 10:46 AM
If /tmp is where PHP session files are stored then you cron job could unexpectedly empty visitors' shopping carts, etc.
well... I am facing the same situation now. This time, even though I emptied /tmp , the error did not gone just like the last time. It remains there.
Help! What else can I do ?
Synergy
11-23-2001, 11:43 AM
I had the same problem before and moved /tmp dir inside /home
kwimberl
11-23-2001, 01:10 PM
A couple of things:
1) I would recommend symlinking your /tmp to inside of your /home since you have so much space there rather than running that cron.
2) Mail can also be the culprit. Check /mail/inbox. If you have a spammer or some other reason to get tons of returned mails to "nobody", that can fill up fast. Try cleaning that up. If this continues to be a problem, then you might think about routing that inbox to /dev/null. There are some disadvantages to doing this, but not as many disadvantages as having the root partition full. :-)
Hope this helps. If these things do not clear it up, let us know.
Thanks a lot guys. :)
I moved /mail/inbox to another partition and made a symbolic link for it. And now, 40% of the space is free and my Cpanel error is solved. :)
YES!
bobcares
11-26-2001, 04:37 AM
Hi!
I would suggest moveing the directories and then creating soft links.
e.g.
$ mv /tmp /home/tmp
ln -s /home/tmp /tmp
Hope this is useful. :rolleyes:
Have a great day :)
Regards
amar