[mdlug] Damaged Image recovery

Dan Pritts danno at umich.edu
Wed Sep 30 11:13:49 EDT 2009


On Tue, Sep 29, 2009 at 04:20:06PM -0400, David McMillan wrote:
> 	I am proud to serve as your metaphorical crash-test dummy, mon Capitaine!

alas

> 	(now, if you'll excuse me, I have *got* to finish learning how to set 
> up software RAID....)

At its simplest, 

  mdadm --create /dev/md0 --raid-devices 2 -l 1 /dev/sdX /dev/sdY

  mdadm --assemble /dev/md0  /dev/sdX /dev/sdY

and then do a newfs for your favorite filesystem on /dev/md0, and mount it.

If you want to take an existing filesystem and make it into a software raid
that is a little harder.

You could use partitions instead of full disks if you had a reason to.
If you set the partition type to "linux raid autodetect" (type fd maybe?)
the kernel will attempt to auto-assemble the raid at boot time, with varying
levels of success depending on your specific configuration.


danno
--
dan pritts
danno at umich.edu
734-929-9770



More information about the mdlug mailing list