[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-raid
Subject:    RAID: mkraid Crashes, HELP!
From:       "Quang Nguyen \(Ngo\)" <quang () tapeware ! com>
Date:       2002-03-20 17:15:34
[Download RAW message or body]

I'm writing a disaster recovery utility...
The raid-tools are built on RedHat 6.0 and stripped.  It's based on RH
6.0 because that's the lowest distro I want to support.

Anyway, during recovery procedure done on RH 7.2, the original RH7.2
kernel and its modules (raid.o, aic7xxx.o) are loaded from the
floppies.  Initial ramdisk kicks in, things are up and running.  Now,
I want to put back the raid0 stuff.  cfdisk puts back the partition
info to the drive.  And then I call mkraid --really-force /dev/md0 but
it gives a segfault.  I have the /etc/raidtab, /etc/fstab at this
time.  This mkraid version works fine if I had the RH 7.2 fully up
running.  It only crashes when I'm using the floppies during the
recovery process.  ldd shows that mkraid only requires libc and ld-so.

Here's the error message I'm getting:

# ./mkraid --really-force /dev/md0
DESTROYING the contents of /dev/md0 in 5 seconds, Ctrl-C if unsure!

handling MD device /dev/md0
analyzing super-block
disk 0: /dev/sda3 , 5116702kB, raid superblock at 5116608kB
Segmentation fault


# cat /etc/fstab
LABEL=/                 /                       ext3    defaults      
 1 1
LABEL=/boot             /boot                   ext3    defaults      
 1 2
none                    /dev/pts                devpts  gid=5,mode=620
 0 0
none                    /proc                   proc    defaults      
 0 0
none                    /dev/shm                tmpfs   defaults      
 0 0
LABEL=/usr              /usr                    ext3    defaults      
 1 2
/dev/sda5               swap                    swap    defaults      
 0 0
/dev/cdrom              /mnt/cdrom              iso9660
noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto   
noauto,owner,kudzu 0 0


# cat /etc/raidtab
raiddev		    /dev/md0
raid-level		    0
nr-raid-disks		    2
chunk-size		    64k
persistent-superblock	    1
nr-spare-disks		    0
    device	    /dev/sda3
    raid-disk     0
    device	    /dev/sda6
    raid-disk     1

Could I be missing something?  Does mkraid call something that I don't
have at the time using the floppies?

Thanks,
Quang


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic