LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-28-2004, 08:29 AM   #1
robbow52
Member
 
Registered: Oct 2003
Location: Kentucky, USA
Distribution: Debian "SID"
Posts: 110

Rep: Reputation: 15
Unhappy Software RAID1 problems


I've spent a number of hours over the last week attempting to set up my new desktop with software RAID1. It's a Debian Sid install from a "fresh" daily image of the installer.

I managed to get the RAID1 set up using mdadm and things were working well for a couple of days. Yesterday, I installed a number of packages (I don't know if this had anything to do with it or not) and rebooted and upon reboot I was greeted with fsck failures on ALL of my RAID devices. The superblocks were all corrupted or "gone". It suggested that I run fs2ck (all of the block devices are ext3) to load an alternate superblock, but I received the same error again... corrupted or no superblock...

At that point I was left with no choice but to reinstall.

Does anyone have any ideas as to why this happened? What could I have installed to "break" things? Does anyone know what I can do to prevent this?

I reinstalled but simply partitioned my second disk into a single partition and mounted it as /backup and I will either use a backup solution using it for now...
Right now, I don't trust software RAID1 to be stable enough for me to use everyday!!!!

Thanks in advance for your thoughts!
 
Old 07-28-2004, 09:34 AM   #2
robbow52
Member
 
Registered: Oct 2003
Location: Kentucky, USA
Distribution: Debian "SID"
Posts: 110

Original Poster
Rep: Reputation: 15
Re: Software RAID1 problems

Quote:
Originally posted by robbow52
[B]The superblocks were all corrupted or "gone". It suggested that I run fs2ck (all of the block devices are ext3) to load an alternate superblock/B]
Correction! Here was the exact error that I received:

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
 
Old 07-28-2004, 11:48 AM   #3
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
be sure all of your partitions you use for raid are id'd to "fd" (=raid autodetect) so it automatically get mounted at boot. check with ex. fdisk /dev/sdx, chande with "t" .

sl mritch.
 
Old 07-29-2004, 01:03 PM   #4
robbow52
Member
 
Registered: Oct 2003
Location: Kentucky, USA
Distribution: Debian "SID"
Posts: 110

Original Poster
Rep: Reputation: 15
Re: Software RAID1 problems

Quote:
Originally posted by mritch
be sure all of your partitions you use for raid are id'd to "fd" (=raid autodetect) so it automatically get mounted at boot. check with ex. fdisk /dev/sdx, chande with "t" .

sl mritch.
All of the Raid1 partitions were set to fd (linux raid auto-detect) The raid had been working fine and had been rebooted a number of times over several days and then wham, a reboot and fsck failure! ALL of the md superblocks were corrupted and unrecoverable!

Thoughts or ideas??? Right now I have given up on being able to get a RAID1 system and I will be using partimage to backup my partitions to the now unused second disk... But I would set up the raid again if I could be sure of stability and problem free operation (or at least recoverable!).

Thanks for your thoughts!
 
Old 07-29-2004, 02:30 PM   #5
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
well. i'm using raid0 & raid1 software with an ext2 and reiserfs above.
it's ver. 0.90.20010914-15 (bit older sarge) with kernel 2.4.26(+scsi-idle/preempt/lowlat), several scsi + two ide disks.

no probs shown up so far.
maybe try it on two small partitions and stress it. for me that rather sounds like a detection problem. something other broken (initscripts?).

sl mritch.
 
Old 07-29-2004, 04:46 PM   #6
robbow52
Member
 
Registered: Oct 2003
Location: Kentucky, USA
Distribution: Debian "SID"
Posts: 110

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by mritch
well. i'm using raid0 & raid1 software with an ext2 and reiserfs above.
it's ver. 0.90.20010914-15 (bit older sarge) with kernel 2.4.26(+scsi-idle/preempt/lowlat), several scsi + two ide disks.

no probs shown up so far.
maybe try it on two small partitions and stress it. for me that rather sounds like a detection problem. something other broken (initscripts?).

sl mritch.
That's a good idea! I could set up a couple of partitions before going with the whole thing to see how things work out!

When I had the Raid1 "fail" I had been installing quite a few packages. I don't "think" that had anything to do with it, but...

Thanks for the idea!
 
Old 11-12-2004, 06:54 PM   #7
enkidu
LQ Newbie
 
Registered: Aug 2001
Location: Wellington, New Zealand
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by robbow52
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193
We had that error and it turned out to be a kernel which didn't support RAID. Could this be a possibility?

Cheers,

Enkidu
 
Old 11-15-2004, 10:52 AM   #8
jaydavis
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
You didn't mention if you were installing those packages to your raid or not.
Installing packages shouldn't have affected your raid at all.
Have you checked your fstab, maybe it got corrupted
 
  


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
linux software raid1 porlock Linux - Newbie 1 03-18-2013 06:40 PM
Software RAID1 problems, won't take /dev/sdb2 ? michaelsanford Linux - General 4 01-08-2006 07:46 PM
Software RAID1 monitoring Sushy Slackware 1 10-05-2005 08:52 AM
Creating Software Raid1 Jimi_l Suse/Novell 3 04-29-2005 04:54 AM
Software RAID1 problems robbow52 Linux - Software 1 07-28-2004 09:32 AM


All times are GMT -5. The time now is 10:00 PM.

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