[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

howto upgrading from non-raid to raid1



Hello list !

I've Followed  the steps of the link
http://www.linuxdoc.org/HOWTO/Boot+Root+Raid+LILO-4.html#ss4.1

to configure de sofware raid
and I've stopped on step 4.5(testing your new raid) because all my boot
floppy and rdev de kernel made with de steps bellow did not worked when
on the next reboot ( shutdown -r now ) :
dd if=kernal.image of=/dev/fd0 bs=2k
    rdev /dev/fd0 /dev/md0
    rdev -r /dev/fd0 0
    rdev -R /dev/fd0 1
Gave me the message :boot failure

I've tried to generate another boot disk with command
mkbootdisk --device /dev/fd0  2.4.2-2 and still did not work  with de
error message:
raid level 1 don't need  chunk-size  parameter , but the system boot ed
by  hard disk.

I'd like to know how to solve this problem and continue the next steps.
Thanks in advance

My configuration is :

on first current(non raid ) disk :

 Device Boot    Start       End    Blocks   Id  System      mounted on
/dev/hda1   *         1       128   1028128+  83  Linux         /
/dev/hda2           129      1823  13615087+   5  Extended
/dev/hda5           129       766   5124703+  83  Linux         /usr
/dev/hda6           767      1404   5124703+  83  Linux         /var
/dev/hda7          1405      1659   2048256   83  Linux         /home
/dev/hda8          1660      1676    136521   82  Linux swap


I've put this second disk bellow on second ide as master too

Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1      2140   1078528+  fd  Linux raid autodetect
/dev/hdc2          2141     29065  13570200    5  Extended
/dev/hdc5          2141     12803   5374120+  fd  Linux raid autodetect
/dev/hdc6         12804     23466   5374120+  fd  Linux raid autodetect
/dev/hdc7         23467     27729   2148520+  fd  Linux raid autodetect
/dev/hdc8         27730     28014    143608+  82  Linux swap

 I've copied  all operating system to  raid devices mounted on /mnt
and configured the /mnt/etc/fstab like :
/dev/md0        /       ext2    defaults        1 1
/dev/md1        /usr    ext2    defaults        1 1
/dev/md2        /var    ext2    defaults        1 1
/dev/md3        /home   ext2    defaults        1 1

my current raid status on system is :

cat /proc/mdstat

Personalities : [raid1]
read_ahead 1024 sectors
md3 : active raid1 hdc7[0]
      2148416 blocks [2/1] [U_]

md2 : active raid1 hdc6[0]
      5374016 blocks [2/1] [U_]

md1 : active raid1 hdc5[0]
      5374016 blocks [2/1] [U_]

md0 : active raid1 hdc1[0]
      1078464 blocks [2/1] [U_]
unused devices: <none>

and my raidtab on /etc in first disk hda is:

# example raidtab
# md0 is the root array
raiddev                 /dev/md0
raid-level              1
nr-raid-disks           2
chunk-size              32
# Spare disks for hot reconstruction
nr-spare-disks          0
persistent-superblock   1
device                  /dev/hdc1
raid-disk               0
# this is our old disk, mark as failed for now
device                  /dev/hda1
failed-disk             1

# md1 is the /usr array
raiddev                 /dev/md1
raid-level              1
nr-raid-disks           2
chunk-size              32
# Spare disks for hot reconstruction
nr-spare-disks          0
persistent-superblock   1
device                  /dev/hdc5
raid-disk               0
# boot is marked failed as well
device                  /dev/hda5
failed-disk               1

# md2 is the /var array
raiddev                 /dev/md2
raid-level              1
nr-raid-disks           2
chunk-size              32
# Spare disks for hot reconstruction
nr-spare-disks          0
persistent-superblock   1
device                  /dev/hdc6
raid-disk               0
# boot is marked failed as well
device                  /dev/hda6
failed-disk               1

# md3 is the /home array
raiddev                 /dev/md3
raid-level              1
nr-raid-disks           2
chunk-size              32
# Spare disks for hot reconstruction
nr-spare-disks          0
persistent-superblock   1
device                  /dev/hdc7
raid-disk               0
# boot is marked failed as well
device                  /dev/hda7
failed-disk               1

Thanks again .








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]