Portal Home > Knowledgebase > Articles Database > RAID10 Linux Setup?
RAID10 Linux Setup?
Posted by lifewithcause, 03-17-2016, 03:15 PM |
Fellows - I am setting up a RAID10 Linux server for a news agency whose traffic is going to be 5000 users per day and there will be videos (up to 2 Min) on their website. I need high performance and reliability.
Server configuration
Xeon E3-1270v3, 32GB, 1TB x 4 Enterprise SATA, 1Gbps, Hardware RAID LSI 9271-4I.
Wondering how disk shall be partitioned and what we shall not forget when setting up this box. I want to make sure we do it right very first time.
Thanks
|
Posted by UNIXy, 03-17-2016, 07:04 PM |
Is it too late to provision this server with SSD instead? If so, that's the best performance you'll want. Let's say you can't go SSD and have to make do with the 4x SATA, then make sure you do this:
1) Create one RAID-10 volume using the HW RAID (my preference is Linux SW RAID)
2) Setup /boot as /dev/sda with 2GB size
3) Setup the rest of the volume with LVM
a. Give / (root) 10GBs
b. /var 4GB
c. /var/lib/mysql 4GB
d. /home 10GB
e. /usr (12GB)
Don't worry if these seem too low. They're resizeable.
|
Posted by nessa, 03-17-2016, 07:25 PM |
I tend to prefer not over-partitioning a server - you usually will end up with one or more partitions getting full while others have plenty of room, causing you to have to create ugly symlinks and bindmounts. Stick with a basic partitioning structure of just /boot and /.
But as mentioned, you're going to get better performance out of SSDs, and at "5000 users per day" I hope you can do better than a 4C/8T processor. No one here can give you specific recommendations on how to set up your server because there is no information about the software you're running, where most of your storage will be, or what the overall goals of the environment are. If you're not sure how to set up a server properly, you may want to consider hiring someone that can work with you directly.
|
Posted by serversolutions24x7, 03-18-2016, 03:05 AM |
Yes, I agree. Setting server configuration is depend on the requirements. If you can also provide us the details about applications you are going to host on the server, we can better suggest you.
|
Posted by NortheBridge, 03-18-2016, 04:05 AM |
There is such a thing called over-provisioning as well. 5,000 visitors a day works out to an average of 208 visitors an hour. A 1270v3 and even a 1270v2 can handle that. In fact, virtually every E3-12xx v2/v3 could handle that load. It's a below-average load. Maybe, which I emphasize, you'll average 1.50 -2.00 on load which is just 2 cores (hyperthreacing or not).
The only factors which could change this is concurrency of users, where videos are retrieved from, and what the application is and whether or not it is optimized "decently" for MySQL (as long as it supports 5.5 you can drop in MariaDB 10) and PHP (most applications are PHP based).
|
Posted by copahost, 03-19-2016, 07:51 PM |
Are you using cPanel?
With 4x 1TB in RAID-10 you have a usable space of 2TB
My recommendation:
* Make one single RAID-10 volume
* Partition without using LVM , use ext4:
* /boot 10GB
* Swap with the same amount of RAM. If you have 32GB of RAM, make it 32GB.
* /var with 500GB
* / with the remaining space
Our advice is to never forget to have a big and "comfortable" /var partition.
|
Posted by lifewithcause, 03-21-2016, 03:59 AM |
Thanks everyone for great input.
@copahost This is cPanel server with 2TB usable space.
@NortheBridge Should we really drop-in MariabDB? Has anyone benchmarked performance of MariaDB/PHP+WordPress
|
Posted by copahost, 03-21-2016, 06:52 AM |
If it's a cPanel, you can use this partitioning scheme:
* /boot 10GB
* Swap with the same amount of RAM. If you have 32GB of RAM, make it 32GB.
* /var with 500GB
* / with the remaining space
Don't forget having a comfortable space in /var
|
Posted by Srv24x7, 03-21-2016, 09:40 AM |
Hi,
My preference would be to keep minimum partitions rather than worry later.. Just keep it simple. 3 partitions would be as follows:
1. /boot
2. /
3. swap
Don't get into creating separate partitions for /var or /usr or even MySQL. You will definitely get into trouble at a later stages. Even if you configured it on LVM also, no need to give small size or have separate partitions.
|
Posted by NortheBridge, 03-21-2016, 10:56 AM |
lifewithcause
MariaDB, even before you fine-tune it on average outperforms MySQL in virtually every type of test unless your MySQL install has been really well optimized. Once MariaDB is "dropped in" and optimized, MySQL usually doesn't stand a chance in the performance and stability benchmarks.
We have some pretty heavy MySQL workloads that would often crash under MySQL (i.e. leaving the databases in a crashed state requiring repair) but ever since we dropped in MariaDB on the SQL servers that don't run Microsoft SQL there has been absolutely no DB crashes.
Since it is a "drop in" replacement most software won't even know it changed. Some, like vBulletin 4 and 5 do but those are the only two examples I can think of where that is actually true.
|
Posted by mvshost, 03-21-2016, 01:09 PM |
Because you don't have ssd, I recommend that you create a cache partition on a plop device, which is much faster and handles better the I/O operations. I would recommend to use this partition at least for the most viewed videos, but you can create a bigger one to keep all the videos there. It's also resizable , if you need to extend it in the future.
|
Add to Favourites Print this Article
Also Read
JaguarPC (Views: 687)