Results 1 to 7 of 7
Hello all, How would I go about the layout of a 300 GB hard drive 'Partitions and there size for a web-server
and a mail-server Both will be seperate servers
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-23-2012 #1Just Joined!
- Join Date
- Oct 2012
- Posts
- 4
Partition Sizes
Hello all, How would I go about the layout of a 300 GB hard drive 'Partitions and there size for a web-server
and a mail-server Both will be seperate servers
Looking for Ideas ???
Thank you all in advance.Last edited by clayg; 10-23-2012 at 06:00 PM.
- 10-24-2012 #2Just Joined!
- Join Date
- Oct 2012
- Posts
- 4
Nobody has no Ideas ???
- 10-24-2012 #3Linux Newbie
- Join Date
- Apr 2012
- Posts
- 112
The question is not very clear.
Are you saying that you have two servers with two 300 gb hard drives?
Are you saying that you have single server where you intend to run a mail and a web server?
how many users for? how big are the websites? will you be using a DB for the websites?
- 10-24-2012 #4Just Joined!
- Join Date
- Oct 2012
- Posts
- 4
thank you for responding, I will have 3 seperate servers, Each server will have one 300 gig hard drive
1 web-server with CMS 'Jommla'
1 mail-server Postfix
1 Mysql-server
These will just be small systems to play with to gain more experince.
Also should I use LVM ?
Again thank you for your time.
- 10-24-2012 #5
It depends on what you want, there is no single definitive approach to partition layout.
Easiest is to just assign the whole partition to the entire server. Done.
Downsides include that when the disk is full for some reason, that the entire disk is full and no process can write anymore. And it's less secure.
Medium approach is to have separate partitions for /, /home, /tmp and /var/log
home, tmp and var/log are the likeliest to fill up. The same goes for your mysql datadir, which in my case would be /var/lib/mysql
I'd recommend 10GB for /, the same for /tmp and /var/log, the rest according to preference.
The strictest approach is this:
This should add a great deal of security, because of the mount options. And because all critical tasks of the system have their own pre-defined spaces, trouble in one area should not hamper the other areas. You can still write to the database or receive mail if the log partition is full.Code:Mountpoint Size Mount options / 10G Recommended /boot 1G nodev,nosuid,noexec Recommended /home ??G nodev,nosuid,noexec Recommended /tmp 10G nodev,nosuid,noexec Recommended /usr 10G nodev Optional /var/log 10G nodev,nosuid,noexec Recommended /var/www >5G nodev,nosuid,noexec Optional /var/spool/mail >5G nodev,nosuid,noexec Optional /var/lib/mysql ??G nodev,nosuid,noexec Optional /var/log/audit 10G nodev,nosuid,noexec Optional /var/tmp bind to /tmp Recommended swap two times your RAM Recommended
Use LVM if you should take this approach, it'll safe you some headaches.
I wouldn't worry too much about it though, this is just to give you some ideas. 300GB should be well enough space and these are testing servers after all.Can't tell an OS by it's GUI
- 10-24-2012 #6Just Joined!
- Join Date
- Oct 2012
- Posts
- 4
Thank you, Anyone else have Ideas also ?
- 10-24-2012 #7Linux Newbie
- Join Date
- Apr 2012
- Posts
- 112


Reply With Quote

