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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-20-2006, 08:24 AM
|
#1
|
Member
Registered: Aug 2003
Posts: 85
Rep:
|
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.
|
|
|
07-20-2006, 08:37 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
if you mean software raid then check the output of "cat /proc/mdstat"
|
|
|
07-20-2006, 08:46 AM
|
#3
|
Member
Registered: Aug 2003
Posts: 85
Original Poster
Rep:
|
it just says:
Personalities :
unused devices: <none>
|
|
|
07-20-2006, 08:53 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
07-20-2006, 08:57 AM
|
#5
|
Member
Registered: Aug 2003
Posts: 85
Original Poster
Rep:
|
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.
|
|
|
07-20-2006, 09:04 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
07-20-2006, 09:30 AM
|
#7
|
Member
Registered: Aug 2003
Posts: 85
Original Poster
Rep:
|
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.
|
|
|
07-20-2006, 04:26 PM
|
#8
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
All times are GMT -5. The time now is 05:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|