Grub and Software RAID1

Discussion in 'Installation/Configuration' started by WaveQam, Dec 5, 2007.

  1. WaveQam

    WaveQam New Member

    Good day all,

    Need a bit of help here. I have an active virtual mail server setup using software raid1 (ubuntu 6.06). I want to replace one of the hard drives so I can use it to build a duplicate system but I am worried about GRUB not working. When I initially set up the system I did not set up a separate /boot partition.

    my mdstat is here:
    root@vmail:~# cat /proc/mdstat
    Personalities : [raid1]
    md3 : active raid1 sdb4[1] sda4[0]
    30611776 blocks [2/2] [UU]

    md2 : active raid1 sdb3[1] sda3[0]
    29294400 blocks [2/2] [UU]

    md1 : active raid1 sdb2[1] sda2[0]
    2931776 blocks [2/2] [UU]

    md0 : active raid1 sdb1[1] sda1[0]
    9767424 blocks [2/2] [UU]

    unused devices: <none>

    my Partitions are as follows:

    root@vmail:~# sfdisk --no-reread /dev/sda

    Disk /dev/sda: 9039 cylinders, 255 heads, 63 sectors/track
    Old situation:
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start End #cyls #blocks Id System
    /dev/sda1 * 0+ 1215 1216- 9767488+ fd Linux raid autodetect
    /dev/sda2 1216 1580 365 2931862+ fd Linux raid autodetect
    /dev/sda3 1581 5227 3647 29294527+ fd Linux raid autodetect
    /dev/sda4 5228 9038 3811 30611857+ fd Linux raid autodetect


    root@vmail:~# sfdisk --no-reread /dev/sdb

    Disk /dev/sdb: 9039 cylinders, 255 heads, 63 sectors/track
    Old situation:
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start End #cyls #blocks Id System
    /dev/sdb1 * 0+ 1215 1216- 9767488+ fd Linux raid autodetect
    /dev/sdb2 1216 1580 365 2931862+ fd Linux raid autodetect
    /dev/sdb3 1581 5227 3647 29294527+ fd Linux raid autodetect
    /dev/sdb4 5228 9038 3811 30611857+ fd Linux raid autodetect


    md0 = sda1+sdb1 and is 10 GB mounted at /
    md1 = sda2+sdb2 and is 3GB set up as swap
    When I first set this up I did not know I did not need to mirror swap -and not sure how to remove md1
    md2 = sda3+sdb3 and is 30GB mounted at /home
    md3 = sda4+sdb4 and is 31.15 GB mounted at /var

    The hardrive I will put in to replace sdb is 160 GB instead of 80 GB.

    Thanx for any advice

    WaveQam
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

Share This Page