LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 07-20-2006, 08:24 AM   #1
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Rep: Reputation: 15
How do I know if my RAID is working?


I set up a RAID device when I installed FC5. I think I set up sdb1 as either a mirrored or redundant RAID but I don't know if it is actually working. I can't mount /dev/sdb1, it says its already mounted but /dev/sdb* is not listed in /etc/mtab.

I basically need to know if I set it up right and if its working, otherwise I need to get it working.
 
Old 07-20-2006, 08:37 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you mean software raid then check the output of "cat /proc/mdstat"
 
Old 07-20-2006, 08:46 AM   #3
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Original Poster
Rep: Reputation: 15
it just says:

Personalities :
unused devices: <none>
 
Old 07-20-2006, 08:53 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
that'd suggest you've no raid setup at all then. normally it's very user friendly, showing all devices in each md object etc...
Code:
Personalities : [raid5]
md0 : active raid5 hdg1[2] hde1[1]
      320159104 blocks level 5, 32k chunk, algorithm 2 [3/2] [_UU]

unused devices: <none>
here i have /dev/md0 made of two devices out of three, one failed disk.
 
Old 07-20-2006, 08:57 AM   #5
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Thanks, I think I'm heading in the right direction now. I was using webmin to try to see if it was set up, but the only thing it ever lists in the RAID section is sdb2 as both source and destination. I found some docs on it, I'll keep looking into how to set it up.
 
Old 07-20-2006, 09:04 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well if it's software raid then you would ned up with a device like /dev/md0 not /dev/sdb2 or something. if it was a pure hardware raid solution then linux would see /dev/sdb2 or whatever still as it wouldn't know about the raid.
 
Old 07-20-2006, 09:30 AM   #7
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Original Poster
Rep: Reputation: 15
I tried to set one up, but things aren't as easy as these docs make them sound.

I used:
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb2

where sda3 is the /var partition and sdb2 is a raid partition.
I get an error that sdb3 is busy. I could unmount it and try it, but I don't want to hose any current work that is on it. I'd really like to take all of sda and mirror it to sdb, they are both the same size, instead of doing individual partitions.

Am I even close to heading in the right direction? I worry that maybe sda isn't set up right and I can't do it now that there is data on it or something like that.
 
Old 07-20-2006, 04:26 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no no, not close. if you convert something to raid you WILL lose all the data! i would possibly suggest just running a cron job or similar to copy all files from the main drive to the secondary one.
 
  


Reply


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
RAID array gone, can't get it working again! 1N4148 Linux - Hardware 6 07-16-2009 04:48 AM
RAID autodetect not working gbbenson Linux - General 2 06-30-2004 07:20 AM
RAID 0 was working...not now kennedy01 Slackware 1 06-13-2004 03:24 PM
Getting on-board RAID working? Jestrik Linux - Hardware 3 12-15-2003 10:33 AM
Raid working with Promise SATA150 TX4 Raid? edoope Linux - Hardware 2 12-02-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:38 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