Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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. Let me know your thoughts guys!
Also, I'm going to let the computer sit and see if anything happens. If after 30 minutes or so, nothing has happened, I'll assume the issue is not that the cpu is maxed et cetera.
EDIT: 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...
I should further add that I am using Arch Linux and have loaded dm-crypt and aes-i586 modules.
I have played with mdadm and with cryptsetup, but not with both together.
I don't think that the device-mapper has any size-limit which would get in your way. Same with mdadm.
Might this be some conflict between device-mapper and mdadm. As far as I remember mdadm does not use the device-mapper. Thus there might be a conflict.
I had encrypted LVM, which worked fine.
But of course no setup I had so far was at that scale, and currently I have no way of testing it at the scale you are working at.
Well, I'll try to replicate what you're trying to do in small scale and see if something comes up.
Edit: Here's what I just tested.
I created three image-files with each 100MB size (yeah, it's not much, but that VM just has 900MB of free disk-space) and put them together in a RAID5.
This I formatted and opened with cryptsetup, created an ext4-filesystem and mounted it.
Works fine.
As said, it's small scale, but more or less your setup (although I don't know if you have 3 or more disks in your array).
Which kernel-version do you use? Might there be some bug?
reptiler, thanks very much for doing the research. My kernel version is:
Code:
[wsduvall@Uesat crypt]$ cat /proc/version
Linux version 2.6.28-ARCH (root@T-POWA-LX) (gcc version 4.3.3 (GCC) ) #1 SMP PREEMPT Sun Mar 8 10:18:28 UTC 2009
I have a working RAID0/LVM/LUKS partition on another server, and that size is a bit less then 1TB. So maybe sizes over 1TB (the office size of my RAID5 is 1.82TB, I always round to 2TB)? I temporally created a ext4 fs on the RAID5 and I can write to it et cetera. I'm not sure if anyone out there uses Arch, but I wonder if I should change some hooks in /etc/mkinitcpio.conf and rerun mkinitcpio... I may play around with this more later.
I just had a little look around and found something, coincidentally on the Arch-bug-tracker, which seems to fit your problem. http://bugs.archlinux.org/task/11650
Just that the bug still seems to be open. Strangely enough, as it seems that it's related to the Arch-kernel and that everybody except for the Arch-team can build a kernel where it works.
Wow thanks again. I really don't feel like building a custom kernel, which, under Arch is kinda hard... I wonder if I use a LiveCD with cryptsetup on it, encrypt the array, and then mount it, it will work. If its an Arch specific error solely with creating the arry, then this should work. Anybody know of any LiveCD's with cryptsetup? Gentoo maybe... maybe an older Arch CD... I've gotten it to work in the past on my webserver.
I don't know which LiveCD out there has all the stuff you need.
I have a LiveCD with all that, but the pure LiveCD is not available online I'm afraid.
You could, though, download the full install-CD here, but it's around 400MB, as opposed to the pure LiveCD which only has around 100MB.
I'm sure there must be small CD-images out there that offer what you need (basically a kernel that supports RAID and encrypted devices, and the tools for those), but I'm at a loss at the moment.
If you're not in a rush I could upload the LiveCD for you and give you a link. Otherwise, if your connection isn't so slow, 400MB also won't take a whole day.
I have pretty good intertoobs here at college, it should only take 10 minutes... Thanks so much. I will post an update when I try this (tonight after class). Thanks so much!
I'm having trouble with both the EasyLFS and the Gentoo LiveCD. EasyLFS doesn't like my RAID, and the Gentoo LiveCD doesn't seem to have the cryptography modules I need. I'm going to try the Ubuntu LiveCD, and then if I still have issues, I'll post them here.
Alright, I can't find any LiveCD's with RAID and LUKS. Gentoo has it, but not the modules I need. Ubuntu's LiveCD doesn't have it mdadm. Maybe I could install it... Next I'm going to try Finnix... anybody got any other recommendations?
What kind of RAID do you have?
Is it a hardware-RAID and the EasyLFS-CD is missing drivers?
As I'm working on a new version I have a CD here with more and later drivers, which might be able to help.
If you know which driver you need I could check if it's there.
Good to hear you finally found a CD that worked for you.
I guess Arch doesn't have any problem reading your encrypted RAID now that's finally been set up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.