From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1zhzGqQWWulz for ; Tue, 20 Sep 2011 20:20:35 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 20 Sep 2011 20:20:34 +0200 (CEST) Message-ID: <4E78D94A.2080800@redhat.com> Date: Tue, 20 Sep 2011 20:19:54 +0200 From: Milan Broz MIME-Version: 1.0 References: <1316515022.7965.31.camel@zarniwoop> <20110920114724.GA21251@tansi.org> <4E78AF92.9040309@alexanderkoch.net> <20110920174129.GA25723@tansi.org> <1316542007.4663.0@mofo> In-Reply-To: <1316542007.4663.0@mofo> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] (More) Questions about LUKS / LVM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Karl O. Pinc" Cc: dm-crypt@saout.de On 09/20/2011 08:06 PM, Karl O. Pinc wrote: > Performance is also going to suck if you don't get > alignment right on drives with 4Kb sectors. Data area for LUKS was always aligned to 4k offset, so you should never see problem here. (Underlying disk partitioning is another issue of course.) > > FWIW here are the links I use to deal with 4Kb sector issues. > > http://ata.wiki.kernel.org/index.php/ATA_4_KiB_sector_issues (down, for the same reason like all kernel.org services...) > http://lists.debian.org/debian-user/2011/01/msg02021.html Not completely up to date. Almost all tools actively use topology information (from kernel) or default to 1MiB alignment. (fdisk, parted, lvm, cryptsetup, mdadm, etc) I would say - if you are using recent distro, you have aligned this correctly by default (when creating new storage stack). Do not try to use any magic options, only do this if you are sure that default result is wrong. (And report bug if you see it with new versions of tools, storage people spent a lot of time fixing to work it correctly.) Milan