LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-26-2006, 05:17 PM   #1
devinnull
Member
 
Registered: Dec 2005
Location: UT-USA
Distribution: RHEL 3/4 Servers - FC 5 x64 on the desktop - Edubuntu for the kiddies
Posts: 53

Rep: Reputation: 15
Hard drives-Partitioning for performance-Web server


Hello-

I am building a new server that will be used in a LAMP webserver configuration.

I have 6 drives total.
All Ultra320
All on the same channel. :/

2x 36 GB (15K rpm) I will have in raid 1.
4x 72 GB (10K rpm) I will have in a raid 5.

OS is RHEL 4.


Questions is, what is the best way to partition this for performance?
/boot and swap on sda?
/ on sdb?
Just put /var and /home on sdb?

Thanks in advance folks!
 
Old 08-26-2006, 06:14 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
A lot of people do not know that RAID-1 (mirroring) is better for a web server. Also RAID-1 is better for serving an OS and a file server.

I suggest putting four 72 GB hard drives in RAID-1 to minimize the time to find four files. Set this for the web server files. Then for your two 36 GB hard drives, put them in RAID-1 as well. Use the 36 GB hard drive for the OS.

[36 GB RAID-1 array]
16MB-128MB /boot
1GB swap
2GB /var/log
1 GB or more /var/mysql
4 GB /
all unused space /home

[72 GB RAID-1 array]
all /var/www

I know I suggest a different RAID setup than yours but RAID-5 is better for in a NAS backup or on a 1 gigabit network. I suggest using either EXT3 with b-tree or XFS.
 
Old 08-27-2006, 06:20 PM   #3
devinnull
Member
 
Registered: Dec 2005
Location: UT-USA
Distribution: RHEL 3/4 Servers - FC 5 x64 on the desktop - Edubuntu for the kiddies
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks for the reply Electro. RAID 1 only uses two drives, you wouldn't use the other two drives at all? I will be using more then the 72 GB the 2nd array will provide. What of them?

Thanks!
 
Old 08-28-2006, 05:00 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can place four drives in RAID-1, but it is up to the software if it can accept four queues. You can try set up multiple RAID-1 arrays and then add them to either LVM2 or EVMS, but the system will not be able to access more than one file. You can setup two LVM2 or EVMS and put them in a RAID-1 array. Two files can be read at once and the capacity can grow when needed. With any LVM2 or EVMS setups, it will try to do RAID-0 when possible. If the server is going to have a 50/50 read and write queues, two RAID-5 hardware arrays and Linux software RAID set in RAID-1. This will provide multiple write and read queues. Also it has higher reduntancy rating than RAID-5.

I never seen a site that is taking up more than 72 GB. If you are setting up a file download site, than maybe. I think this site is taking up a few gigabytes.
 
  


Reply

Tags
harddrive, partition, raid, redhat, webserver



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
Partitioning two hard drives for slackware m.vanes Slackware 9 09-23-2005 08:35 AM
Post-Install Partitioning - Dual Hard Drives dolvmin Linux - Hardware 16 08-12-2005 11:05 AM
Web Server Partitioning toneee Slackware 4 02-01-2005 07:51 PM
Web Server Performance hotrodowner Linux - Networking 7 06-28-2002 10:33 AM
partitioning hard drives Ingrid Linux - Software 2 11-23-2000 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:02 PM.

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