All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Norman Zhang" <nzhang@arkon-group.com>
To: linux-raid@vger.kernel.org
Subject: Re: RAID1 removal
Date: Fri, 20 Jun 2003 14:20:49 -0700	[thread overview]
Message-ID: <bcvtr9$a3i$1@main.gmane.org> (raw)
In-Reply-To: bcvdhn$r0f$1@main.gmane.org

system_lists@nullzone.org wrote:

> You just need change the disk now and use the 'hotadd' tool to
> insert the new one into the raid. I think could be great
> update the file /etc/raidtab too.

So I don't need to remove drive from /proc/scsi/scsi?

> About you are looking in /proc/mdstat ... you see only a disk on a 2
> disk raid. Where is the second one? out ... u got that using the
> setfaulty...

The faulty disk is still in the chassis. I pull the disk out by accident and
stuck it back in afterwards 8( But I did set raidsetfaulty after that as
described below.

Regards,
Norman

>> I tried to remove a hot-swap RAID1 SCSI disk from the chassis. So I
>> issued the following command
>>
>>> raidsetfaulty /dev/md4 /dev/sdd6
>>> raidhotremove /dev/md4 /dev/sdd6
>>
>> But got the following message,
>>
>> /dev/md4: cannot hot-remove disk: disk is not in array!
>>
>> So I presume the disk is offline or something, and issued the
>> following command
>>
>> echo "scsi remove-single-device 1 0 3 0" > /proc/scsi/scsi
>>
>> When I checked the newly created /proc/scsi/scsi, the device is
>> still listed in the file. I checked /proc/mdstat and saw the
>> following
>>
>> md4: active raid1 scsi/host1/bus0/target2/lun0/part6[0]
>>      521984 blocks [2/1][U_]
>>
>> How do I remove the device, so I can add a new device to reconstruct
>> the array again? Please give me a few pointers?





  reply	other threads:[~2003-06-20 21:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-20 16:42 RAID1 removal Norman Zhang
2003-06-20 21:20 ` Norman Zhang [this message]
2003-06-23 18:35   ` Norman Zhang

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='bcvtr9$a3i$1@main.gmane.org' \
    --to=nzhang@arkon-group.com \
    --cc=linux-raid@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.