Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Just Joined!
    Join Date
    Oct 2012
    Posts
    4
    Nobody has no Ideas ???

  3. #3
    Linux Newbie
    Join Date
    Apr 2012
    Posts
    112
    Quote Originally Posted by clayg View Post
    Nobody has no Ideas ???
    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?

  4. #4
    Just 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.

  5. #5
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    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:
    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
    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.
    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

  6. #6
    Just Joined!
    Join Date
    Oct 2012
    Posts
    4
    Thank you, Anyone else have Ideas also ?

  7. #7
    Linux Newbie
    Join Date
    Apr 2012
    Posts
    112
    Quote Originally Posted by clayg View Post
    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.
    if you are using them to play to gain more experience, just go with a single partition and LVM.

    KISS and all that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •