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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-26-2006, 05:17 PM
|
#1
|
|
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:
|
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!
|
|
|
|
08-26-2006, 06:14 PM
|
#2
|
|
Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
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.
|
|
|
|
08-27-2006, 06:20 PM
|
#3
|
|
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:
|
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!
|
|
|
|
08-28-2006, 05:00 PM
|
#4
|
|
Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:25 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|