Rename LUKS volume (was: Re: Recover encrypted MD RAID1 member)

"Brian J. Murrell" <[email protected]> Thu, 05 Dec 2024 09:35:22 -0500
Newsgroups dev.linux.lists.cryptsetup
Message-ID <[email protected]>
On Mon, 2024-12-02 at 17:02 +0100, Arno Wagner wrote:
> First, make an image-backup of sdd. It is far to easy to
> mess things up when trying to recover.

Good idea.  I did the image copy an operated on it by moving that copy
to another machine and it's all good.

> Second, since this is RAID1, all you need to do is RAID 
> recovery, LUKS is not involved.

Indeed, where I can operate with the multiple disks in multiple
machines.

> Fater that, your old LUKS container should behave as usual.

Right.  So I now have two md0 raids on two different machines with
(obviously) the same luks "name"s and passwords.

So now that I have two arrays with the same luks password and name
currently in two different machines, how could I, if I wanted to, use
them both in the same machine (this was kind of my original vision,
which is where my original question here was headed)?  They'd both have
the same/conflicting luks name (md0_encrypted), right?

They'd both have the same VG name, but I can easily rename one of the
VGs under the RAID array.  Can I rename the encrypted volume in a
similar manner so that there are no name conflicts when I do combine
them?

Cheers,
b.