LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-16-2010, 06:02 AM   #1
rytec
Member
 
Registered: Mar 2009
Location: Belgium
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64

Rep: Reputation: 7
Ubuntu 10.04LTS software raid1 problems


Hi,

I tried the search function in this section but didn't found a direct answer for my problem.
I have installed Ubuntu LTS 10.04 and have 2 SATA PCI cards in machine. On 1 card are 2 ports and I have connected same 1TB drives on it. Then I have followed a manual for creating with mdadm software RAID and so far so good but after a reboot the raid doesn't work.

When i do command # cat /proc/mdstat I get following error :

Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md_d0 : inactive sdc1[0](S)
976759936 blocks

unused devices: <none>

/dev/sdc1 and /dev/sdd1 are configured with partition "fd" (Linux raid auto) and the raid creation was succesful after it was created and I have also created /etc/mdadm.conf
But after a reboot it always goes wrong.
I have not made a mount in /etc/fstab for /dev/md0 because if I do so the system will not boot up completely, it gives an error and I have to press "S" for skipping the mount.
But as my server is not connected to keyboard and screen I have not created a mount yet untill I can solve this problem.
 
Old 12-17-2010, 02:52 PM   #2
rytec
Member
 
Registered: Mar 2009
Location: Belgium
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64

Original Poster
Rep: Reputation: 7
I have installed Ubuntu 8.04LTS and there the raid systems working great, then I upgraded the distro to 10.04LTS and it went wrong same as before.
Is it not possible get the software raid working in 10.04LTS ?
 
Old 12-17-2010, 03:25 PM   #3
rytec
Member
 
Registered: Mar 2009
Location: Belgium
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64

Original Poster
Rep: Reputation: 7
Here is a post found on another board which did the trick for me now, and still the raid starts after a few reboot tests, thanks to Milli :

"I found the same problem after an upgrade to linux-image-2.6.28-11-server (Jaunty, 9.04) when the /etc/mdadm/mdadm.conf file inside the initrd image had information that did not match the UUIDs of the real arrays, thus auto-start failed leaving me with /dev/md_d0, /dev/md_d1 and /dev/md_d2 instead of /dev/md0, /dev/md1, and dev/md2 as expected.

I then ran "mdadm --stop /dev/md_d0", then on md_d1, etc, to clear the bad assemble attempt (check /proc/mdstat to see), then ran "mdadm --auto-detect", mainly to just see what the issue was with auto-starting of the arrays, however it created them again but properly this time. I then let it finish the boot process at that point. All seemed fine. After the system was up, I then force-recreated the mdadm.conf file so the UUIDs matched... "/usr/share/mdadm/mkconf force-generate /etc/mdadm/mdadm.conf" (copy your mdadm.conf to /var/tmp or something first, if you want to diff it later). Then ran "update-initramfs -u" to re-build the initrd images. Then I rebooted.

Reboot went fine. All arrays recognized and auto-started properly. No leftover /dev/md_d0 and friends, so I have to assume that when the arrays auto-start properly, at some point they are renamed to match what's in /etc/mdadm/mdadm.conf."
 
  


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
[SOLVED] Software Raid1 problems lpallard Linux - Software 10 10-09-2010 06:58 PM
LXer: How To Set Up Software RAID1 On A Running System (Ubuntu 10.04) LXer Syndicated Linux News 0 07-06-2010 12:00 PM
Software RAID1 problems, won't take /dev/sdb2 ? michaelsanford Linux - General 4 01-08-2006 07:46 PM
Software RAID1 problems robbow52 Debian 7 11-15-2004 10:52 AM
Software RAID1 problems robbow52 Linux - Software 1 07-28-2004 09:32 AM


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

Main Menu
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