From unknown Thu Aug 14 22:20:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41577: automatic alignment Resent-From: Harald Dunkel Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Thu, 28 May 2020 15:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41577 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 41577@debbugs.gnu.org X-Debbugs-Original-To: bug-parted@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159067891313927 (code B ref -1); Thu, 28 May 2020 15:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 May 2020 15:15:13 +0000 Received: from localhost ([127.0.0.1]:52791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeKFQ-0003cU-PS for submit@debbugs.gnu.org; Thu, 28 May 2020 11:15:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:49366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeI9n-00006M-VQ for submit@debbugs.gnu.org; Thu, 28 May 2020 09:01:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeI9n-0000kJ-O1 for bug-parted@gnu.org; Thu, 28 May 2020 09:01:11 -0400 Received: from mail.aixigo.de ([5.145.142.10]:34668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeI9l-0004nc-Jq for bug-parted@gnu.org; Thu, 28 May 2020 09:01:11 -0400 Received: from srvvm01.ac.aixigo.de (mail.ac.aixigo.de [172.19.96.11]) by gate5a.ac.aixigo.de (OpenSMTPD) with ESMTPS id 61ec8042 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 28 May 2020 15:00:44 +0200 (CEST) Received: from dpcl082.ac.aixigo.de (dpcl082.ac.aixigo.de [172.19.97.128]) by srvvm01.ac.aixigo.de (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTP id 04SD0hgc987059; Thu, 28 May 2020 15:00:43 +0200 From: Harald Dunkel Message-ID: <1bc50cd8-88f1-b4d3-ecc7-8d848a89ccf5@aixigo.com> Date: Thu, 28 May 2020 15:00:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.102.2 at srvvm01.ac.aixigo.de X-Virus-Status: Clean Received-SPF: pass client-ip=5.145.142.10; envelope-from=harald.dunkel@aixigo.com; helo=mail.aixigo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/28 09:00:44 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Mailman-Approved-At: Thu, 28 May 2020 11:15:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi folks, Finding a good alignment appears to be a pretty complex task, esp. for some RAID devices, so I wonder if this could be better supported in parted? The current [bzzzzzzzz] The resulting partition is not properly aligned for best performance. for all 2**n is *more* than annoying. For my lsi RAID I had to use Number Start End Size File system Name Flags 1 1536s 46880782847s 46880781312s export following the guidelines on [1]. Obviously the align-check option has some deeper knowledge about a good alignment, but it doesn't tell. :-( Regards Harri [1] https://bdoga.com/how-to-fix-warning-device-is-not-properly-aligned-with-parted/ From unknown Thu Aug 14 22:20:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Harald Dunkel Subject: bug#41577: closed (Re: bug#41577: automatic alignment) Message-ID: References: <20200528235732.GF49241@ohop.brianlane.com> <1bc50cd8-88f1-b4d3-ecc7-8d848a89ccf5@aixigo.com> X-Gnu-PR-Message: they-closed 41577 X-Gnu-PR-Package: parted Reply-To: 41577@debbugs.gnu.org Date: Thu, 28 May 2020 23:58:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1590710282-30085-1" This is a multi-part message in MIME format... ------------=_1590710282-30085-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #41577: automatic alignment which was filed against the parted package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 41577@debbugs.gnu.org. --=20 41577: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41577 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1590710282-30085-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 41577-close) by debbugs.gnu.org; 28 May 2020 23:57:44 +0000 Received: from localhost ([127.0.0.1]:53288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeSP9-0007of-Vx for submit@debbugs.gnu.org; Thu, 28 May 2020 19:57:44 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:46918 helo=us-smtp-delivery-1.mimecast.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeSP7-0007oU-62 for 41577-close@debbugs.gnu.org; Thu, 28 May 2020 19:57:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590710260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=exidwzXuCfrQ9H0Pn+eJZ9E2M/DesFvUvjahf/ax+W0=; b=TpmvEsim5MH4mEh4MdoEOZsoOqf2C+DzVZwU5UXVM3EWR9ct0fU+WXUNj0f3i/NnkebBCb aGlBKvF2TrM7bmdRdLp+qbvxDLM8JeKuZnwJwAY9pLWbx8bHGN0g+jCZH2Vc3m69RffWgF nbX+3fszG0hrtb8n80yAtnoHCXcSy80= Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-511-ZDs5uHC5NuaYBG96iqSEwQ-1; Thu, 28 May 2020 19:57:36 -0400 X-MC-Unique: ZDs5uHC5NuaYBG96iqSEwQ-1 Received: by mail-pl1-f200.google.com with SMTP id f12so626120plr.14 for <41577-close@debbugs.gnu.org>; Thu, 28 May 2020 16:57:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=exidwzXuCfrQ9H0Pn+eJZ9E2M/DesFvUvjahf/ax+W0=; b=o6BOKyLOREFlQXKDAw2jijhWXhBAa/XSdem+ECoFDXFdR1UvOQ3c05BmYz6pypCn4r O195c9Hm1dmeRkp//1o/CeMDmFGCuwh66nZXhVCQGcDd5hIa2tMcSoi5vI/Sp7jWjzkx Nkk/osxfhkeYYdZHBdXYElABlGTHTUM9FN0bhNdiWH6sPbRPcLckmFNzHualrTgxCtYn 7zy0cmP3JxSL9XGK+gg1qhO5exFk8fx59cQuu1QFpQV6Alp2NUN83usGt4gsK91caSnU S6LKEB88RdF1QtZnKy6z2A0Z+kDFEB4iVLVwT2OnMI6xSgSCAmAx9ra5kVyJ/QHURBWw Dzvw== X-Gm-Message-State: AOAM533zkg1FJ0LbIVP67r7e4iTbFT9kpNbGwij7NDglcBcxGVfX7pHI 8oxhO+Fm29pWvieIImBf7jUXeN+ynS4YtGYv0tcQVnZ/ql/M614xBldxsgp/7kHaLeuOjHjZCkB dcZdtnunYWVPwX13TYSJzfWs= X-Received: by 2002:a65:5645:: with SMTP id m5mr5354191pgs.434.1590710255420; Thu, 28 May 2020 16:57:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxq3A8wUZwxqpRRPg64SgZgMITPwVyDJ7fAhFiYKnhDPj1STU8G89Q1jYM2i5+XISE8T94ang== X-Received: by 2002:a65:5645:: with SMTP id m5mr5354177pgs.434.1590710255092; Thu, 28 May 2020 16:57:35 -0700 (PDT) Received: from ohop.brianlane.com (c-73-157-81-114.hsd1.wa.comcast.net. [73.157.81.114]) by smtp.gmail.com with ESMTPSA id m18sm5949979pjl.14.2020.05.28.16.57.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 16:57:34 -0700 (PDT) Date: Thu, 28 May 2020 16:57:32 -0700 From: "Brian C. Lane" To: Harald Dunkel Subject: Re: bug#41577: automatic alignment Message-ID: <20200528235732.GF49241@ohop.brianlane.com> References: <1bc50cd8-88f1-b4d3-ecc7-8d848a89ccf5@aixigo.com> MIME-Version: 1.0 In-Reply-To: <1bc50cd8-88f1-b4d3-ecc7-8d848a89ccf5@aixigo.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41577-close Cc: 41577-close@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, May 28, 2020 at 03:00:43PM +0200, Harald Dunkel wrote: > Hi folks, > > Finding a good alignment appears to be a pretty complex task, esp. > for some RAID devices, so I wonder if this could be better supported > in parted? The current > > [bzzzzzzzz] The resulting partition is not properly aligned for best performance. > > for all 2**n is *more* than annoying. For my lsi RAID I had to use > > Number Start End Size File system Name Flags > 1 1536s 46880782847s 46880781312s export > > following the guidelines on [1]. > > Obviously the align-check option has some deeper knowledge about > a good alignment, but it doesn't tell. :-( Yeah, it's complicated :) But if you use the latest parted it will tell you more if you try to create a mis-aligned partition: Start? 8s End? 100% Warning: You requested a partition from 4096B to 1074MB (sectors 8..2097151). The closest location we can manage is 17.4kB to 1074MB (sectors 34..2097118). Is this still acceptable to you? Yes/No? y Warning: The resulting partition is not properly aligned for best performance: 34s % 2048s != 0s Ignore/Cancel? This means that it needs to be multiples of 2048 sectors to be aligned (this example is just an example with a disk image). Brian -- Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart ------------=_1590710282-30085-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 May 2020 15:15:13 +0000 Received: from localhost ([127.0.0.1]:52791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeKFQ-0003cU-PS for submit@debbugs.gnu.org; Thu, 28 May 2020 11:15:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:49366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeI9n-00006M-VQ for submit@debbugs.gnu.org; Thu, 28 May 2020 09:01:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeI9n-0000kJ-O1 for bug-parted@gnu.org; Thu, 28 May 2020 09:01:11 -0400 Received: from mail.aixigo.de ([5.145.142.10]:34668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeI9l-0004nc-Jq for bug-parted@gnu.org; Thu, 28 May 2020 09:01:11 -0400 Received: from srvvm01.ac.aixigo.de (mail.ac.aixigo.de [172.19.96.11]) by gate5a.ac.aixigo.de (OpenSMTPD) with ESMTPS id 61ec8042 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 28 May 2020 15:00:44 +0200 (CEST) Received: from dpcl082.ac.aixigo.de (dpcl082.ac.aixigo.de [172.19.97.128]) by srvvm01.ac.aixigo.de (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTP id 04SD0hgc987059; Thu, 28 May 2020 15:00:43 +0200 To: bug-parted@gnu.org From: Harald Dunkel Subject: automatic alignment Message-ID: <1bc50cd8-88f1-b4d3-ecc7-8d848a89ccf5@aixigo.com> Date: Thu, 28 May 2020 15:00:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.102.2 at srvvm01.ac.aixigo.de X-Virus-Status: Clean Received-SPF: pass client-ip=5.145.142.10; envelope-from=harald.dunkel@aixigo.com; helo=mail.aixigo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/28 09:00:44 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 28 May 2020 11:15:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi folks, Finding a good alignment appears to be a pretty complex task, esp. for some RAID devices, so I wonder if this could be better supported in parted? The current [bzzzzzzzz] The resulting partition is not properly aligned for best performance. for all 2**n is *more* than annoying. For my lsi RAID I had to use Number Start End Size File system Name Flags 1 1536s 46880782847s 46880781312s export following the guidelines on [1]. Obviously the align-check option has some deeper knowledge about a good alignment, but it doesn't tell. :-( Regards Harri [1] https://bdoga.com/how-to-fix-warning-device-is-not-properly-aligned-with-parted/ ------------=_1590710282-30085-1-- From unknown Thu Aug 14 22:20:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41577: closed (Re: bug#41577: automatic alignment) Resent-From: Harald Dunkel Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Fri, 29 May 2020 11:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41577 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 41577@debbugs.gnu.org Received: via spool by 41577-submit@debbugs.gnu.org id=B41577.159075105523062 (code B ref 41577); Fri, 29 May 2020 11:18:01 +0000 Received: (at 41577) by debbugs.gnu.org; 29 May 2020 11:17:35 +0000 Received: from localhost ([127.0.0.1]:53977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jed14-0005zr-GY for submit@debbugs.gnu.org; Fri, 29 May 2020 07:17:34 -0400 Received: from mail.aixigo.de ([5.145.142.10]:35004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeYCK-0006iJ-NJ for 41577@debbugs.gnu.org; Fri, 29 May 2020 02:08:53 -0400 Received: from srvvm01.ac.aixigo.de (mail.ac.aixigo.de [172.19.96.11]) by gate5a.ac.aixigo.de (OpenSMTPD) with ESMTPS id 8b36b975 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <41577@debbugs.gnu.org>; Fri, 29 May 2020 08:08:50 +0200 (CEST) Received: from dpcl082.ac.aixigo.de (dpcl082.ac.aixigo.de [172.19.97.128]) by srvvm01.ac.aixigo.de (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTP id 04T68oAT1118521; Fri, 29 May 2020 08:08:50 +0200 References: <20200528235732.GF49241@ohop.brianlane.com> <1bc50cd8-88f1-b4d3-ecc7-8d848a89ccf5@aixigo.com> From: Harald Dunkel Message-ID: <5d8275ec-28b5-b4f0-eff4-42484678d173@aixigo.com> Date: Fri, 29 May 2020 08:08:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.102.2 at srvvm01.ac.aixigo.de X-Virus-Status: Clean X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Fri, 29 May 2020 07:17:23 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Much better, but IMHO there is still room for improvement. It could say (for example) (parted) mkpart primary 100000s 199999s Warning: The resulting partition is not properly aligned for best performance. Suggested is sectors 100352 .. 198655 Accept/Reject? Just a suggestion, of course. Regards Harri