Report this

What is the reason for this report?

Moving a Luks encrypted Volume to another Droplet

Posted on June 11, 2020
A C

By A C

I setup an encrypted volume on one of my droplets. When I deleted the droplet I kept the encrypted volume, expecting to use it later. I setup a new Droplet and attached the encrypted volume. When I try to open the volume i get the following error:

cryptsetup luksOpen /dev/disk/by-id/scsi-0DO_Volume_volume-nyc3-01 secure-volume Enter passphrase for /dev/disk/by-id/scsi-0DO_Volume_volume-nyc3-01:

“No key available with this passphrase.”

Was there a keyfile I should have backed up before migrating the volume? I expected that I could just open the volume again by using my password.

Any help appreciated.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

If you’re sure that the passphrase you’re using is correct, it’s possible that there might be an issue with the Luks header, which contains the keyslots where your passphrase is stored. When you move the volume to another droplet, both the volume data and the Luks header should come along with it.

This error usually happens when the passphrase or key-file is wrong, but it’s also possible that the Luks header has become corrupted or damaged. Note: By design, LUKS does not provide a “forgot my password” feature. If you lose your passphrase, then the data is unrecoverable.

You can try using the cryptsetup luksDump command to get more information about your key slots.

Unfortunately, DigitalOcean support cannot assist with recovering data from encrypted volumes, as we do not have access to your keys or passphrase.

For more information on using Encrypted Volumes with DigitalOcean, please refer to the DigitalOcean Volumes documentation.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.