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

moving an installed Debian system onto RAID-1


I've got an installed Debian system which I want to move to RAID-1.

I've installed raidtools2 and have a properly configured kernel running, 
 eg everything is statically compiled in, not as modules.

I was able to move all the partitions to the proper md-devices without 
 problems but for the root partition (I don't care for /boot ATM).

Currently, I have this:
/dev/sda3 on / type ext3 (rw,errors=remount-ro)
/dev/sda1 on /boot type ext3 (rw)
/dev/md5 on /usr type ext3 (rw)
/dev/md6 on /var type ext3 (rw)
/dev/md7 on /var/tmp type ext3 (rw)
/dev/md8 on /home type ext3 (rw)

I've created an md3 device consisting of
raiddev /dev/md3
        raid-level              1
        nr-raid-disks           2
        persistent-superblock   1
        chunk-size              8
        device                  /dev/sdb3
        raid-disk               0
        device                  /dev/null
        raid-disk               1
        failed-disk             1
 on which I've created an ext3 filesystem and copied over all of sda3 
 and edited etc/fstab on md3 to reflect that / resides on md3 now.
 I can mount this without problems:
   # mount /dev/md3 /mnt/tmp/
   # mount | grep md3
   /dev/md3 on /mnt/tmp type ext3 (rw)

However, when I boot with "Linux root=/dev/md3 ext3" it can't find a 
 valid ext3/ext2/reiserfs superblock on md(9,3). There's a couple lines 
 right before that that tell me that md is autodetecting RAID arrays 
 (can't copy/paste that for obvious reasons).

Any hints/pointers? The various howtos etc. aren't all that 
 helpful for this kind of problem.

/ Ing. Robert Waldner | Security Engineer |  CoreTec IT-Security  \
\   <rw@coretec.at>   | T +43 1 503 72 73 | F +43 1 503 72 73 x99 /

Attachment: pgpu8upXksRuw.pgp
Description: PGP signature

Reply to: