Replacing disks in RAID

1999-12-19 Thread Marcin Zurakowski

Hi,
 
I've got Redhat 6.1 with kernel 2.2.12 and raidtools-0.90.
 
I've made a raid array (raid-5) from 3 disks (/dev/hda1, /dev/hdb1,
/dev/hdc1)-no spare disks. If the one disk (for expample /dev/hdb1)
fail everything will be ok. Then I want to replace this bad disk
with new one. What should I do to make this new disk work with
array (without erasing data)... I mean, attach this disk to array, to have
raid in state like in begining.
 

Marcin Zurakowski ( [EMAIL PROTECTED] )



Re: Replacing disks in RAID

1999-12-19 Thread Jakob Østergaard

On Sun, Dec 19, 1999 at 02:05:24PM +0100, Marcin Zurakowski wrote:
 Hi,
  
 I've got Redhat 6.1 with kernel 2.2.12 and raidtools-0.90.
  
 I've made a raid array (raid-5) from 3 disks (/dev/hda1, /dev/hdb1,
 /dev/hdc1)-no spare disks. If the one disk (for expample /dev/hdb1)
 fail everything will be ok. Then I want to replace this bad disk
 with new one. What should I do to make this new disk work with
 array (without erasing data)... I mean, attach this disk to array, to have
 raid in state like in begining.

From the HOWTO:
8-8
6. Reconstruction

If you've read the rest of this HOWTO, you should already have a pretty good
idea about what reconstruction of a degraded RAID involves. I'll summarize: 

Power down the system 
Replace the failed disk 
Power up the system once again. 
Use raidhotadd /dev/mdX /dev/sdX to re-insert the disk in the array 
Have coffee while you watch the automatic reconstruction running 

And that's it. 
8-8

-- 

: [EMAIL PROTECTED]  : And I see the elder races, :
:.: putrid forms of man:
:   Jakob Østergaard  : See him rise and claim the earth,  :
:OZ9ABN   : his downfall is at hand.   :
:.:{Konkhra}...:



Re: GPLed hardware RAID card driver?

1999-12-19 Thread Michael Alan Dorman

jeremy smith [EMAIL PROTECTED] writes:
 DPT Decade PM1554U2, Mylex AccelRAID 150/250, ICP Vortex GDT6518RD,
 Syred Cruiser. However, none of the drivers seem to be offered in
 the kernel distribution,

Look harder.  Use grep.

Mike.



Help:Raid-5 with 12 HDD now on degrade mode.

1999-12-19 Thread Makoto Kurokawa



Hello, All.

I have a trouble of HDD fail of raid-5,raid-0.90 on Redhat 6.0.

Raid-5 is now working on degrade mode.
Exactly, Iacan't repair or replace the failed HDD (to new HDD).
Woule you tell me how to do recovery it?

"/proc/mdstat" is as follows:

[root@oem /root]# cat /proc/mdstat
Personalities : [raid5]
read_ahead 1024 sectors
md0 : active raid5 sdm1[11] sdl1[10] sdk1[9] sdj1[8] sdi1[7] sdh1[6] sdg1[5]
sdf1[4] sde1[3] sdd1[2] sdc1[1] 97192128 blocks level 5, 4k chunk, algorithm 2
[12/11] [_UUU]
unused devices: none

"sdb1[0]" is failed, I think.

"/etc/raidtab" is as follows:

# Sample raid-5 configuration
raiddev /dev/md0
raid-level  5
nr-raid-disks   12
chunk-size  4

# Parity placement algorithm

#parity-algorithm   left-asymmetric

#
# the best one for maximum performance:
#
parity-algorithmleft-symmetric

#parity-algorithm   right-asymmetric
#parity-algorithm   right-symmetric

# Spare disks for hot reconstruction
#nr-spare-disks  0

device  /dev/sdb1
raid-disk  0

device  /dev/sdc1
raid-disk  1

device  /dev/sdd1
raid-disk  2

device  /dev/sde1
raid-disk  3

device  /dev/sdf1
raid-disk  4

device  /dev/sdg1
raid-disk  5

device  /dev/sdh1
raid-disk  6

device  /dev/sdi1
raid-disk  7

device  /dev/sdj1
raid-disk  8

device  /dev/sdk1
raid-disk  9

device  /dev/sdl1
raid-disk  10

device  /dev/sdm1
raid-disk  11

First, I restarted  the PC and tryed "raidhotadd" and "raidhotremove" ,the
result is as fllows:

[root@oem /root]# raidhotadd /dev/md0 /dev/sdb1
/dev/md0: can not hot-add disk: disk busy!

[root@oem /root]# raidhotremove /dev/md0 /dev/sdb1
/dev/md0: can not hot-remove disk: disk not in array!


Next, I replaced HDD,/dev/sdb to new HDD, the result, system hung-up on boot
time.

With the message, "/dev/md0 is invalid."

what should I do to recovery the Raid-5 from degrade-mode to normal mode?

Makoto Kurokawa
Engineer, OEM Sales Engineering
Storage Products Marketing, Fujisawa, IBM-Japan
Tel:+81-466-45-1441 FAX:+81-466-45-1045
E-mail:[EMAIL PROTECTED]