linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ram Ramesh <rramesh2400@gmail.com>
To: Wols Lists <antlists@youngman.org.uk>,
	Reindl Harald <h.reindl@thelounge.net>,
	Linux Raid <linux-raid@vger.kernel.org>
Subject: Re: Is it possible to break one full RAID-1 to two degraded RAID-1?
Date: Fri, 7 Feb 2020 01:02:24 -0600	[thread overview]
Message-ID: <0c70c04f-d8d0-0c44-e603-46c101b21cc1@gmail.com> (raw)
In-Reply-To: <5E32855D.3020906@youngman.org.uk>

I got no response on this and want to take a shot before going the 
backup way.

Assuming (hda1 and hdb1 in raid1 md0) Will the following work?

 1. Fail and remove hdb1
 2. Create new RAID1 md1 with hdb1 and missing
 3. dd md0 onto md1
 4. Make both bootable. (I suppose I need to change UUID of md1
    partitions. I suppose that is easy)
 5. Boot both and double check
 6. Now upgrade md0 without fear.
 7. Boot and test the new system for a couple of days to make sure
    everything is fine.
 8. If that fails, delete md0, and add hda1 to md1. If not delete md1
    and add hdb1 to md0

Regards
Ramesh

On 1/30/20 1:27 AM, Wols Lists wrote:
> On 30/01/20 06:30, Reindl Harald wrote:
>>> Thanks. I thought of this, but both disk in question are nvme ssd with
>>>> manually added heat sink. It will be a hassle to remove and reinstall. I
>>>> think I will go with the back up rather than remove disk physically.
>> why would you remove it phyiscally to remove it rom the array? seriously?
> Because if you physically remove it, BOTH disks will think they are the
> surviving copy. You could "assemble" either disk on its own and recover
> the array.
>
> But if you remove a disk with --fail --remove, does that tamper with the
> superblock? Would that prevent that disk being re-assembled on its own?
> Seriously. I don't know. And were I in the OP's shoes I would be asking
> the same question.
>
> This is where you want something COW in the stack. Lvm. Btrfs. Where you
> can just take a snapshot, upgrade the system, and if it all goes
> pear-shaped you throw the snapshot away.
>
> Cheers,
> Wol

  reply	other threads:[~2020-02-07  7:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-29  3:17 Is it possible to break one full RAID-1 to two degraded RAID-1? Ram Ramesh
2020-01-29  4:09 ` Reindl Harald
2020-01-29 22:32   ` Ram Ramesh
2020-01-30  6:30     ` Reindl Harald
2020-01-30  7:27       ` Wols Lists
2020-02-07  7:02         ` Ram Ramesh [this message]
2020-02-07  9:27           ` Wols Lists
2020-02-07 14:49             ` Ram Ramesh
2020-02-07 14:55               ` Reindl Harald

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=0c70c04f-d8d0-0c44-e603-46c101b21cc1@gmail.com \
    --to=rramesh2400@gmail.com \
    --cc=antlists@youngman.org.uk \
    --cc=h.reindl@thelounge.net \
    --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).