Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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:
[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'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?