Dealing with Raid 1

Martin Marques martin at bugs.unl.edu.ar
Mon Dec 12 12:32:37 UTC 2005


On Mon, 12 Dec 2005, Franck Y wrote:

> Hello Fellows.
> I had since yesterday, a hardware raid controller, since yesterday
> because the harware wasn't working.
> I want to set up a software raid 1.
> I have a problem , i was @
> http://www.enterprisestorageforum.com/technology/features/article.php/11192_3526891_1
>
> And it says  to do "
> $ modprobe md

I don't have that at all:

[root at newweb ~]# lsmod | grep md
[root at newweb ~]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb1[1] sda1[0]
       195358336 blocks [2/2] [UU]

unused devices: <none>

> Then add "md" (without the quotes) to your /etc/modules.conf files to
> load it at boot. "
>
> But  i don't have any /etc/modules.conf .
>
> Do you have any raid faq where i can set up a software raid 1 with the FC4.
> I already have a working system and i don't want that the disk has any problem
>
> Here is the  output of fdisk -l
>
>
> Disque /dev/hda: 250.0 Go, 250059350016 octets
> 255 têtes, 63 secteurs/piste, 30401 cylindres
> Unités = cylindres de 16065 * 512 = 8225280 octets
>
> Périphérique Amorce    Début         Fin      Blocs    Id  Système
> /dev/hda1   *           1          13      104391   83  Linux
> /dev/hda2              14       30401   244091610   8e  Linux LVM
>
> Disque /dev/hdc: 250.0 Go, 250059350016 octets
> 255 têtes, 63 secteurs/piste, 30401 cylindres
> Unités = cylindres de 16065 * 512 = 8225280 octets
>
> Périphérique Amorce    Début         Fin      Blocs    Id  Système
> /dev/hdc1   *           1          13      104391   83  Linux
> /dev/hdc2              14       30401   244091610   8e  Linux LVM

OK, you can do in two ways, depending on what kind of data you have on the 
system at this moment:

1) Put the first CD of FC4 and build the RAID there.
2) Use the mdadm system aplication to build the RAID. Then edit your 
/etc/fstab file to make it boot from the /dev/md0 device.

--
  18:02:25 up 4 days,  9:57,  5 users,  load average: 1.59, 1.57, 1.62
---------------------------------------------------------
Lic. Martín Marqués         |   SELECT 'mmarques' || 
Centro de Telemática        |       '@' || 'unl.edu.ar';
Universidad Nacional        |   DBA, Programador,
     del Litoral             |   Administrador
---------------------------------------------------------


More information about the fedora-list mailing list