You are not logged in.

#1 2009-03-23 03:19:31

wsduvall
Member
From: Blacksburg
Registered: 2009-02-05
Posts: 54
Website

LUKS on RAID 5

Hey guys. I'm trying to encrypt a 2TB RAID 5. I run the command:

cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/md0

After I've entered and confirmed my password, it seems to go for a few moments, and then the whole computer locks up. It cannot be accessed directly or through ssh. My first though was that the drives might be pulling too much power, but I think the entire computer would die. Also, I seem to be able to create and ext4 partition and mount it. My though was that maybe 2TB is too big, but I couldn't find any information about that online.
I tried to see if my computer was just using all the resources and would unlock after time. After 30 minutes or so, nothing has happened, I'll assume the issue is not that the cpu is maxed et cetera.

After waiting, its still locked up... I also tried creating and LVM and then encrypting it... I successfully created the LVM, but the system still locked up...

There isn't really any debug to output, but I have loaded dm-crypt and aes-i586 modules.

Last edited by wsduvall (2009-03-23 12:21:22)


My 5 node 9 CPU cluster: www.amenrecluster.com
OS: Arch Linux
Machines:Fujitsu T4210 and IBM eServer xSeries 335

Offline

#2 2009-03-23 04:08:28

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: LUKS on RAID 5

I doubt that you wanted to encrypt /dev/sda3. RAID5 sounds more like /dev/mapper/... to me.


1000

Offline

#3 2009-03-23 12:21:03

wsduvall
Member
From: Blacksburg
Registered: 2009-02-05
Posts: 54
Website

Re: LUKS on RAID 5

Actually its just a typo. It should be /dev/md0, which is the RAID array. When you decrypted drives, they usually appear in /dev/mapper/. Why would I want to encrypt that? I should also note that this is a software RAID5.

Last edited by wsduvall (2009-03-23 12:25:12)


My 5 node 9 CPU cluster: www.amenrecluster.com
OS: Arch Linux
Machines:Fujitsu T4210 and IBM eServer xSeries 335

Offline

#4 2009-03-25 23:11:15

wsduvall
Member
From: Blacksburg
Registered: 2009-02-05
Posts: 54
Website

Re: LUKS on RAID 5

Well heres the problem:

http://bugs.archlinux.org/task/11650

I fixed it by using a LiveCD to do luksFormat.

I'm shocked that this bug hasn't been closed.

Last edited by wsduvall (2009-03-25 23:11:40)


My 5 node 9 CPU cluster: www.amenrecluster.com
OS: Arch Linux
Machines:Fujitsu T4210 and IBM eServer xSeries 335

Offline

#5 2009-04-14 01:00:46

maz
Member
Registered: 2006-05-05
Posts: 38

Re: LUKS on RAID 5

I had the same problem.

What I did was to download finnix live cd. burn the iso. run it and then run finnix-thumbdrive to have it install on a usb drive instead, took about 5mins until it was ready. inserted the usb drive into my server, loaded the modules, started up the array and then the lvm, then run cryptsetup and it worked much better this time smile

Offline

Board footer

Powered by FluxBB