Page 1 of 1

Filesystem question

Posted: Fri Nov 03, 2006 1:11 pm
by wegngis
In trying to track down an 'Error Code 28' from mySQL (Out of disk space) I found that one of my partitions appears to be full. Below is the output from a 'df' command.
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 1011928 960812 0 100% /
none 1036704 0 1036704 0% /dev/shm
/dev/sda5 5114432 2360084 2754348 47% /usr
/dev/sda7 103841560 2828936 101012624 3% /var
/dev/sda6 5114432 17680 5096752 1% /home
I'm running Plesk 8.0.1 with FC4. I just re-imaged the box 3 days ago. Any ideas? how can I find out what's filling it up?

Oh, and I don't know a heck of a lot about partioning and Linux. :oops: :roll:

Posted: Fri Nov 03, 2006 2:35 pm
by wegngis
Update:

Here's what I did to resolve the Error 28. I edited /etc/my.cnf to add the following:

Code: Select all

[mysqld]
tmpdir = /var/tmp
I don't know if this is the best way to solve it. I still have a partition that's filled, with what I do now know, nor do I know where/how to check that.

Posted: Fri Nov 03, 2006 6:22 pm
by kwebdesign
Are you by chance using 1and1? Their partition layouts seem very odd to me.

What you appear to have is a 103 gig /var directory, a 5 gig /home directory, and a 5 gig /usr directory, and only 1 gig of space for everything else (/). The "everything else" is what's filled up and apparently causing your errors. Moving the temp directory to your /var partition will certainly help, but you are likely to have other problems before long.

If you just re-imaged this server, are you willing to do it again? I recently wiped my 1and1 box (previously running FC2) and installed CentOS 4.4. Although it wasn't a seamless process (1and1 doesn't provide an image, so I had to install it manually, with some help from ART's AOOI and a little manual fiddling), I'm much happier with a simple partition layout and an OS that won't be EOL in a year (as FC4 likely will).

Posted: Fri Nov 03, 2006 6:46 pm
by wegngis
Yes, I'm using 1and1. What you're saying is that "/" is everything else, such as /etc, /lib, /bin, and so on, correct? Well, I found the culprit an took it out. I was experimenting with the Counter Strike game server, which installed on /hlds_l (or tried to, anyway). Here's the result:

Code: Select all

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1              1011928    210540    749984  22% /
none                   1036704         0   1036704   0% /dev/shm
/dev/sda5              5114432   2356156   2758276  47% /usr
/dev/sda7            103841560   2938988 100902572   3% /var
/dev/sda6              5114432     17680   5096752   1% /home
I don't really want to go the route of CentOS only because that's uncharted territory for me, and I have paying customers. If this were not a production box, I'd be all for it. It just sounds painful. The other image that 1and1 provides is SUSE 9.3, but I've only had experience with the FC's so far. I'm not sure what to do at this point. I guess if I did a full Plesk backup in 8.0.1, installed CentOS and Plesk 8.0.1 again, I could do a restore, just like I already did. There were two minor issues that I had to overcome during the restore, and I'd imagine they'd be the same with Cent, but I don't know...

Posted: Sat Nov 04, 2006 6:24 pm
by kwebdesign
Yeah, that's basically what I just went through (backup Plesk, install CentOS, restore Plesk). I also had a couple of minor issues with restoring (one mail account mysteriously disappeared), but I got it all done in one night, so most of my customers were unaffected.

Did you know that CentOS is based on Red Hat Enterprise Linux (I didn't until just recently)? I only mention it because it's not all that different from Fedora in terms of a typical server setup - it was a very easy transition for me.

It sounds like you've bought some time by removing the CS game server module, though, so I guess you could always wait a while and consider upgrading later. Just be aware of that partition layout when installing anything!

If you decide you want to try upgrading, I'd be glad to share my checklist, procedure, etc. I planned it out for a couple of weeks and did a dry run on a test machine first, just to make sure I was comfortable. It still wasn't totally smooth, but I'm glad I did it now that it's done.

Posted: Mon Nov 06, 2006 3:12 am
by wegngis
That sounds like a much better solution. If you could shoot me an e-mail of your findings I'd much appreciate it. 8)

Posted: Fri Nov 10, 2006 3:18 pm
by kwebdesign
I've been out of town for about a week, so I'm just getting back to this. I'll try to put something together for you this weekend.

Posted: Fri Nov 10, 2006 10:12 pm
by wegngis
No rush, no worries :)

Posted: Thu Nov 16, 2006 7:02 pm
by kwebdesign
Just sent you an e-mail

Posted: Fri Nov 17, 2006 1:43 am
by wegngis
Received. Thanks much! I'll let you know if I have questions.