Partitioning problem

Stephen Quinney via linux-fai <[email protected]> Tue, 10 Jun 2025 09:48:32 +0100
Newsgroups gmane.linux.debian.fai
Message-ID <[email protected]>
--===============2207399627320632696==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die
eigentliche Nachricht steht dadurch in einem Anhang.

This message was wrapped to be DMARC compliant. The actual message
text is therefore in an attachment.
--===============2207399627320632696==
Content-Type: message/rfc822
MIME-Version: 1.0
Content-Disposition: inline

X-Mailman-Handler: $Id: mm-handler 2.1.10 2008-04-14 00:00:00 $
Received: from smtp-in.rrz.uni-koeln.de (smtp-in.rrz.uni-koeln.de [134.95.19.47])
	by mailman2-rh7.rrz.uni-koeln.de (8.14.7/8.14.7) with ESMTP id 55A8mhbZ009467
	for <[email protected]>; Tue, 10 Jun 2025 10:48:43 +0200
Received: from uzk-mail-in-v2.rrz.uni-koeln.de (uzk-mail-in-v2.rrz.uni-koeln.de [134.95.63.201])
	by clotho.rrz.uni-koeln.de (8.14.7/8.14.7) with ESMTP id 55A8meuG008053
	for <[email protected]>; Tue, 10 Jun 2025 10:48:43 +0200
X-CSE-ConnectionGUID: 93W26em0TCyvqjrmCPgQ8Q==
X-CSE-MsgGUID: zcoy68o9RX+/8Txee4T1ZA==
IronPort-SDR: 6847f163_pP4FT/f8L0KyELOUToo6B3Iy9MCKO5yAWSsZp1yimSJ3O2z
 5l5BGrN9BJn+/HZ2YzgaPagFiBz7jOc2yJbySrA==
IronPort-Data: A9a23:hPsZT6n8pF7UwHRiLCw3tqro5gwZIkRdPkR7XQ2eYbSJt16W5oEne
 lBvGjzCf7+XISaqOYghPZPlqhRQiSLmvt9jTgo/qXtkQS1H9ZScCIXII02ubnvNdJbIQBxsv
 8sUOoDMcso6H3WCr0n9b+C993IghavSHLanBraUZC58TF4MpEvN8f5Gs7dRbtlA34bia+/0h
 e7PniH/BLOE82N+bDI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NVm8b1jAAI2BqxiMbQlIG7yBPIvZvzqlDyiFmLzqEizirjjshsC1T3kNGaNP/jnw
 LzrHxHBKQmAiKLJwupGsod0gAYlMXZljcQ0fWMf49RTiQ3mPFUZLO8YD4oKOqtUngP2ypv8Q
 jPHN0kmNgnQQhVGdk/azOn4fwLCGNELBMj1FgYp82yQdS2yIoGKW5ll1yV45kZJainR9/6mJ
 f4e60/PEECImL8xftkq59u/netD7dHZzChR+UnCzurDMyxHCrAOjHFcDA5BUBLcKP70lWLJG
 HMUQF5VS0TqWG/zFsddI0RuIi87hw+27TsUbnao+u396rWrlLgKjLW1PuzoybQMYfgbPLNEF
 zu9W2KJ5HvQwXAJ/7cgv9Uym6JvFPaXBY6AIbT+QREJ1bSFgoj90xjuQQJUJC36xDNiLg==
IronPort-HdrOrdr: A9a23:V4fCjKBmDJ/BfozlHemu55DYdb4zR+YMi2TD83oBLCC9E/bo9f
 xG88526faZslkssRIb6LO90cu7IU80nKQdieJ6UItKNzOGhILHFu9fxLqn7zDhHCbj7eBdkZ
 1re694BNCYNykfsfrH
X-Talos-CUID: =?us-ascii?q?9a23=3A4rUW9WlHZiLHmv+8JgPeBwW4u1nXOSyG8y2OLkr?=
 =?us-ascii?q?gNU14VqSXU1q7wKxdw/M7zg=3D=3D?=
X-Talos-MUID: 9a23:1oRPSQYlbSAjreBTpTTrlW8yM5ZS0+fpWHwdnJhah5C2HHkl
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="6.16,224,1744063200"; 
   d="conf'?scan'208";a="36137727"
X-Amp-Result: UNKNOWN
X-Amp-Original-Verdict: FILE UNKNOWN
X-Marked-By: $ACCEPTED
X-UzK-SPF-Result: none
X-MGA-submission: =?us-ascii?q?MDEWjN+UsYJEz1T9ejUI8Il1s9gZpMr1/q2diI?=
 =?us-ascii?q?5O2GJYt2BKGN0IPZFlCZXkLf3b9ctcuDy0WsMKxhfeusUPqa7U2OG02b?=
 =?us-ascii?q?0qE3Fy68NUZnopJgF4MffRkXUDQNslXc8r+YCNN1T77h2EsxAWW7F0c+?=
 =?us-ascii?q?AHQMEPYAAq0fcs9VBGctQdAw=3D=3D?=
Received: from loire.is.ed.ac.uk ([129.215.16.10])
  by uzk-mail-in-v2.rrz.uni-koeln.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jun 2025 10:48:36 +0200
Received: from flakey.inf.ed.ac.uk (flakey.inf.ed.ac.uk [129.215.202.88])
	by loire.is.ed.ac.uk (8.15.2/8.15.2) with ESMTPS id 55A8mYUn869655
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT)
	for <[email protected]>; Tue, 10 Jun 2025 09:48:34 +0100
Received: from beano.inf.ed.ac.uk (beano.inf.ed.ac.uk [129.215.33.132])
	by flakey.inf.ed.ac.uk (8.15.2/8.15.2) with ESMTP id 55A8mYYL034206
	for <[email protected]>; Tue, 10 Jun 2025 09:48:34 +0100
Received: from stromatolite.inf.ed.ac.uk (stromatolite.inf.ed.ac.uk [129.215.212.89])
	(authenticated bits=0)
	by beano.inf.ed.ac.uk (8.15.2/8.15.2) with ESMTPSA id 55A8mWth306041
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO)
	for <[email protected]>; Tue, 10 Jun 2025 09:48:34 +0100
Date: Tue, 10 Jun 2025 09:48:32 +0100
From: Stephen Quinney <[email protected]>
To: [email protected]
Subject: Partitioning problem
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="+ers/HBxU4Qirjdz"
Content-Disposition: inline
X-Edinburgh-Scanned: at loire.is.ed.ac.uk


--+ers/HBxU4Qirjdz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I'm seeing a strange problem when partitioning disks for some new
machines we recently purchased. We have previously not had any
problems with machines of the same model, the only difference with the
latest version is a different brand of SSD (older have SSSTC, new are
Samsung), the disks are the same capacity.

Here's the error from parted:

Executing: parted -s /dev/nvme0n1 mkpart '" "' "" 16602181633B 46602178560B
parted -s /dev/nvme0n1 mkpart '" "' "" 16602181633B 46602178560B had exit code 1
(STDERR) Error: You requested a partition from 16.6GB to 46.6GB (sectors 32426136..91019880).
(STDERR) The closest location we can manage is 16.6GB to 46.6GB (sectors 32426137..91019880).

Note that the first value of the range of sectors is off by 1.

I've tried changing the alignment (we normally use 4096 for SSDs),
varying the order in which the partitions are specified and varying
the sizes of the partitions, nothing helps. Attached is my
setup-storage.conf file.

I was using FAI version 6.2.3 but this also happens with version
6.4.3. Can anyone suggest anything else I can try or where I should
start poking to hunt for a bug?


Thanks,

Stephen Quinney

--+ers/HBxU4Qirjdz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="setup-storage.conf"

# LCFG managed configuration for setup-storage(8)

# Physical disk partitioning

# LCFG: primary
disk_config /dev/nvme0n1 disklabel:gpt align-at:4096B bootable:1 fstabkey:uuid

primary /boot/efi 538 vfat defaults,umask=0077
primary - 16037MB - -
primary - 30GB - -
primary - 400GB - -

# LVM Configuration

# LCFG: vg0
disk_config lvm
vg vg0 /dev/nvme0n1p4

vg0-root / 130GB ext4 defaults,acl
vg0-var /var/cache/afs 8GB ext4 defaults,nosuid,noexec,nodev
vg0-local /disk/scratch 100GB ext4 defaults,nosuid,nodev

# Encryption Configuration

disk_config cryptsetup

swap swap /dev/nvme0n1p2 swap defaults
tmp /tmp /dev/nvme0n1p3 ext4 defaults,nosuid,nodev

# EOF



--+ers/HBxU4Qirjdz--

--===============2207399627320632696==--