Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub2 & GPT & software raid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
h0mer`-
Apprentice
Apprentice


Joined: 02 Aug 2004
Posts: 215

PostPosted: Thu Jun 21, 2012 9:59 am    Post subject: grub2 & GPT & software raid Reply with quote

hi,

atm i try to remotely install a software raid 6 on a root server with 7 3TB harddrives. My partitions need to be larger than 2TB so my only option seems to be gpt, right?

i read the wiki entries for raid and gpt and also the grub2 guide http://dev.gentoo.org/~scarabeus/grub-2-guide.xml but i cannot figure out what i really need to make this work.

my main question is

do i need grub2 for the following setup: gpt & software raid & partitions larger than 2tb ?
Back to top
View user's profile Send private message
zappatized
n00b
n00b


Joined: 18 Aug 2012
Posts: 21

PostPosted: Wed Aug 22, 2012 1:42 am    Post subject: Reply with quote

Not sure if you're still working on this...
You need GPT format as the MBR headers can't support data past 2TB per partition.
Are you against using grub2?
Are you planning to use lvm?
Not knowing more specific requirements I could only recommend something like this:
Code:

Number  Start (sector)    End (sector)  Size       Code  Name
   1              40            2047   1004.0 KiB  EF02  BIOS
   2            2048          411647   200.0 MiB   8300  Boot
   3          411648      1953525134   931.3 GiB   8E00  data

Once you partition the first disk to your liking use:
Code:
sgdisk -b gpt_part_layout /dev/sda
sgdisk -l gpt_part_layout /dev/sdb
sgdisk -G /dev/sdb

repeating the last two steps for the rest of the disks. You can put sdx2 partitions in a raid1, but direct grub to load the kernel from sda. If you want flexibility with setting different stripe sizes put a ddf container inside each data partition (even after luks-encrypting) and create desired raids within, then pvs/vgs/lvs on top. The last time I used ddf though I had to reserve a small segment (1M would probably be enough) at the beginning of the container because the lvm data would overwrite some raid data.

Edit to correct egregious partition code error.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum