linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Peter Sangas" <pete@wnsdev.com>
To: linux-raid@vger.kernel.org
Subject: 2 disk RAID1 need to replace a disk logging errors (use replace?)
Date: Wed, 8 Nov 2017 10:39:22 -0800	[thread overview]
Message-ID: <004c01d358c0$e5ea50a0$b1bef1e0$@wnsdev.com> (raw)

Hi,

I have a 2 disk RAID1 and one of the disks is logging errors.  Array is still redundant.  I read the Wiki, this lists postings and the mdadm man page and I believe it’s advised to perform a “–-replace” rather than a “fail/remove” in order to preserve redundancy but would be happy if someone can confirm before I do it.

To replace sdb with a sdc I run the following for each mdx???


mdadm /dev/md0 --add /dev/sdc1 --replace /dev/sdb1 --with /dev/sdc1


--------------------

mdadm - v3.3 - 3rd September 2013


cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] 


md1 : active raid1 sda2[0] sdb2[2]
      14640128 blocks super 1.2 [2/2] [UU]
      
md0 : active raid1 sda1[0] sdb1[2]
      19514368 blocks super 1.2 [2/2] [UU]
      
md2 : active raid1 sdb3[2] sda3[0]
      454074368 blocks super 1.2 [2/2] [UU]
      bitmap: 1/4 pages [4KB], 65536KB chunk

Thanks,
Pete



                 reply	other threads:[~2017-11-08 18:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='004c01d358c0$e5ea50a0$b1bef1e0$@wnsdev.com' \
    --to=pete@wnsdev.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 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).