Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 03-18-2005, 12:04 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 4

Rep: Reputation: 0
raid1 using mdadm? help plz

i m planning to use mdadm to create a software raid1 system(mirroring)
i ve 2 40GB ide drives

but i have some questions

how could i know if raid1 support is already activated on my kernel (2.6.9)?
should my 1st harddisk be partionned using "linux raid auto" filesystem ?

this is my config:
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4870 39118243+ 83 Linux
/dev/hda2 4871 4997 1020127+ 82 Linux swap

Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4998 40146403+ fd Linux raid autodetect

what do u suggest me ?

could any1 gimmi detailed steps to create a raid1 system (partitionning, creating md, mounting, demounting, grub modifications ...) plz

thanks 4 help
Old 03-19-2005, 04:12 PM   #2
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
I've used raid1 with mdadm tools but I think when I would do this again I'd take a look
at te devicemapper/ LVM

You want to make everything raid1? I left on both disks a part to boot without raid and when the
kernel is loaded it can mount the raid partition for the rest. by copying the small root partition to
the other disk and modifying the /etc/fstab file it is posible to you the other disk to book the

I splitted the disks as I would do for a single disk. on the relevant partitions I made a raid

# /etc/raidtab
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
persistent-superblock 1
chunk-size 4
device /dev/hda2
raid-disk 0
device /dev/hdb2
raid-disk 1

mkraid /dev/md0 builds the raid after that you can use /dev/md0 instead of /dev/hda2, you can copy this block a few times for every extra partitiion you want.

the commands you'll need are
raidstart raidstop
raidhotadd (to rebuild a raid, but the big disadvantage is that the new disk needs to have the
same partitions, as the old one, fdisk -l /dev/hda can help for this info.

good luck

Old 05-20-2005, 01:13 AM   #3
Registered: Dec 2004
Distribution: Zenwalk/Slackware
Posts: 98

Rep: Reputation: 15
if you give me your email, i can send you tutorial how to setup raid1 on slackware
i wrote it
Old 06-09-2005, 04:58 AM   #4
Registered: Aug 2003
Posts: 78

Rep: Reputation: 15
Hello Akadidm,

Recently, I am finding tutorial of mirroring my Redhat Linux 9.0.

I have a found a very useful site and I have follow all the instructions and it works.

This is the website

Thanks to the author and hope that it will help you.
If you have any problem following the instruction, you can ask me.

Good luck.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I guess I don't understand MDADM musicman_ace Linux - General 5 10-08-2005 02:30 AM
mdadm: configuration? Silver925 Linux - Newbie 5 05-25-2005 04:01 PM
multipathing - mdadm da_kidd_er Linux - General 0 05-19-2005 07:28 PM
Can I use mdadm to get the SoftRaidlist? Friarchen Linux - Software 0 09-10-2004 03:56 AM
do you know mdadm? Coldburn Linux - Newbie 1 08-31-2004 02:22 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration