Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Steven Dake <sdake@mvista.com>
To: Claudio Fleiner <raid@fleiner.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: problems with raidhotgenerateerror
Date: Wed, 18 Dec 2002 12:34:10 -0700	[thread overview]
Message-ID: <3E00CDB2.9090909@mvista.com> (raw)
In-Reply-To: 200212180222.gBI2MUD23542@ars.net

You should try setting the raid device to faulty which will allow 
atleast the disk to be hot removed.

Thanks
-steve

Claudio Fleiner wrote:

>I was playing around with raid1 using two loopback devices of 4M each.
>The config file I'm using looks like this:
>
>raiddev /dev/md0
>          raid-level      1
>          nr-raid-disks   2
>          nr-spare-disks  0
>          chunk-size     4
>          persistent-superblock 1
>          device          /dev/loop0
>          raid-disk       0
>          device          /dev/loop1
>          raid-disk       1
>
>
>Everything works as expected, except that I cannot simulate an error using
>raidhotgenerateerror. The command runs just fine (as confirmed by the following strace,
>(all unnecessary stuff removed):
>
>execve("/home/cfl/prog/raidtools-20010914/raidhotgenerateerror", ["/home/cfl/prog/raidtools-20010914/raidhotgenerateerror", "-c", "c", "/dev/md0", "/dev/loop0"], [/* 58 vars */]) = 0
>open("/dev/md0", O_RDONLY)              = 4
>ioctl(4, 0x800c0910, 0x804f948)         = 0
>open("/dev/md0", O_RDWR)                = 5
>fstat64(5, {st_mode=S_IFBLK|0660, st_rdev=makedev(9, 0), ...}) = 0
>stat64("/dev/loop0", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 0), ...}) = 0
>ioctl(5, 0x92a, 0x700)                  = 0
>_exit(0)                                = ?
>
>but /proc/mdstat shows that loop0 is still OK (writing to the md0 device
>does not make a difference) and removing the drive using raidhotremove
>fails):
>
>Personalities : [raid0] [raid1] [raid5] 
>read_ahead 1024 sectors
>md0 : active raid1 [dev 07:01][1] [dev 07:00][0]
>      4032 blocks [2/2] [UU]
>      
>
>I'm using Redhat 7.2 with a 2.4.19 kernel.
>
>Any idea why this is not working?
>
>Thanks, Claudio
>
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-raid" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
>
>  
>


      reply	other threads:[~2002-12-18 19:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-18  2:22 problems with raidhotgenerateerror Claudio Fleiner
2002-12-18 19:34 ` Steven Dake [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E00CDB2.9090909@mvista.com \
    --to=sdake@mvista.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=raid@fleiner.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox