LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 12-23-2005, 08:46 PM   #1
bbbb
LQ Newbie
 
Registered: Nov 2005
Location: Amsterdam, Netherlands
Distribution: Mandriva cooker
Posts: 22

Rep: Reputation: 15
using dmraid


hi,

I just finished my first RAID story, and it had a happy ending after all. thanks to dmraid . here's my specs:

motherboard: Asus P5GDC Deluxe
onboard controller: Intel ICH6R
HDD's: 2 * Maxtor 300 GB SATA
xtra hdd: some immediately supported pata
Mandriva 2006.0 official i586 free (netinstall)

so, first of all, I created two raid drives called chris and ted using the controller bios. I continued to install the os on the pata, the raid drives were NOT recognised during the install. I downloaded dmraid, did a shitload of research, and finally came to the conclusion that these were the steps to follow:

first: check if dmraid can find the raid drives you created. run
Code:
dmraid -s
you should see some satsifying output I suppose... I got this at first run:
Code:
[root@mreggsybit bb]# dmraid -s
*** Group superset isw_begabaiadd
--> Subset
name   : isw_begabaiadd_ted
size   : 209715200
stride : 256
type   : mirror
status : ok
subsets: 0
devs   : 2
spares : 0
--> Subset
name   : isw_begabaiadd_chris
size   : 376398848
stride : 256
type   : mirror
status : ok
subsets: 0
devs   : 2
spares : 0
which I thought was satisfying enough .

second: you have to modprobe dm-mirror. now, I suppose that the "mirror" part is because of my raid 1, try fooling around with this if you get no output during step 3. for me, the command was:
Code:
/sbin/modprobe dm-mirror
third: you make dmraid just activate everything it can:
Code:
[root@mreggsybit ~]# dmraid -ay -v
INFO: Activating GROUP RAID set "isw_begabaiadd"
(note the "INFO: " output; if you didn't get it, you probably failed)

and it was here that I really wondered what to do next. I looked for a long (long!) time, but couldn't find anything. answer: there is nothing to be done; it is finished. I finally tried out this:
Code:
[root@mreggsybit ~]# updatedb
[root@mreggsybit ~]# locate chris
/dev/mapper/isw_begabaiadd_chris
and that's how I discovered that the raid partitions were neatly put in /dev/mapper/ . to make it a little easier to manage, I did
Code:
[root@mreggsybit mnt]# cd /dev/
[root@mreggsybit dev]# ln -s mapper/isw_begabaiadd_chris raid-chris
[root@mreggsybit dev]# ln -s mapper/isw_begabaiadd_ted raid-ted
and now, the only thing left was to mount them. not even specifying a type (I love automagic). result:
Code:
[root@mreggsybit mnt]# df
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             2,0G  243M  1,7G  13% /
/dev/hda7              67G  129M   66G   1% /home
/dev/hda6             2,9G  919M  1,9G  33% /usr
/dev/mapper/isw_begabaiadd_chris
                      177G  129M  168G   1% /mnt/chris
/dev/mapper/isw_begabaiadd_ted
                       99G  129M   94G   1% /mnt/ted
if you completed step 3 succesfully but really don't know where your device is now, retry step 1 to check if step 3 actually worked. you should see "--> Active Subset" now where there used to be "--> Subset" . if you don't, step 3 failed. recheck step 2.

I discovered step 2 by coincidence; in the very beginning I started harddrake to check if maybe the wizard would be able to do raid, and in the log messages I saw him run that command. After rebooting step 3 failed and after a while I figured out that it was that command that made the difference.

well, that was it for my little story of success although it is of course very unsignificant, I know I would have loved to find at least ONE dmraid tutorial out there, and I hope that the next person who will have to do the same as me will have less trouble . thank you, dmraid.

-b^4

Last edited by bbbb; 12-24-2005 at 09:47 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Booting Raid 0 with dmraid Deltabweb Linux - Hardware 3 01-23-2007 07:50 PM
software raid? dmraid? N_A_J_M Slackware 1 08-17-2005 07:44 PM
Help with RAID setup (dmraid) unzari Fedora 2 07-20-2005 12:01 PM
help setting dmraid at boot M&M Linux - Software 0 03-01-2005 03:21 PM
Does FC3 include dmraid msryke Linux - Hardware 3 01-21-2005 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 12:19 PM.

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