LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 12-28-2005, 12:19 AM   #1
DukeLeto
Member
 
Registered: Jan 2003
Location: Antarctica
Distribution: *watches the penguins pass by*
Posts: 56

Rep: Reputation: 15
Kernel Panic when simulating drive failure on software RAID1


I am running smp amd64 gentoo with md compiled into the kernel, a pair of 250gb sata hard drives in a software raid 1

cat /proc/mdstat says everything is up and up

The swap space, for stability purposes is raided as well. Partition types are all raid autodetect.
Ignore the commented lines, they are incorrect
Raidtab:


Code:
# /boot (RAID 1) 
raiddev                 /dev/md0 
raid-level              1 
nr-raid-disks           2 
chunk-size              32 
persistent-superblock   1 
device                  /dev/sda1 
raid-disk               0 
device                  /dev/sdb1 
raid-disk               1 



# / (RAID 1) 
raiddev                 /dev/md2 
raid-level              1 
nr-raid-disks           2 
chunk-size              32 
persistent-superblock   1 
device                  /dev/sda3 
raid-disk               0 
device                  /dev/sdb3 
raid-disk               1 



# /home (RAID 0) 
raiddev                 /dev/md1 
raid-level              1 
nr-raid-disks           2 
chunk-size              32 
persistent-superblock   1 
device                  /dev/sda2 
raid-disk               0 
device                  /dev/sdb2 
raid-disk               1
fstab:

Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details 
# /etc/fstab: static file system information. 
# 
# noatime turns off atimes for increased performance (atimes normally aren't 
# needed; notail increases performance of ReiserFS (at the expense of storage 
# efficiency).  It's safe to drop the noatime options if you want and to 
# switch between notail / tail freely. 
# 
# See the manpage fstab(5) for more information. 
# 

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass> 

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. 
/dev/md0      /boot     ext3      noatime     1 2 
/dev/md2      /         reiserfs       noatime            0 1 
/dev/md1     none      swap      sw,pri=0           0 0 
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0 
#/dev/fd0               /mnt/floppy     auto            noauto          0 0 

# NOTE: The next line is critical for boot! 
proc                    /proc           proc            defaults        0 0 

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
# POSIX shared memory (shm_open, shm_unlink). 
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will 
#  use almost no memory if not populated with files) 
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
Why does the kernel panic when the drive (either one) is unplugged instead of continuing to run as it should?

Last edited by DukeLeto; 12-28-2005 at 12:25 AM.
 
Old 01-02-2006, 04:15 PM   #2
DukeLeto
Member
 
Registered: Jan 2003
Location: Antarctica
Distribution: *watches the penguins pass by*
Posts: 56

Original Poster
Rep: Reputation: 15
Is there no answer to this one?

Michael
 
Old 02-07-2006, 08:35 AM   #3
RedHatCat
Member
 
Registered: Jun 2005
Location: London, Uk
Distribution: RH-ES 3/4, FC 5/6
Posts: 51

Rep: Reputation: 15
I've only just started getting into software raid setup, and have hit some problems myself during testing. Do you think its worth specifying the 'nr-spare-disks 0 ' in /etc/raidtab. I'm sure it defaults to that if not specified anyway -but it may be worth a shot. I guess the raid/s would have to be recreated to rewrite that info to the superblock tho (?).
 
  


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
New Hard Drive Causes Kernel Panic darkfire55 Linux - Hardware 4 11-28-2004 03:59 PM
please tell me about some circuit analysing(simulating) software? randika Linux - Newbie 4 11-18-2004 03:40 AM
PANIC: hard drive failure shishimo General 1 07-16-2004 04:06 PM
RH9 Software Raid 1 hard drive failure - GRUB loader errors Mynar Linux - Newbie 1 01-28-2004 11:25 AM
Boot failure: kernel panic, busybox messages ethrbunny Linux - General 2 06-18-2003 04:19 PM


All times are GMT -5. The time now is 03:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration