Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Software Raid 1 restore

Status
Not open for further replies.

riches85

Programmer
Nov 13, 2002
59
US
I have had a personal linux server running 7.3 for some time now. I have just recently reformatted and gone to 9.0. I originally had set up a software raid1 and I am concerned about restoring the raid without losing all of my data. I initially set up the raid during the previous install and I didnt have to worry about losing anything because they were being formatted anyways. Well here is what I have been doing so far.

I edited my /etc/raidtab file to look as so:

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

I then run the 'mkraid /dev/md0' command and I get this error.

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

Like I said I am a little uneasy about losing any data and I was looking for a little guidance. Any help would be appreciated. Thank You

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top