Moving raid to different machine

Sam Varshavchik mrsam at courier-mta.com
Tue May 10 15:17:46 UTC 2005


Phillip T. George writes:

>> Try this: install Fedora on another box.  When you install it create a 
>> small raid partition somewhere.  Doesn't matter what it actually is, 
>> the only thing that needs to happen is to have anaconda create an 
>> initrd that loads the raid modules at boot time.  Then, you should be 
>> able to move your old disks to the other machine, and they should come 
>> up at boot.
>>
>>
> Sam,
> 
> I didn't have to create any sort of raid for the modules to load at boot 
> time.  I might of had to set some kind of service to start--but I don't 
> think I even had to do that!  It was great :)

You're slightly mistaken.  Anaconda is not going to add the raid modules 
unless it actually creates some raid partition at install file.

Here, for example, is the relevant part from the anaconda-generated linuxrc 
inside an initrd image on a raid server:

echo "Loading scsi_mod.ko module"
insmod /lib/scsi_mod.ko
echo "Loading sd_mod.ko module"
insmod /lib/sd_mod.ko
echo "Loading aic79xx.ko module"
insmod /lib/aic79xx.ko
echo "Loading raid1.ko module"
insmod /lib/raid1.ko
echo "Loading jbd.ko module"
insmod /lib/jbd.ko
echo "Loading ext3.ko module"
insmod /lib/ext3.ko
raidautorun /dev/md0
raidautorun /dev/md1
raidautorun /dev/md2

Anaconda is not going to generate all of this raid stuff unless it's 
actually needed.

I suppose you can always manually load raid1.ko, if you don't need raid at 
boot time.  Not quite sure yet what raidautorun does, though.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050510/bc9d1491/attachment-0001.sig>


More information about the fedora-list mailing list