[TriLUG] RAID Recover after losing 1 disk in RAID-1 setup

Brian Weaver brianweaver at nc.rr.com
Fri Nov 5 22:00:23 EST 2004


Thanks Brian & Greg, I got my friend's system rebuilding earlier today.
He had managed to do most of the tasks through Harddrake. The final step
with 'raidhotadd' was the only step that he needed to complete the
operation.

-Weave

Brian Daniels [bitmage at bellsouth.net] wrote on Fri, Nov 05, 2004 at 10:57:43AM -0500:
> On Fri, Nov 05, 2004 at 10:25:18AM -0500, Brian Weaver wrote:
> > 
> > I'm not very familiar with software raid on Linux so I could not give
> > him the commands he needed over the phone or via e-mail. Does anyone
> > know the appropriate steps/commands to get him back on the correct
> > track?
> > 
> 
> I'm only familiar with RedHat/Fedora, but the process should be similar:
> 
> He needs to install a new drive and partition it with equal or larger 
> partitions than the existing drive it is mirroring.  These partitions need to 
> be set to type 'fd' Linux Raid Autodetect.
> 
> He can then add the partitions to the array with the raidhotadd command:
> raidhotadd /dev/md0 /dev/hdc1
> which would add partition 1 on drive hdc to the md0 raid device.  He'll need 
> to look at his /etc/raidtab to see which partitions were in each array.
> 
> He needs to be careful and make sure that he gets the partition sizes 
> correct and adds them to the right raid devices. 
> 
> Doing a 'cat /proc/mdstat' will show the status of the array and the 
> rebuild process.
> 
> --Brian
> 
> -- 
> Question with boldness even the existence of a god;
> because if there be one he must approve of the
> homage of reason more than that of blindfolded fear.
> 
> --Thomas Jefferson, Aug. 10, 1787
> 
> 
> Brian Daniels                  bitmage at bellsouth.net
>       http://www.eviloverlord.net
> 
> -- 
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc

-- 
It is by caffeine alone I set my mind in motion. It is by the juice of
the coffee bean that thoughts acquire speed, the lips acquire stains,
stains become a warning. It is by caffeine alone I set my mind in motion.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://www.trilug.org/pipermail/trilug/attachments/20041105/9362bb64/attachment.pgp>


More information about the TriLUG mailing list