Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed lamp on my rhel4 machine.During installation of mysql
the default directory that was selected is /var. Now after when i set up my database with all tables, there is no space left in /var and
mysql is crashing every time as the /var has little free space.
Allocated Used Available Use%
/dev/hda8 381138 354023 7437 98% /var
How can i increase the disk space by adding free space from other drives without erasing /var as it consists of several system files.
I'll second matthew on this one..
Even though those applications are supposed to be able to resize partitions on the fly there is always a chance it will just not work and the data will be lost..
Alternately since your issue is simply one of space on var due to a database issue.. if You have unpartitioned space on the drive you could always add a new partition and ultimately mount it as /var/lib/mysql and move your mysql data to the new partition.. Nothing says you actually HAVE to resize the entire var partition. there are other solutions that will accomplish your main goal and may be an easier solution in the long run. This is one of the reasons I love the way Linux handles partitions and mount points.. so much better than Drive letters
example moving /var/lib/mysql to a new drive entirely..
Code:
default@IBM-300GL-1:~$ mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
/dev/hda3 on /home type ext3 (rw)
/dev/hdb1/ on /var/lib/mysql type ext3 (rw)
This looks like a good reason to NOT have a lot of different partitions. As a relative newcomer, I have always been puzzled at the rationale for having more than maybe 3 partitions (/, /boot, and /home) + swap.
It seems that you have to be pretty experienced to know which partitions will need how much space.....
This looks like a good reason to NOT have a lot of different partitions. As a relative newcomer, I have always been puzzled at the rationale for having more than maybe 3 partitions (/, /boot, and /home) + swap.
It seems that you have to be pretty experienced to know which partitions will need how much space.....
Agreed.. I think that was the most confusing part of the initial Linux setup..
what partitions do I need and how much space for each..
And who knew that Apache and Mysql both store their data under var ?
I would have never guessed that starting out.
after you get a grip though and discover you can expand any directory by mounting a new partition to that point, makes it easy to relocate Home, usr or var when they get out of control..
Now that I think back I wonder how long it actually was between the time I was doing my initial installs and was totally confused on partitioning and when I discovered how to manage multiple mount points and partitions.. hrm.
Strictly speaking, you don't need to repartition to solve this problem. If you have room on your root partition, you can make a few dirs on, say, /usr/local, copy those dirs over, and link to them from /var ...
Ideal? No. Sloppy? Probably. But it should work.
I've always linked htdocs out of /var to share it between distros, which is a similar thing.
This looks like a good reason to NOT have a lot of different partitions.
Maybe, maybe not.
Quote:
As a relative newcomer, I have always been puzzled at the rationale for having more than maybe 3 partitions (/, /boot, and /home) + swap.
It seems that you have to be pretty experienced to know which partitions will need how much space.....
Excellent argument for LVM - and not completely allocating the entire disk(s). I'd be surprised if el4 doesn't use LVM by default.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.