[ale] Software RAID1 rebuild after HDD failure (How to do?)

Ryan Fish FishR at bellsouth.net
Sat Jul 1 00:43:28 EDT 2006


Now I'm lost on what and/or when to format/not format.  If I build the
partitions and let either raidhotadd or mdadm reassemble the array wouldn't
formatting blow away all of the information that was just put in place on
the new HDD?  I must be missing something here...

-Ryan

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Jim
To: ale at ale.org
Popovitch
Sent: Friday, June 30, 2006 8:43 PM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] Software RAID1 rebuild after HDD failure (How to do?)

Joe Steele wrote:
> 
> By way of comparison:  when first building a new raid array, you 
> partition the drives, then you run mdadm to assemble the array.  Only 
> then do you format the assembled array.  The device that gets formated 
> is /dev/md0 (the raid device), not /dev/hda1 (a partition that is part 
> of the array).
 >
> If a drive fails, its partition(s) are removed from the array, a new 
> drive is installed with partitions of the same size as those of the 
> failed drive, and the partition(s) are added back to the array.  At that 
> point, the raid system begins to rebuild the data on the partitions, 
> which includes rebuilding whatever formatting belongs there.

Good point Joe.  Ryan, just make sure you don't re-format /dev/md0, let 
mdadm sync the data from the first drive to the second drive. ;-)

-Jim P.






_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list