On the install of Ubuntu this evening, instead of letting Ubuntu partition the drive, I decided to do it manually.
To do this I needed to learn enough about the partitioning process to be able to do it myself.
I found one really good article on the subject here:
http://ubuntuforums.org/showthread.php?t=1986743
The basic premise of the above article is to use LVM, and create lots of separate partitions, using LVM (Logical Volume Manager). The instructions on this page outline using LVM to partition the drive. In another article, I will show another method, which does NOT use LVM (ie a less complex approach).
The author of that article was gearing his server for a slightly different application, so I came up with my own plan for how the hard drive on my server was going to be laid out. Note: I am using quantity 2 - 2 2TB drives, setup in a hardware RAID configuration (mirrored for auto backup). Here's the basic layout of the partitions in this design:
Outside the LVM (Logical Volume Manager):
boot - 200 MB - This will remain static in size. It is also the only space residing outside the Logical Volume Manager (LVM)
Inside the LVM I have:
root - 20 GB - Operating system and everything else which should remain fairly static.
swap - 8G (2 * amount of RAM) - This will most likely remain static in size. However, if amount of RAM is adjusted, this can be adjusted as well.
var - 500GB - This is the website/database/log storage and will continue to grow over time.
These are the step by step instructions for the settings I entered:
- Select Manual {ENTER}
- Select SCSI3 (0,0,0) (sda) - 8.6 GB VMware Virtual disk {ENTER}
- Select Yes to create new empty partition table, {ENTER}
- Select pri/log FREE SPACE {ENTER}
- Select Create a new partition {ENTER}
- Type 200 MB, {ENTER} (NOTE: This will be the /boot partition)
- Select Primary {ENTER}
- Select Beginning {ENTER}
- Select Use as: Ext4 journaling file system {ENTER}
- Select Ext2 file system {ENTER}
- Select Mount point: / {ENTER}
- Select /boot - static files of the boot loader {ENTER}
- Select Bootable flag: off {ENTER} (NOTE: This toggles it on)
- Select Done setting up the partition {ENTER}
- Select Configure the Logical Volume Manager {ENTER}
- Select Yes to write change to disks and configure LVM, {ENTER}
- Select Create volume group {ENTER}
- Type LVG {ENTER}
- Select /dev/sda FREE SPACE, {SPACEBAR}, {ENTER}
- Select Yes to write change to disks and configure LVM, {ENTER}
- Select Create logical volume {ENTER}
- Select LVG (8384MB) {ENTER}
- Type swap {ENTER}
- Type 8G {ENTER} (NOTE: This is double the amount of RAM)
- Select Create logical volume {ENTER}
- Select LVG (6387MB) {ENTER}
- Type root {ENTER}
- Type 20G {ENTER}
- Select Create logical volume {ENTER}
- Select LVG (6387MB) {ENTER}
- Type var {ENTER}
- Type 500G {ENTER}
- Select Finish {ENTER}
Now that we've created the Volume Groups, we need to go back in and tell the installer which Linux partitions will be associated/mounted under the VGs created above:
- Select #1 2.0 GB directly under LVM VG LVG, LV swap, {ENTER}
- Select Use as: do not use {ENTER}
- Select swap area {ENTER}
- Select Done setting up the partition {ENTER}
- Select #1 20.0 GB directly under LVM VG LVG, LV root, {ENTER}
- Select Use as: do not use {ENTER}
- Select Ext4 journaling file system {ENTER}
- Select Mount point: none {ENTER}
- Select / - the root file system {ENTER}
- Select Done setting up the partition {ENTER}
- Select #1 directly under LVM VG LVG, LV var, {ENTER}
- Select Use as: do not use {ENTER}
- Select Ext4 journaling file system {ENTER}
- Select Mount point: none {ENTER}
- Select /var {ENTER}
- Select Label: none {ENTER}
- Type var {ENTER}
- Select Done setting up the partition {ENTER}
- Select Finish partitioning and write changes to disk {ENTER}
- Select Yes to write changes to disk, {ENTER}