[ale] Make RAID 1 during install

Brian Stanaland brian.stanaland at gmail.com
Thu Dec 16 00:38:49 EST 2004


OK.  Thanks, DOW for
http://www.linux.org/docs/ldp/howto/Software-RAID-HOWTO-7.html#ss7.4

That, and lots of Googling, has gotten me almost there.  Where I am
now...I've been able to make one RAID partition out of /dev/hda3 and
/dev/hdb3 as /dev/md0 and it's in use as /boot.  I'm trying to get
/dev/hda2 and /dev/hdb2 to be /dev/md1 and hold the / filesystem.  I
have hda2 and hdb2 configured as linux raid autodetect.  Edited
/etc/raidtab and /etc/fstab.  Copied the filesystem from hda2 to hdb2.
 Did everything I thought I needed but still can't get it to work. 
So...I'm asking for suggestions.  This is my first Debian install with
a raid.  I've used Red Hat or SuSE before.  If there is something
glaringly wrong with what I'm doing, please let me know.  The config
files are below.

#: cat /etc/fstab
/dev/md0 /boot ext3 defaults,noatime 1 1
/dev/md1 / ext3 defaults,noatime 1 1
# /dev/hda2 / ext3 defaults,noatime 1 1
/dev/hda1 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
# Dynamic entries
/dev/hda2 /mnt/hda2 ext3 noauto,users,exec 0 0
/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0
/dev/hdb1 /mnt/hdb1 auto noauto,users,exec 0 0
/dev/hdb2 /mnt/hdb2 ext3 noauto,users,exec 0 0
/dev/hdb3 /mnt/hdb3 ext3 noauto,users,exec 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,dev,ro 0 0
/dev/floppy /mnt/floppy vfat,ext2,hfsplus noauto,users,dev 0 0

#: cat /etc/raidtab
raiddev /dev/md0
        raid-level              1
        nr-raid-disks           2
        nr-spare-disks          0
        chunk-size              32
        persistent-superblock   1
                device          /dev/hda3
                raid-disk       0
                device          /dev/hdb3
                raid-disk       1

raiddev /dev/md1
        raid-level              1
        nr-raid-disks           2
        nr-spare-disks          0
        chunk-size              32
        persistent-superblock   1
                device          /dev/hda2
                raid-disk       0
                device          /dev/hdb2
                raid-disk       1

#: dmesg (the raid part):
md: could not lock hda2.
md: could not import hda2!
md: autostart unknown-block(0,770) failed!
md: invalid raid superblock magic on hdb2
md: hdb2 has invalid sb, not importing!
md: could not import hdb2!
md: autostart unknown-block(0,834) failed!
md: could not lock hda2.
md: error, md_import_device() returned -16
md: array md1 already initialised!
end_request: I/O error, dev fd0, sector 0


#: mkraid /dev/md1
handling MD device /dev/md1
analyzing super-block
disk 0: /dev/hda2, 38082051kB, raid superblock at 38081984kB
disk 1: /dev/hdb2, 38082051kB, raid superblock at 38081984kB
mkraid: aborted.
(In addition to the above messages, see the syslog and /proc/mdstat as well
 for potential clues.)

#: cat /proc/mdstat
Personalities : [raid1]
md1 : inactive
md0 : active raid1 hdb3[1] hda3[0]
      505920 blocks [2/2] [UU]

unused devices: <none>

#: cat /var/log/syslog
Dec 16 04:23:50 mepis1 kernel: md: could not lock hda2.
Dec 16 04:23:50 mepis1 kernel: md: could not import hda2!
Dec 16 04:23:50 mepis1 kernel: md: autostart unknown-block(0,770) failed!
Dec 16 04:23:50 mepis1 kernel: md: invalid raid superblock magic on hdb2
Dec 16 04:23:50 mepis1 kernel: md: hdb2 has invalid sb, not importing!
Dec 16 04:23:50 mepis1 kernel: md: could not import hdb2!
Dec 16 04:23:50 mepis1 kernel: md: autostart unknown-block(0,834) failed!
Dec 16 04:24:02 mepis1 kernel: md: array md1 already initialised!



Not sure what other files or info would be helpful.  



On Wed, 8 Dec 2004 21:50:34 -0500, Brian Stanaland
<brian.stanaland at gmail.com> wrote:
> Anyone know how to create a RAID mirror setup during a Debian (Mepis)
> install?  There's no RAID controller or anything, just the two drives.
>  I know how to do it during a Red Hat install, but I'd like to build
> this server with Debian.
> 
> Thanks,
> 
> Brian
> 
> 
> --
> 
> "Anyone who has the power to make
> you believe absurdities has the power
> to make you commit atrocities."
> 
> -- Voltaire
> 


-- 

"Anyone who has the power to make 
you believe absurdities has the power
to make you commit atrocities."

-- Voltaire



More information about the Ale mailing list