On Sat, Apr 24, 2010 at 11:55, Arno Wagner <arno@xxxxxxxxxxx> wrote: > On Fri, Apr 23, 2010 at 05:20:05PM -0400, Ryan Lynch wrote: >> Would it be possible to run a shared-disk, clustered filesystem over a >> dm-crypt block device, which in turn runs on a shared iSCSI device? >> I'd be interested in knowing if anyone has tried, or has theoretical >> knowledge of why it would (not) work. > As I said, GFS2 does not care whether the block device it > runs on is directly hardware or in any way transformed > by LVM/dm-crypt, whatever. The only practical experience > I have is RAID1/5/6 -> dm-crypt -> ext3 -> NFS export. I have not > noticed any additional problems there in several years of > doing it. There are of course the individual problems of > the layers. E.g. slow access because files are heavily > fragmented (don't ask) or NFS (old version) being unreliable > when not used with TCP. This seems logical, today. After a good night's sleep, and considering your response, the source of my trepidation is a little clearer to me. I think I should be asking two specific questions: 1) Do dm-crypt's individual cipher chains correspond to disk sectors? To put that another way, can a single chain encompass a larger area of disk? If larger chains are possible, can a cipher chain ever cross outside the boundaries of GFS2's locking granularity? 2) Is the LUKS/dm-crypt "mounting" (?) attachment process read-only and immune to concurrency problems? (Sorry, I'm not sure of the right terminology, here--"mount" is wrong, there's no FS involved, but what is the process of setting up the virtual block device called?) Based on what I've read, so far, I believe there's no problem WRT question #1. But I really don't know about question #2. > You can get pretty bad "synergies" even locally though. > Once I had XFS on a Linux software RADI5 and they interacted > so badly when both did a resync/FS check, that it would have > taken months to finish. Basically both seemd to work, then > backed off, then tried again, backed off.... The RAID resync > speed was arounf 10kB/sec. I'm prepared for a pretty big performance hit. For my application, 2x hosts at >= 1 MB/sec, each, for relatively local file reads/writes w/o any lock contention is fine. Against a SATA RAID array over a single GigE switch, I can do 100x that. I haven't even really started to worry about this issue, yet. > I think unless somebody has the exact same configuration and > workload as you do, you really need to try ot out. I'll be happy if it works and passes some basic tests, but I don't have the knowledge or resources to exhaustively test it. Someone more knowledgeable would have to tell me whether there are any hidden cryptographic risks, or potential crash/data loss bugs on uncommon corner cases that my tests don't cover. Thanks for the feedback. -Ryan _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt