Quote:
Originally Posted by marcelvl
I have four Western Digital advanced format drive of 2TB. Now i want to create a RAID 5 array on my server. If i'm correct i have to partition the drives with parted because fdisk is not supporting gpt partitions which is needed for 2TB drives:
|
Actually, you need to use GPT for drives
larger than 2 Tb.
Not sure how or if MBR handles 4k sectors ("advanced format"), but then there's nothing wrong with ditching the MBR partitioning scheme altogether, regardless of drive size.
Quote:
Originally Posted by marcelvl
Code:
parted --align=opt /dev/sdx
mklabel gpt
mkpart primary 0% 100%
quit
is this correct? With fdisk you set the drive id to RAID is this needed with parted?
|
No, and it isn't actually needed with MBR (
fdisk) either.
I believe the kernel RAID auto-activation code depends on the partitions being marked as "RAID auto-detect", but that code is deprecated anyway.
Quote:
Originally Posted by marcelvl
How do i create a RAID 5 array? This way?
Code:
mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1
|
Looks good to me.