LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-06-2012, 10:04 AM   #1
FizzerJE
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Rep: Reputation: 1
Software RAID Recovered - Install OS ???


Hi, I'll try to keep it brief..

Today had a kernel panic. Dirty degraded RAID array where the OS is installed.

System is on a software raid 5 partition with encryption and LVM2.

OS install was CentOS 6.2.

Booting into LiveCD 6.3 I have managed to access the two main Logical Volumes I need that holds the data most valued to me (home,scratch).

Code:
mdadm --create /dev/md3 --chunk=64 --assume-clean --metadata=0.9 --level=raid5 --raid-devices=3 /dev/sda3 /dev/sdg3 /dev/sdh3
vgscan
vgchange -ay
<VG_System now available 7 logical partitions>
cryptsetup luksOpen /dev/mapper/VG_System-<scratch/home> crypt-<scratch/home>
cryptsetup luksOpen does not work for var and root etc.

I believe this is due to when I was trying to fix the array, I add a disk and it started to re-build with the incorrect chunk size.

The superblocks then read as a newer Device with the incorrect size of 512K.

Luckly re-creating the raid in the correct device order and chunk size has allowed me to open the two partitions I need.

I now need to reinstall the OS.

Running the installer (CentOS LiveCD 6.3) the complete VG_System partitions from the LVM are available to use.

BUT

both 'scratch' and 'home' are showing as unrecognised file system types....

Advice on getting the OS back on??

I was tempted to use the LVM as is.
Formatting / var etc. and install BUT leaving 'home' and 'scratch' alone.

Thought on this??
 
Old 09-06-2012, 12:49 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If you still have the disk parity intact try removing the new volume you attempted to regenerate, and regenerate it again. You MAY be required to track down a 6.2 disk because things may have changed between 6.2's Live CD and 6.3's.

Just a good question but do you have workable backups of the data?

Last edited by ReaperX7; 09-06-2012 at 12:51 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS install onto software RAID 10 batfastad Linux - Server 4 02-04-2010 07:28 PM
Software Raid : Sync after install baddah Linux - General 2 10-08-2009 01:55 AM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 03:16 PM
How To Install Using Software RAID? carlosinfl Ubuntu 2 04-12-2007 04:45 PM
[SOLVED] FC5 software raid during install daisychick Fedora 6 12-06-2006 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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