LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-10-2011, 06:13 AM   #1
rollyah
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Rep: Reputation: 1
Server drive partitioning for best performance (LVM vs .. ?)


Dear all,

I'm trying to setup a development server which hosts a number of virtual hosts.
and i need your advice with the following:

1. What's the best Filesystem to be used with an apache server + mysql?

Relevant info:

i. Mysql DB size' 1 GB
ii. Code directory size' 8 GB (Max file size is 5 KB)

2. What's the best file structure to maximize performance ?

Relevant info:

i. 2 X 1 TB SATAII 64MB blk Edition Int HDD

ii. 1 X 320GB


General info:

* I have an additional directory which hosts all my code under /Development . this directory has a size of almost 300 GB.
* 14 Virtual Hosts would be created on the server under /etc/httpd/VHosts/
* All 14 Developer connect to this server and work simultaneously each on his branch.




I was thinking of the following structure:

1. Drive A (320 GB): "/" + "/boot"
2. Drive B (1 TB): "/var" + "/home"
3. Drive C (1 TB): /development + /opt

Either that or going with the default setup of all HDD being set as one LVM group


Would my custom setup work? i followed no guidelines with the above setup, it's just using my own logic. so i'd appreciate an expert advice with this.

Thanks,

--Roland

Last edited by rollyah; 01-10-2011 at 06:15 AM.
 
Old 01-10-2011, 08:55 AM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
I would set up the two 1TB disks in raid1 + ext[3|4] and forget about the 320G disk unless you just want it for things like downloaded packages or tmp space.

Putting 14 developers time investment on a single spindle is pretty scary.
 
Old 01-11-2011, 02:19 AM   #3
rollyah
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 1
Thanks for the advice.
can you please elaborate on what you found as scary ?

i've changed my setup to the following:

320 GB:
/boot
lvm: /

1TB:
/var #mysql and such
/development #Code worked on by developers
/opt #files needed by developers are stored here

1TB:
Raid1 of /var, /development,/opt

and rsync cronjob that syncs every relevant directory to another physical server.

Quote:
Originally Posted by frndrfoe View Post
I would set up the two 1TB disks in raid1 + ext[3|4] and forget about the 320G disk unless you just want it for things like downloaded packages or tmp space.

Putting 14 developers time investment on a single spindle is pretty scary.
 
Old 01-11-2011, 03:52 PM   #4
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
Quote:
Originally Posted by rollyah View Post
Thanks for the advice.
can you please elaborate on what you found as scary ?
As described in the first post, a single drive failure would lose data permanently and if it happened to be the drive with the repo you would be sunk. With your rsync at least you would only lose recent commits if that is acceptable.
 
Old 01-13-2011, 01:23 PM   #5
rollyah
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 1
excuse me for being slow to understand your point.
i'm going to state what i've understood.
you pointed out that loosign the 320 GB would make me loose my work.
though there's nothign on it except the OS, + Virtual hosts file .conf files.
so if that drive died, a simple live cd would solve the problem untill issue is solved and if that didnt work there's always the other phsyical server.
note that all code needed is under /var and /shared which are both on the 1TB which is raided as raid1 to the other 1 TB.


if one of the 1TB, went down, the raided disk would take over.

is there something i'm missing ?

Quote:
Originally Posted by frndrfoe View Post
As described in the first post, a single drive failure would lose data permanently and if it happened to be the drive with the repo you would be sunk. With your rsync at least you would only lose recent commits if that is acceptable.
 
Old 01-13-2011, 02:44 PM   #6
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
No, but your first post said nothing about raid

Quote:
1. Drive A (320 GB): "/" + "/boot"
2. Drive B (1 TB): "/var" + "/home"
3. Drive C (1 TB): /development + /opt
failure on drive C?
 
Old 01-14-2011, 01:40 AM   #7
rollyah
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 1
oh ok, well i took your advice as i previously posted:

Quote:
Thanks for the advice.
can you please elaborate on what you found as scary ?

i've changed my setup to the following:

320 GB:
/boot
lvm: /

1TB:
/var #mysql and such
/development #Code worked on by developers
/opt #files needed by developers are stored here

1TB:
Raid1 of /var, /development,/opt

and rsync cronjob that syncs every relevant directory to another physical server.

Quote:
Originally Posted by frndrfoe View Post
No, but your first post said nothing about raid



failure on drive C?
 
  


Reply



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
LVM and multiple iSCSI disks performance of LVM xxx_anuj_xxx Linux - Server 4 05-01-2008 12:26 PM
Multiple SCSI drive partitioning/mount points for server oldwordsmith Linux - Newbie 3 04-24-2008 02:39 PM
Server partitioning for small drive (9 GB) flummoxed Linux - Server 4 03-09-2008 07:23 PM
Suggestions for SuSe 10.2 LVM partioning for 4 drive terabyte server faron_young Linux - Newbie 3 05-08-2007 06:44 PM
Hard drives-Partitioning for performance-Web server devinnull Linux - Hardware 3 08-28-2006 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:34 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