LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 11-29-2005, 10:49 PM   #1
ggduff
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Rep: Reputation: 0
RAID5 using mdadm, how to mount /dev/md0?


After using mdadm to configure 3 identical IDE drives in a RAID5 array as /dev/md0, how do I now 'mount' this array and start using it? The mdadm tutorial that I used to make the array stopped short of telling me how to do that.

The OS is Ubuntu 5.10, on hda1 (80GB Maxtor with default partitions.) This is the master drive on the primary IDE controller.

The RAID5 drives are all 300GB Maxtors (3), each with a single primary ext3 partition as: /dev/hdb1, /dev/hdc1, and /dev/hdd1

I partitioned them first, then formatted them with their filesystems, and then created the RAID using the tutorial listed here: http://www.linuxdevcenter.com/lpt/a/2776

I did not use the optional mdadm.conf file.

I go into Disk Administrator and the 'enable' option does not mount the drive, nor can I mount it manually. Also, in the Disk Administrator I notice that the first two drives do not say ext3 filesystems, but rather unknown and the third disk in the array now says unformatted. All 3 said ext3 before setting up the RAID. I'm assuming this is normal, as I know RAID5 needs that 3rd disk for parity.

Thanks for any suggestions!
 
Old 11-30-2005, 04:05 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
you just mount it like any other block device, with the mount command. once it's formatted there is no difference whatsoever between mounting /dev/md0 or /dev/hda2 etc...
 
Old 11-30-2005, 05:41 PM   #3
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Re: RAID5 using mdadm, how to mount /dev/md0?

Quote:
Originally posted by ggduff
...The RAID5 drives are all 300GB Maxtors (3), each with a single primary ext3 partition as: /dev/hdb1, /dev/hdc1, and /dev/hdd1

I partitioned them first, then formatted them with their filesystems, and then created the RAID ...
You need to format the raid device after you create it, not before. Thatís probably why you cannot mount it, because it doesnít have a filesystem.

For example:

# mdadm -C /dev/md0 -l5 -n3 /dev/hd[bcd]1
# mke2fs -j /dev/md0

As far as the partition-type labels, they really should be changed to type ďfdĒ (linux raid auto). Otherwise, you will probably start getting some odd error messages during boot.

Also, are you really using 2 slave drives in the raid5? Thatís a really bad idea. You should buy 1 or 2 PCI IDE controller cards and mount the drives as one drive per IDE channel.

Last edited by WhatsHisName; 11-30-2005 at 05:46 PM.
 
Old 11-13-2007, 07:18 PM   #4
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Rep: Reputation: 30
md0 is gone after reboot

i use mdadm --create md0 option raid0, for my sdb1 and sdc1
then format the md0 and mount to /mnt/myraid

For some reason, after booting the machine, my md0 is gone.
Although i still see the drive by calling $ fdisk -l

I am using the loadable raid card driver module that get called in the rc.sysinit. I did not add the driver to the kernel yet since I don't know how to do it at the moment.

Does anyone know how to avoid formating md0 and remounting everytime I boot the machine?
 
Old 11-14-2007, 02:59 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
please don't drag up dead threads. if you have a new question, start a new thread.
 
  


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
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 04:35 PM
Crash while resyncing /dev/md0 HelaWann Linux - Enterprise 1 12-06-2005 09:52 AM
PLEASE HELP: fsck.reiserfs --rebuild-sb /dev/md0 fails ofdofd Linux - General 2 10-26-2005 03:18 PM
can not mount RAID 0 /dev/md0 dysenteryduke Linux - Software 3 09-15-2005 04:19 PM
RAID 1 ... everyime I reboot, /dev/md0 is broken... rrohde Red Hat 1 10-26-2004 03:03 PM


All times are GMT -5. The time now is 12:35 AM.

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