LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-20-2004, 03:09 PM   #1
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Rep: Reputation: 15
RHE Partitons


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
 
Old 07-21-2004, 01:36 PM   #2
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: Kubuntu 18.04.3, Mint 18.3 KDE
Posts: 90

Rep: Reputation: 15
Can you describe the symptoms of your "little trouble" and maybe even tell us what you've tried?
 
Old 07-21-2004, 04:35 PM   #3
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Original Poster
Rep: Reputation: 15
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.
 
Old 07-21-2004, 06:38 PM   #4
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: Kubuntu 18.04.3, Mint 18.3 KDE
Posts: 90

Rep: Reputation: 15
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 /.
 
Old 07-21-2004, 07:13 PM   #5
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Original Poster
Rep: Reputation: 15
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.
 
Old 07-21-2004, 07:30 PM   #6
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: Kubuntu 18.04.3, Mint 18.3 KDE
Posts: 90

Rep: Reputation: 15
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.
 
Old 07-21-2004, 08:14 PM   #7
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Original Poster
Rep: Reputation: 15
Is there anyway to do the while the server is running or something of that nature? Or does it really mean an OS reinstall???

Cause I am noticing there is not much space in var and also in /
So I am worried cause the DBs are in var as well as all the logs.

But I don't want to have to shutdown all my sites to do the transfers again.

I think I am out of my leauge lol, the servers just came like this from the host, and the host told us they came like this from dell.

Last edited by brentos; 07-21-2004 at 08:22 PM.
 
Old 07-22-2004, 06:55 AM   #8
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Original Poster
Rep: Reputation: 15
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.
 
Old 07-22-2004, 07:34 AM   #9
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: Kubuntu 18.04.3, Mint 18.3 KDE
Posts: 90

Rep: Reputation: 15
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".

Best wishes.
 
Old 07-22-2004, 07:53 AM   #10
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: Kubuntu 18.04.3, Mint 18.3 KDE
Posts: 90

Rep: Reputation: 15
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.
 
Old 07-22-2004, 08:43 AM   #11
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: Kubuntu 18.04.3, Mint 18.3 KDE
Posts: 90

Rep: Reputation: 15
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.
 
Old 07-22-2004, 08:56 AM   #12
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Original Poster
Rep: Reputation: 15
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.

So you think a boot a swap and one / is the best?
 
Old 07-22-2004, 06:09 PM   #13
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: Kubuntu 18.04.3, Mint 18.3 KDE
Posts: 90

Rep: Reputation: 15
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.
 
Old 07-25-2004, 10:18 AM   #14
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Original Poster
Rep: Reputation: 15
We have decided to go with swap / and /boot

It seems to have worked out ok and thats what our old machines had

Thanks for the help.

You need anything let me know.
 
Old 07-26-2004, 06:56 AM   #15
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: Kubuntu 18.04.3, Mint 18.3 KDE
Posts: 90

Rep: Reputation: 15
There's a lot to be said for going with what you know works.

Best wishes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi to all RHE !!! vjsys LinuxQuestions.org Member Intro 1 10-20-2004 01:42 PM
RHE, Ensim Basic for RHE, Plesk for RHE xbaez Linux - Software 0 09-21-2004 09:45 AM
Reallocating partitons bullshit Linux - Newbie 4 08-16-2004 12:16 AM
Partitons (again) mykrob Linux - Newbie 8 08-02-2004 03:51 PM
Other partitons from ext3? Zenox Linux - Software 1 11-08-2003 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration