linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Brian J. Murrell" <brian@interlinx.bc.ca>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Is MD array (containing a PV) reducible?
Date: Wed, 04 Oct 2023 13:59:34 -0400	[thread overview]
Message-ID: <588df601b080ad0f69b36e86fd1d7bcd6380af6e.camel@interlinx.bc.ca> (raw)
In-Reply-To: <87wmw2le5j.fsf@vps.thesusis.net>


[-- Attachment #1.1: Type: text/plain, Size: 1618 bytes --]

On Wed, 2023-10-04 at 09:18 -0400, Phillip Susi wrote:
> 
> Yep.

Much thanks.

But I did just think of the other benefit of using MD to sync the new
device and that's having a recovery path.

That is, if I add luks-backup to /dev/md0 and then wait for it to
finish syncing, I can then shut down the machine, remove /dev/sdc from
the machine and start it back up and ensure that all of the needed
initialization bits are in place to make the luks component come up and
be readable.  If it is, I just remove it from md0 and use it stand-
alone (as it is itself a RAID-1 recall).  Reboot again to make sure
it's all still working and good.

If any of the above goes sideways, I still have the sdc disk as an md0
member and can put it back in the machine to get back to my starting
position and try again, trying to figure out where I went wrong.

With pvmove, once the move is complete there is no going back to my
starting position if something is not right and I cannot access my new
luks device.

So given that, and given that I have stared my pvmove with --atomic and
--interval, do I just SIGINT the pvmove?  Or should I do pvmove --abort
on another terminal?  How can I know when the the abort is complete and
that I can vgreduce luks-backup out of the backups volume group?

Once I have vgreduced, is there anything I should do to
/dev/mapper/luks-backup before I mdadm --manage /dev/md0 --add
/dev/mapper/luks-backup just to wipe any remnants of it being a PV
previously?

I really do appreciate all of the help, advise and patience you have
given/shown me.

Cheers,
b.


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

  reply	other threads:[~2023-10-04 18:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-02 16:03 [linux-lvm] Is MD array (containing a PV) reducible? Brian J. Murrell
2023-10-02 18:49 ` Phillip Susi
2023-10-02 19:21   ` Brian J. Murrell
2023-10-02 20:02     ` grumpy
2023-10-02 20:48     ` Phillip Susi
2023-10-02 22:50       ` Brian J. Murrell
2023-10-02 23:37         ` Phillip Susi
2023-10-03 22:23           ` Brian J. Murrell
2023-10-04 13:18             ` Phillip Susi
2023-10-04 17:59               ` Brian J. Murrell [this message]
2023-10-05 12:16                 ` Phillip Susi

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=588df601b080ad0f69b36e86fd1d7bcd6380af6e.camel@interlinx.bc.ca \
    --to=brian@interlinx.bc.ca \
    --cc=linux-lvm@redhat.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;
as well as URLs for NNTP newsgroup(s).