LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-12-2012, 02:56 AM   #1
mazzo
Member
 
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142

Rep: Reputation: 15
RAID 1 issue - got broken after upgrade


Hi

I have tried to look up what I can on this and failed, but I had a working server with 2 RAID 1 disks, each with 3 active partitions (not including swap).

After an upgrade, the server (CentOS 6.3) fails to boot with a kernel panic. Using a rescue disk I can see all partitions but only md1 is actually there, md0 and md2 are not although each of the individual partitions exist uncorrupted.

I've tried using mdadm to reassemle but I must be doing something wrong because I cannot make it work.

Simply, how can I get sda1 and sdb1 to be md0 and sda3 and sdb3 to be md2?

I should add that I have checked mdadm.conf and it looks fine (ie it specifies the devices and partitions correctly using the UUIDs)

Scratching my head has resulted in more hair loss!

Thanks

Last edited by mazzo; 10-12-2012 at 04:05 AM.
 
Old 10-12-2012, 08:30 PM   #2
mazzo
Member
 
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142

Original Poster
Rep: Reputation: 15
UPDATE:

Using Centos recovery disk, it fails to pick up md0 or md2. If I do:

mdadm -a /dev/md0 /dev/sd[ab]1
and repeat for md2, I can do a cat /proc/mdstat and it shows all are recognised and synced.

Next thought was to do a scan and write to mdadm.conf - so did

mdadm --detail --scan >> /mnt/sysimage/etc/mdadm.conf (having mounted root in sysimage)

All looks good, then reboot and it doesn't even get to the splash screen which it did before!!

So, I am now presuming I've either a) messed up mdadm.conf, b) messed up grub or c) both!

Mdadm.conf purely has the refs to the three raid devices - nothing else, just those three lines.

Tried to chroot to /mnt/sysimage but it won't because /home is encrypted. So, manually mount / and /boot, then chroot and try doing a grub-install. It won't. Tried /dev/md /dev/sda /dev/sdb (individually - all fail)

Don't know what to do next. Seem to make some progress and then get stuck again. What I do know is the disks and data are intact, which has to be good news.
 
Old 10-18-2012, 03:04 AM   #3
mazzo
Member
 
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142

Original Poster
Rep: Reputation: 15
Probably about as far as I can go. I do not want to lose everything I've done (ie building a mail/caching web server) but I can't seem to get this fixed.

In a last ditch attempt before I rebuild from scratch, does anyone have any ideas how I can:

a) using the Centos recovery disk, make the RAID arrays permanent so they are seen on reboot
b) repair grub?
 
  


Reply



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
Broken raid 5 (11 drives in mdadm) -- data recovery/raid reconstruction needed -- ple jml48197 Linux - Server 4 07-27-2010 12:57 PM
RAID array broken on boot dannewestis Linux - Software 5 01-21-2010 02:45 PM
issue with raid 5 after upgrade from ubuntu 8.10 to 9.04 Eppo Linux - Software 1 10-31-2009 07:34 AM
Broken raid gcd Linux - Hardware 2 08-24-2008 09:08 PM
Raid array broken RedHat 7.2 salscozzari Linux - General 2 06-29-2005 09:40 PM

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

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