LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-16-2009, 09:21 AM   #1
koiril
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Unhappy Software RAID and fdisk issue


I've been been trying with no avail to setup a RAID 5 array using mdadm. I'm semi new to the whole linux scene by the way. Here's how the story goes:

I downloaded Ubuntu Server edition and installed it on my PC with no problems but before doing that I first setup my ASUS P5Q Pro motherboard's raid in RAID 5. Once everything was installed I booted up Linux and ran the usual upgrades/updates. Once all that was done I installed mdadm; fdisk'ed 3 1TB drives (sda,sdb,sdc) to each have 1 partition of type 'fd'; then used the following command to create my array:

Code:
sudo mdadm -Cvf /dev/md0 -l5 -n3 -c64 /dev/sd{a,b,c}1
Beautiful! Everything worked perfectly.

So, now that I have the array up and running I make sure to edit /etc/mdadm/mdadm.conf so that it knows I have an array using this:

Code:
sudo mdadm --detail --scan --verbose > /etc/mdadm/mdadm.conf
That works fine as well.

Next I run mkfs.ntfs on /dev/md0 and put a new entry in 'fstab':

Code:
 /dev/md0      /storage     ntfs    defaults    0 0
After that I run 'mount -a' to mount it.

Now everything is mounted and working wonderfully but just to be sure I decided to reboot (and I'm glad I did). When the PC comes back online the drive is no longer mounted. Not only that /proc/mdstat has nothing in it. As well as /proc/partitions says I don't have any partitions on the drives I fdisk'ed yet fdisk -l says I do. Now I'll try to give you as much information as possible to hopefully solve my problem of my array not auto loading on boot.


Code:
     koiril@Sloth:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 9.04
Release:        9.04
Codename:       jaunty
koiril@Sloth:~$
Code:
     koiril@Sloth:~$ sudo mdadm -A /dev/md0 /dev/sd{a,b,c}1
mdadm: cannot open device /dev/sda1: No such file or directory
mdadm: /dev/sda1 has no superblock - assembly aborted
koiril@Sloth:~$
Code:
     koiril@Sloth:~$ cat /proc/partitions
major minor  #blocks  name

   8        0  976762584 sda
   8       16  976762584 sdb
   8       32  976762584 sdc
   8       48  312571224 sdd
   8       49  306608526 sdd1
   8       50          1 sdd2
   8       53    5960083 sdd5
koiril@Sloth:~$
Code:
  koiril@Sloth:~$ sudo fdisk -l
[sudo] password for koiril:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb308ff24

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      121601   976760001   fd  Linux raid autodetect

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x087acc0e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      121601   976760001   fd  Linux raid autodetect

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc7b9a7a7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      121601   976760001   fd  Linux raid autodetect

Disk /dev/sdd: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x33e133e1

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       38171   306608526   83  Linux
/dev/sdd2           38172       38913     5960115    5  Extended
/dev/sdd5           38172       38913     5960083+  82  Linux swap / Solaris
koiril@Sloth:~$
Code:
    koiril@Sloth:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>
koiril@Sloth:~$

Last edited by koiril; 06-16-2009 at 11:19 AM. Reason: made it pretty
 
Old 06-16-2009, 10:59 AM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Quote:
but before doing that I first setup my ASUS P5Q Pro motherboard's raid in RAID 5.
Could you be more specific? If you were using mdadm, then you don't want to use the motherboard RAID. If you were using the firmware RAID then you probably wanted to use dmraid.
 
Old 06-16-2009, 11:13 AM   #3
koiril
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Oh ok. I was under the impression that to have software RAID of any form you also had to have the RAID on your Motherboard setup. I was using the Intel ICH10R Southbridge chip with Intel Matrix Storage Manager ROM utility. I'll try disabling the Motherboard RAID and setup mdadm that way.

Which do you think would be easier to recover from if there is a drive failure? Motherboard RAID with dmraid or pure software RAID using mdadm?

Thanks, for the response by the way.

Last edited by koiril; 06-16-2009 at 11:17 AM. Reason: more detail was added
 
Old 06-16-2009, 12:59 PM   #4
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
You don't want to run RAID 5 on the motherboard, which is effectively fake RAID - performance will be dire. Unless you are using real hardware raid (think big bucks), i'd recommend just use mdadm.

And it is very easy with mdadm to replace a faulty drive.
 
Old 06-16-2009, 01:14 PM   #5
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Firmware RAID is essentially software RAID, so really there shouldn't be a performance hit between it and mdadm. There's been plenty written on the pros and cons of firmware vs mdadm; probably the only good reason to use the firmware RAID is for dual booting in RAID with Windows.
 
  


Reply

Tags
raid



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
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 03:16 PM
Software raid issue....Debian Sarge. ldunsmo Linux - Server 2 04-06-2008 08:16 PM
Software RAID issue with a RHEL 4 server Vanyel Linux - Server 9 09-07-2007 04:00 AM
software raid issue linuxgeek2940 Debian 4 05-02-2007 04:05 PM
Software Raid Issue jhotchkiss Linux - Software 1 09-16-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:41 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
Open Source Consulting | Domain Registration