linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* when --add after a fail?
@ 2006-03-01  9:18 Sandro Dentella
  2006-03-10  9:05 ` a user-raid list for non gurus? Sandro Dentella
  2006-03-10 10:37 ` when --add after a fail? Neil Brown
  0 siblings, 2 replies; 6+ messages in thread
From: Sandro Dentella @ 2006-03-01  9:18 UTC (permalink / raw)
  To: Linux Raid List

Hi all,

   i've been using raid1 sisnce quite a loto of time. Sporadiccaly an array
   fails a disk and in many situations I can just pull the device into the
   array with

      mdadm /dev/mdN --add failded_device

   I've never really understood what is the magic that resurrexes it. I
   thought something related to relocation of bad blocks, but I'm  not at
   all aware of what happens "there"...

   Is that a correct trial to do?

   Now I have a device that throuws an error:

srv-ornago:/tmp# mdadm /dev/md2 --add /dev/hdc6 
mdadm: hot add failed for /dev/hdc6: Invalid argument

the kernel complains:
Mar  1 09:34:29 srv-ornago kernel: md: could not bd_claim hdc6.
Mar  1 09:34:29 srv-ornago kernel: md: error, md_import_device() returned -16

   is this enought to say the disk (pretty new, 6 months) is to be changed?
   which checks should I do.

Thanks in advance
sandro
*:-)


srv-ornago:/tmp# mdadm  --detail /dev/md2
/dev/md2:
        Version : 00.90.01
  Creation Time : Mon Apr 29 02:29:18 2002
     Raid Level : raid1
     Array Size : 5116544 (4.88 GiB 5.24 GB)
    Device Size : 5116544 (4.88 GiB 5.24 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Wed Mar  1 10:18:15 2006
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 1
  Spare Devices : 0

           UUID : c203673d:0444f961:50e95acb:fb5b89ba
         Events : 0.1392171

    Number   Major   Minor   RaidDevice State
       0       3        6        0      active sync   /dev/.static/dev/ide/host0/bus0/target0/lun0/part6
       1       0        0        -      removed

       2      22        6        -      faulty   /dev/.static/dev/ide/host0/bus1/target0/lun0/part6

   

-- 
Sandro Dentella  *:-)
e-mail: sandro@e-den.it 
http://www.tksql.org                    TkSQL Home page - My GPL work

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-03-22 12:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-01  9:18 when --add after a fail? Sandro Dentella
2006-03-10  9:05 ` a user-raid list for non gurus? Sandro Dentella
2006-03-10 10:41   ` Neil Brown
2006-03-11 21:11     ` Sandro Dentella
2006-03-22 12:59   ` Bill Davidsen
2006-03-10 10:37 ` when --add after a fail? Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).