1
Tonight I came home to one of my servers stuck during boot saying the boot drive couldn't be found. I have three HDD's in this server and BIOS picked up all three, but reported one as having a capacity of 0.0GB so I think it's safe to say that that one bit the dust. One of the other drives is encrypted but seems to work perfectly fine. I booted into a Linux live CD and was able to mount its boot partition with no problems. However, when I try to open its encrypted partition I am given no such luck. The command cryptsetup luksOpen /dev/sdx2 [name]
outputs nothing and exits. cryptsetup luksDump /dev/sdx2
does the same when it should be outputting info about the encrypted drive. Is it safe to say that this partition is toast and I should be cutting my loses since both drives in my RAID setup were ruined? Or is there anything that can be done to get this sucker unencrypted so I can at least copy some files out? Thank you!
And yes, the system is hooked up to a surge protector. Not like it did any good though.
1What raid level? – Canadian Luke – 2012-01-11T06:09:18.867
RAID 1. The two drives were in an encrypted RAID mirror. – shanet – 2012-01-11T06:13:37.487
1What is output to dmesg when you run cryptsetup? Also: run cryptsetup with --verbose --debug; update your question with any dmesg or cryptsetup output. I'd also try these drives in a different system - maybe the SATA interfaces are fried, and the drives are OK. Same for trying while booted off a LiveCD, just to eliminate any OS corruption as a cause. – Brett Dikeman – 2012-01-11T06:37:14.983
Turns out I'm actually incredibly stupid and forgot that I encrypted the RAID array, not the individual partition. A quick
mdadm --assemble --scan
, and thencryptsetup luksOpen /dev/md0 [name]
and I was able to get all my files. The first drive that BIOS reports as 0.0GB is still fried, but at least I can still get my data and invest in a better surge protector. Thanks for your suggestions guys. – shanet – 2012-01-11T08:14:52.890@shanet Make sure to post that as an answer then so others who come in here can figure it out – Canadian Luke – 2012-01-11T16:19:05.470