LinuxQuestions.org
Visit Jeremy's Blog.
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-02-2006, 02:17 PM   #1
TB_205gti
LQ Newbie
 
Registered: Dec 2005
Posts: 20

Rep: Reputation: 0
Unhappy Restoring a software raid


Distro: Fedora 4 core
Kernel: 2.6

My primary harddrive recently died upon me. I was uploading files to it via ftp when it suddently stopped. I logged in via ssh and every command (eg. ls, less, umount) gave an "input/output error". I had no other choice than to unplug the power. The harddrive had died.

I got a new hd and installed Fedora 4 again and updated it with yum. Now on the old install I had a software raid (RAID 0) on two USB disks (yes, I know, don't tell me...) I have moved this array from one installation to another before, no issues. But now.. I have made the same raidtab file as I had before, but when trying to "mkraid /dev/md0" I get the following error:

handling MD device /dev/md0
analyzing super-block
disk 0: /dev/sdb1, 58605088kB, raid superblock at 58604992kB
/dev/sdc1 appears to be already part of a raid array -- use -f to
force the destruction of the old superblock
mkraid: aborted.

Now how do I get around this with out destroying the data that is on the disk?

I have bought a new 300GB disk to replace the RAID, but I _really_ need the data on the RAID.. What to do?

My raidtab looks like this:

raiddev /dev/md0
raid-level 0
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/sdb1
raid-disk 0
device /dev/sdc1
raid-disk 1

I have thought about dding the two RAID disks onto two new disks (identical to the original ones), so I have an extra set of disks to mess with, but does dd keep the correct partition table?
 
Old 10-02-2006, 02:55 PM   #2
TB_205gti
LQ Newbie
 
Registered: Dec 2005
Posts: 20

Original Poster
Rep: Reputation: 0
lsraid gives the following:

lsraid -A -a /dev/md0
[dev 9, 0] /dev/md0 21620865.469FADF0.8BF97700.26FCBF8A online
[dev 8, 16] /dev/sdb 21620865.469FADF0.8BF97700.26FCBF8A good
[dev 8, 32] /dev/sdc 21620865.469FADF0.8BF97700.26FCBF8A good
 
  


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
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 04:35 PM
Will a ex - Software Raid 1 disk boot without Raid software? carlosruiz Linux - Software 0 05-27-2006 02:12 PM
Can fake raid be converted to linux software raid? jmacdonald801 Linux - General 3 01-30-2005 01:33 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 10:34 AM
Restoring / repairing RAID-0? DrDoogie Linux - Hardware 3 10-19-2003 04:40 PM


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