LinuxQuestions.org
Review your favorite Linux distribution.
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-10-2006, 09:19 AM   #1
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,158

Rep: Reputation: 247Reputation: 247Reputation: 247
Some advice with software raid on an old server?


Hi

We have an old server, which was set up by someone that is not available any longer. It's basically a Debian Woody server, that has (mostly) been upgraded to Sarge, but the kernel and hardware has not been upgraded. It runs linux kernel 2.4.22, and it seems the kernel was compiled and installed the debian way - using make-kpkg.

Last week there was a hardware failure- a hard disk crashed, and we got the server up by removing the faulty harddisk. Thank God (and the Linux developers) for Raid!

There were two harddisks on it: hda and hdb. hda crashed, and has now been replaced by a new disk.

So now I want to make it use the new disk for the Raid, and here's the problem.

I've set up Raid before, either using the installer or using mdadm. However this old system has no mdadm.

So the question now is, do I try to upgrade the kernel and stuff so I can use the mdadm command, or should I find out how to add a disk to the existing Raid the old fashioned way?

I've read the Software Raid howto at http://www.tldp.org/HOWTO/Software-RAID-HOWTO-5.html but it refers to mdadm a lot, which is not available.

Looking for debian packages installed, I found a package called "raidtools2". And there seems to be a command "raidhotadd". So if I partition the new drive to have partitions just like the old drive, and run the command "raidhotadd --all", will it add the new disk to the Raid? How can I be sure it doesn't overwrite the old working disk with the contents of the new one?

If someone knows of a HOWTO on Raid from before mdadm, please post.

Best regards
Guttorm.
 
Old 07-10-2006, 01:56 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Quote:
I've read the Software Raid howto at http://www.tldp.org/HOWTO/Software-RAID-HOWTO-5.html but it refers to mdadm a lot, which is not available.
But did you read the HowTo section “6.3 Simulating a drive failure / Force-fail by software”: http://www.tldp.org/HOWTO/Software-R...O-6.html#ss6.3

Quote:
...So the trip ends when we send /dev/sdc2 back home.

raidhotadd /dev/md1 /dev/sdc2
Raidtools isn’t my bag either, but the instruction look fairly straightforward for adding back partitions/drives to a raidtools-based software raid.

Partition the new drive to size match and partition-type match the functioning drive and try the commands as described in the HowTo.

Last edited by WhatsHisName; 07-10-2006 at 01:58 PM.
 
Old 07-11-2006, 05:38 AM   #3
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,158

Original Poster
Rep: Reputation: 247Reputation: 247Reputation: 247
Hi

Thanks a lot - and no - I didn't read that section. The man page for raidhotadd was a bit sparse, this example was better.

It seems fairly straighforward, and I think I'll give it a go. But I think I want another full backup first.
 
  


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
Will a ex - Software Raid 1 disk boot without Raid software? carlosruiz Linux - Software 0 05-27-2006 02:12 PM
Advice please server software trm Linux - Software 2 01-23-2006 10:30 AM
3TB IDE Software Raid-5 Server!!! sanwizard Linux - General 1 11-22-2004 12:31 AM
Setting up Software Raid 1 on a Remote Server retep Linux - Software 1 10-03-2003 08:01 PM
server crashes with software raid Nerun Linux - Software 2 01-24-2003 11:45 AM


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