Red HatThis forum is for the discussion of Red Hat Linux.
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 just got a new RHE box at a hosting company and I am having a little trouble with it. I was wondering if it could have something to do with the odd partitions. So I was hoping if I post the fdisk -l and also the mount you guys might be able to tell me if this is a good scheme or not. If not I can get the host to repartition but they want my answers fast so if anyone can give me a fast response then great.
Disk /dev/sda: 73.2 GB, 73274490880 bytes
255 heads, 63 sectors/track, 8908 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6 48163+ 83 Linux
/dev/sda2 7 1311 10482412+ 83 Linux
/dev/sda3 1312 2225 7341705 83 Linux
/dev/sda4 2226 8908 53681197+ f Win95 Ext'd (LBA)
/dev/sda5 2226 8392 49536396 83 Linux
/dev/sda6 8393 8523 1052226 83 Linux
/dev/sda7 8524 8654 1052226 83 Linux
/dev/sda8 8655 8908 2040223+ 82 Linux swap
and the mount,
/dev/sda7 on / type ext3 (rw,usrquota)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/sda5 on /home type ext3 (rw,usrquota)
none on /dev/shm type tmpfs (rw)
/dev/sda6 on /tmp type ext3 (rw)
/dev/sda2 on /usr type ext3 (rw,usrquota)
/dev/sda3 on /var type ext3 (rw,usrquota)
Any help you guys can give me would be great....the faster the better :P
Well the only really problem is that we use a control panel called cpanel and it gave an error message saying that the root partition was out of space.
This happened 3 or 4 times but a restart seems to have fixed it.
OK, you have about 1 GB each for / & /tmp & about 2GB for swap. How much RAM have you?
There is a rule of thumb that says you should have 2MB of swap space for each 1MB of RAM, but that applies only to relatively small amounts of RAM---say 256MB or less. If you have 512MB RAM or more I doubt you need even 1GB of swap.
I would suggest combining sda6, 7 & 8 into 4GB of free space & then partitioning it into 3GB in sda6 for / & 1GB in sda7 for swap. Let /temp share a partition with /.
We have 2 Gig of ram on one server and 3 gig of ram on the other.
It is a vvery high traffic site. 4000 Gig of tansfer a month in are plan, we usally use about 3000.
12 Million page loads a month or something like that.
OK, so just combine your / & /tmp mount points into one 2GB partition & leave swap at 2GB.
Keep in mind that cpanel may be telling you the truth---you may in fact need more space for / . I think you're asking a lot of a 73GB HD, but what do I know---you're out of my league.
I bet if you were to monitor maximum swap usage for a month you'd find it rarely exceeded 1GB.
If you had to start over, because the host is giving that options, how would you partitions the system?
The current setup is just not suitable because /var and /usr and / ar just to small and there is to much wasted space in /home since we do not have that many users.
The server is going to be a webserver so it will host a few websites with email and Databases and what not. On are old machine we just has a boot partition a swap partition and a / partition that was the rest....is this exceptable?
I really need some help on this if anyone can give it and I have to make a desicion soon.
Its just our /usr ends up having logs from apache and /var has databases so they can remain what they are now. I just don't know how I should be spliting it all up.
The first thing to do is to examine your contract with your host to determine how much of this work is their responsibility and how much is yours.
In the long run I see only two satisfactory approaches:
1. If there is a lot of unused space in any partitions(s) it may be practical to repartition the drive to assign the space more equitably in accordance with actual need.
2. Otherwise you can add another HD and partition the whole space to assign it more equitably in accordance with actual need.
#2 may appear to be more expensive than #1 because of the cost of an additional drive, but it will probably be more satisfactory for a longer period because of its ability to support increased usage.
CAVEAT: I have never done this under Linux so I can't give you step-by step instructions. I suggest that you search Linux sites (or dogpile or google the web) for "adding a hard drive".
When I posted today at 08:34:19 AM I had not yet read your 07:55:16 AM post (both times are EDT, Z-4:00).
The simplest solution is to tell your host to repartition the whole drive into two partitions: swap and / . That lets Linux allocate the space dynamically according to actual need. If you're sure you want a separate /boot partition that's ok too, just don't make it a lot bigger than necessary. I don't know which distro you are using but your host should know what is necessary.
By the way, I think
sda1 swap
sda2 /
(optional: sda3 /boot)
is preferable to the opposite order because it puts swap on the outside of the disk, minimizing the mean seek time between it and the rrest of the installation. And the option puts /boot (which will probably be accessed only at startup) on the inside of the drive.
Some installers will demand that / be assigned before swap, but your host should know how to work around that.
That sounds like a good plan but I was told it is not good to have a server with everything on one big partition, our 2 old servers have just one big partition so now I don't know what to do lol.
The addition of a drive is not really an option right now, the machine does have two drives but they are in a RAID array that makes it appear as if there is only one, RAID 0 I think or maybe its 1....I just can't remember whihc is which.
There are advantages to multiple partitions, but only if they are all large enough. And I don't see that you need a separate boot partition. I would go with just swap and / until I was confident that I knew how big the directories just below / need to be.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.