LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2013, 12:16 PM   #1
marcelvl
LQ Newbie
 
Registered: Feb 2010
Posts: 9

Rep: Reputation: 0
Create a RAID 5 array with advanced format drives


Hi,

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:

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? 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
I first want add 3 drives to the array and then grow the array with the fourth drive. So i'll get familiar how this goes.
 
Old 06-23-2013, 12:37 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,469

Rep: Reputation: Disabled
Quote:
Originally Posted by marcelvl View Post
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 View Post
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 View Post
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.
 
Old 06-23-2013, 12:45 PM   #3
marcelvl
LQ Newbie
 
Registered: Feb 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Ser Olmy View Post
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.
Okay larger as 2TB and GPT is needed. Good to know!

Quote:
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.


Looks good to me.
Thanks for clarifying, confirming and the fast reply!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Rebuilding a RAID 5 Array with the Proper Drives zwabbit Linux - General 1 02-16-2012 02:46 AM
Partition table on Advanced Format drives amroth Linux - Hardware 4 01-02-2012 02:36 PM
How do I create a software raid array from 3TB drives? (parted?) swingliner Linux - Server 2 10-13-2011 10:34 PM
Advice on Western Digital 'Advanced Format' hard drives telemeister Slackware 24 09-05-2010 12:21 AM
fasted way to create a new RAID array on blank drives jerp Linux - General 0 08-14-2006 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration