LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-09-2006, 11:29 AM   #1
metabaron
LQ Newbie
 
Registered: Feb 2006
Posts: 11

Rep: Reputation: 0
Question How to create an initial raid 5 array with 2 disk?


Hi
I would like to create a raid 5 array with 3 devices : 2 drives (lets says d1 and d2) and 1 logical raid 0 drive stripping some smaller drives (d3, d4 .. dn ) . But ATM the smaller drives are not availables and contain data. So i 'd like to create a raid 5 initially degraded with d1 and d2, copy my data to the array, prepare the raid0 with d3 d4 .. dn and finally add the raid 0 to the raid 5 to complete it

If I create my initial raid 5 with only 2 disk ( mdadm -C /dev/md0 -n 2 -l 5 ) i only have the disk space of 1 disk like raid 1.
So is there a way to initially create a degrated raid 5 ?
thx
 
Old 12-09-2006, 11:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just use the word "missing" in place of one of the block device references and keep -n at 3, should work fine.
 
Old 12-09-2006, 05:54 PM   #3
metabaron
LQ Newbie
 
Registered: Feb 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Indeed it's well explained in the mdadm man page ;p
Thank for tips
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fasted way to create a new RAID array on blank drives jerp Linux - General 0 08-14-2006 01:40 PM
Moving a Slack install from an ATA disk to a RAID array shubb Slackware 2 08-06-2006 11:54 AM
php mysql initial connect to create db spoody_goon Programming 10 05-07-2005 09:20 AM
Create RAID 5 software array wesleywest Red Hat 3 02-09-2005 02:41 AM
kernel build create initial ramdisk htamayo Linux - Software 1 01-07-2005 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09: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
Open Source Consulting | Domain Registration