Re: [linux-lvm] Is MD array (containing a PV) reducible?

"Brian J. Murrell" <[email protected]>
Newsgroups dev.linux.lists.linux-lvm
Message-ID <[email protected]>
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.

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEE8B/A+mOVz5cTNBuZ2sHQNBbLyKAFAmUdqAYACgkQ2sHQNBbL
yKB3/wf/TZN/J74PzRtSlxh3nHGNui9ZFCUC9JwBuVsYKBy2qtzwhicfS5tCj85/
UniD+wa/L55UhRwq9WaFKxwu8KtVor+3OzJ7EA+TSBF5jXYz6CMW2o07ft22EEqh
9uK9+9xlXV0nXl7kEd/6NlGluZH5SczJ230p2JVWnS7RCiPnf3iDiGAiNGgATaxw
52RVxVO4ME7oOGqSdbvgE+li1lJu4lWtriTcY3hYHdnEssKn+DBB10eCrqHbGNED
KJ+RTw5ZbgoM9+6haT5kycexRxhqszyWGfbrWjamlCTDPOJpFnnmF+HvBWsORhc8
S9SqnoJwknjgdPEZ05EFEBHB7zHO2g==
=jymQ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.