Degraded RAID does not work with encryption

Asked by Tony Whelan

With Ubuntu 9.10 and 10.04 server or alt CD versions, with several machines, I have tried repeatedly to set up RAID1 with encrypted data and swap partitions (and unencrypted boot partition). It always LOOKS like it works, cat /proc/.mdstat shows the raid arrays, and everything seems fine when both drives are connected. I have set degraded raid = true, so it should boot with just one drive. But with either of the drives removed the system does not prompt for the decryption passphrase and so will not proceed with booting.

The degraded raid works fine if I do not install encryption.

I have searched the web for information about this problem, and see others have struck the same issue.

The only people who claim to have installed encrypted raid successfully on Ubuntu ALL fail to say whether they actually tested the raid by removing a drive. That's the problem - Ubuntu looks like it has set up the encrypted raid correctly, but it doesn't work in degraded mode.

I want to protect confidential data - hence encryption - and I want to have continuity in case of a disk failure - hence raid mirror - but Ubuntu server currently can't deliver that. Surely for a server edition that's an unacceptable situation.

Question information

English Edit question
Ubuntu cryptsetup Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
Revision history for this message
Tony Whelan (tony-whelan) said :

Thanks Marco

It looks like this is a complex problem and it also looks like it isn't being given any priority, so I won't hope for a resolution soon.

I've tested CentOS 5.5 and a degraded encrypted raid works fine so that may be my best solution at present.

Tony W.

Can you help with this problem?

Provide an answer of your own, or ask Tony Whelan for more information if necessary.

To post a message you must log in.