PDA

View Full Version : [ubuntu] /boot partition question re: RAID and LVM



vernoti
August 29th, 2010, 05:54 PM
I've been doing a lot of reading about installing Ubuntu server but have not found the answer to this question.


I have a machine that has 4 hard drives in it. All 500 GB sata. I want to set up RAID with LVM on top of the raided drives. My understanding is that /boot is the only partition that can not be put on LVM. My question is:

Do I need to put the /boot partition on each drive or just on the first?

Scenario 1:
Drive 1 = 1GB /boot, 499 GB LVM
Drive 2 = 500 GB LVM
Drive 3 = 500GB LVM
Drive 4 = 500 GB LVM

Scenario 2:
Drive 1 = 1GB /boot, 499 GB LVM
Drive 2 = 1GB /boot, 499 GB LVM
Drive 3 = 1GB /boot, 499 GB LVM
Drive 4 = 1GB /boot, 499 GB LVM

Which one is correct?

Any help is greatly appreciated.

vernoti
August 29th, 2010, 10:32 PM
bump

cream wobbly
April 1st, 2011, 08:41 PM
You only need a /boot partition on a drive that you will boot from. It holds the kernel which is the first part of the OS to be loaded.

So, short answer: #1.

But you probably don't need such a huge /boot partition -- most recently written recommendations say 100 MB is sufficient. I don't think there's any reason why it shouldn't be 1 GB though.