LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-13-2011, 07:59 PM   #1
swingliner
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Rep: Reputation: 2
How do I create a software raid array from 3TB drives? (parted?)


I'm on Ubuntu 10.04 64 bit. I have 6 3TB drives I want to place in raid 10. For <=2TB drives, I would run fdisk, create 'fd' (linux raid autodetect) partitions on each drive, then mdadm --create, then mkfs on the new mdX raid device. Since I can no longer use fdisk on >2TB drives, I tried parted instead of fdisk:

Code:
        parted /dev/sdx
        (parted) mklabel gpt
        (parted) unit TB
        (parted) mkpart primary 0 -1
        (parted) print
        (parted) quit
I ran the above on all drives, then did:
Code:
        mdadm --create /dev/md0 --level=10 --verbose --raid-devices=6 --spare-devices=0 /dev/sd{b,c,d,e,f,g}1
        mdadm --detail --scan >> /etc/mdadm.conf
as usual.

This actually worked, and I was able to mkfs and mount and read/write data. However, upon reboot, ubuntu didn't correctly detect the drives and recreate the md0 from the appropriate partitions. What am I doing wrong?
 
Old 10-13-2011, 09:05 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 116Reputation: 116
How far did the reboot get? Any error messages you can provide? I suspect some module might not have been set up to load into the kernel. Or if you never reached the kernel, the boot loader got mangled or doesn't have GPT support.

I generally recommend in a RAID situation to have a separate smaller drive, even an SSD flash device, for booting and system files (like /usr) that need nowhere near a TB. Separation like that also means being able to re-install the OS without losing data, or reformatting the data for recovery from backup without losing the OS, easier to do. In some cases the OS drive might be mirrored or simply replicated as a fast backup (boot the other drive).
 
Old 10-13-2011, 10:34 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
You'll probably need "raid" in parted for autodetect.
 
  


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
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 04:16 PM
Partitioning RAID Array. LVM? parted? peripatetic Red Hat 2 08-25-2006 01:15 AM
fasted way to create a new RAID array on blank drives jerp Linux - General 0 08-14-2006 02:40 PM
Create RAID 5 software array wesleywest Red Hat 3 02-09-2005 03:41 AM
3TB IDE Software Raid-5 Server!!! sanwizard Linux - General 1 11-22-2004 12:31 AM


All times are GMT -5. The time now is 06:04 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration