[CentOS] Software Raid Expert Needed

Mon Oct 6 00:43:20 UTC 2008
Sam <centos at net153.net>

Iulian Badea wrote:
> Hello all,
> 
> I have 2 x 250GB sata disks (sda and sdb).
> 
> # fdisk -l /dev/sda
> 
> Disk /dev/sda: 250.0 GB, 250059350016 bytes
> 255 heads, 63 sectors/track, 30401 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1       14939   119997486   fd  Linux raid
> autodetect
> /dev/sda2           14940       29878   119997517+  fd  Linux raid
> autodetect
> /dev/sda3           29879       30400     4192965   fd  Linux raid
> autodetect
> 
> # fdisk -l /dev/sdb
> 
> Disk /dev/sdb: 250.0 GB, 250059350016 bytes
> 255 heads, 63 sectors/track, 30401 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sdb1   *           1         522     4192933+  fd  Linux raid
> autodetect
> 
> # cat /proc/mdstat
> Personalities : [raid1]
> md2 : active raid1 sdb1[1] sda3[0]
>       4192832 blocks [2/2] [UU]
> 
> md1 : active raid1 sda2[1] sda1[0]
>       119997376 blocks [2/2] [UU]
> 
> What I want to do:
> - have on each disk 2 partitions (4gb for swap and the 200gb+ the rest for
> /)
> - raid 1 between them
> 
> This is what I wanted in the beginning, but...I didn't paid attention...
> 
> What can I do to rebuild it to my needs (without loosing data or
> reformatting)?
> 
> Thanks 
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos


I don't know if you are going to keep lvm or not but here is a howto:
http://www.howtoforge.com/set-up-raid1-on-a-running-lvm-system-fedora8

Also just search for "raid1" on that website and you can find more stuff.

Sam