preserve_* options and luks partitions

Andrew Ruthven <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <[email protected]>
Hey,

We're rebuilding some servers which have some encrypted LVs using luks
for storing data. I would really like to preserve these LVs over the
rebuild without needing to modify the disk_configs and deploying my own
fstab files.

I have tried setting preserve_lazy for them, but when I test this, the
encrypted volumes are recreated. Looking in Volumes.pm I found this:

    } elsif ($config eq "CRYPT") {
      # We don't do preserve for encrypted partitions
      next;

Which is probably what I'm running into.

It would be really nice if we could preserve encrypted LVs. I'm already
copying the keys back into place, and the partitions don't need to be
mounted for the build phase.

Is the reason that setup-storage can't just leave these volumes alone
if they already exist?

Cheers,
Andrew

-- 
Andrew Ruthven, Wellington, New Zealand
[email protected]         |
Catalyst Cloud:           | This space intentionally left blank
 https://catalystcloud.nz |
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.