Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Create software raid5 with one drive offline.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Mon Jan 17, 2005 2:39 am    Post subject: Create software raid5 with one drive offline. Reply with quote

I am wondering if it is possible in theory/practice to create a software raid 5 with one of the drives being offline from the get-go.

Specifically, I want to create a raid5 with eight 200gb drives, but one them already has information that I intend to keep. So I want to initialize the 8-drive raid with only 7 drives (essentially a regular 8-drive raid with 1 offline), then bring the 8th drive online once I have copied the files over to the raid.

Is this feasible?
Back to top
View user's profile Send private message
evan18h
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 83

PostPosted: Mon Jan 17, 2005 5:42 am    Post subject: Reply with quote

I did a quick search on google, becuase I was particularly interested in knowing myself.. and what I got was that it is possible depending on what you are using (I think its easier with a hardware RAID over a software one), I've never attempted this so I would'nt know for sure... but I would like to know what your using to build this.

Last edited by evan18h on Mon Jan 17, 2005 5:46 am; edited 1 time in total
Back to top
View user's profile Send private message
futile1
n00b
n00b


Joined: 23 Feb 2004
Posts: 20

PostPosted: Mon Jan 17, 2005 5:46 am    Post subject: Reply with quote

This can be easily done. From the mdadm man page:

CREATE MODE
Usage: mdadm --create device --chunk=X --level=Y
--raid-devices=Z devices


This usage will initialise a new md array, associate some devices with it, and activate the array.

This the --auto option is given (as described in more detail in the section on Assemble mode), then the md device will be created with
a suitable device number if necessary.

As devices are added, they are checked to see if they contain raid superblocks or filesystems. They are also checked to see if the
variance in device size exceeds 1%.

If any discrepancy is found, the array will not automatically be run, though the presence of a --run can override this caution.

To create a "degraded" array in which some devices are missing, simply give the word "missing" in place of a device name. This will
cause mdadm to leave the corresponding slot in the array empty. For a RAID4 or RAID5 array at most one slot can be "missing"; for a
RAID6 array at most two slots. For a RAID1 array, only one real device needs to be given. All of the others can be "missing".

When creating a RAID5 array, mdadm will automatically create a degraded array with an extra spare drive. This is because building the
spare into a degraded array is in general faster than resyncing the parity on a non-degraded, but not clean, array. This feature can
be over-ridden with the --force option.
_________________
AMD64 3000+, MSI K8N neo2-platinum, 1gb dual-channel DDR, Antec P160 case
Back to top
View user's profile Send private message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Mon Jan 17, 2005 7:07 am    Post subject: Reply with quote

Hmm, after reading up on raidtools' "raidreconf" and "lsraid" I think I am going to go with a smaller 4-5 drive raid and add drives later as needed.

To dispell some of the risk, I think I will make a two ~100gb partitions on each drive and have two seperate logical Raids. This way I can expand each half independently and move all crucial data back and forth to the one that is not currently being expanded :)
Back to top
View user's profile Send private message
fmalabre
Guru
Guru


Joined: 19 Jun 2002
Posts: 376
Location: Chicago

PostPosted: Sat Feb 19, 2005 3:56 am    Post subject: Reply with quote

What command do you use to start your raid with one missing drive?
I'm going crazy, my raid won't start, i've been tring for hours...
Couldn't find anything on google...
lsraid says my 2 drives are ok...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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