Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Closed Thread
  Search this Thread
Old 09-01-2005, 11:28 AM   #1
Registered: Sep 2003
Posts: 76

Rep: Reputation: 15
set up raid 1 with madam

Hi all,

I set up raid 1 using mdadm with 2 SATA disks
The partition table for SATA drive A details:

/dev/sda1 /boot Linux raid autodetect
/dev/sda2 Extended
/dev/sda5 / Linux raid autodetect
/dev/sda6 swap Linux swap
/dev/sda7 /usr Linux
/dev/sda8 /var Linux
/dev/sda9 /home Linux
/dev/sda10 /tmp Linux

Partition table for SATA drive B is same as SATA drive A

The set up as follows:
# mknod /dev/md1 b 9 1
# mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/sdb1
# mdadm --create /dev/md1 --level=1 --raid-devices=2 missing /dev/sdb5
# mdadm --examine --scan >> /etc/mdadm.conf

- The output /proc/mdsdtat is normal

# mkreiserfs /dev/md0
# mkreiserfs /dev/md1
# mkdir /mnt/md0
# mkdir /mnt/md1
# mount /dev/md0 /mnt/md0
# mount /dev/md1 /mnt/md1
# cp -ax /boot /mnt/md0
# cp -ax / /mnt/md1

- 2 lines below were added to /etc/fstab (on SATA drive A)
/dev/md0 /mnt/md0 reiserfs defaults 0 0
/dev/md1 /mnt/md1 reiserfs defaults 0 0

- reboot the machine

- when I type mount, the /dev/md0 is mounted but /dev/md1 was not created and mounted.
- An error message 'mount: special device /dev/md1 does not exist' during machine boot


- anything wrong in my set up ?
- I create /dev/md1 with mknod and this md devices was disappear after reboot. Is there a way that I can fix it?
- I want to mirror all the partitions for SATA drive A after the /dev/md0 and /dev/md1 are created successfully.
If I want to mirror all the partition for disk A, do I just create raid devices for all the
individual partitions i.e /dev/sda1 to /dev/sda10 except extended partition /dev/sda2 and the swap /dev/sda6?

Thanks in advance
Old 09-01-2005, 08:05 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

I have merged your two threads in newbie, this thread is reported
for closure.

Closed Thread

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
How to set up RAID 0 on Madriva 2005 LE HelloNasty Linux - Hardware 2 10-07-2005 12:37 PM
How to access hardware Raid set up inder Windows kwerkun SUSE / openSUSE 5 11-25-2004 09:09 PM
How to configure a RAID set on IBM pseries??? Grandmasta Linux - Hardware 1 11-23-2004 02:25 AM
set disk quotas in raid for linux rockwell_001 Linux - Hardware 1 07-26-2004 09:15 AM
How to set up a *SOFTWARE* RAID with Mandrake 9.2 ?? angelascanio Linux - Software 2 03-05-2004 05:48 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration