GNU bug report logs -
#49535
parted not detecting atari pttype on ubuntu
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49535 in the body.
You can then email your comments to 49535 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-parted <at> gnu.org
:
bug#49535
; Package
parted
.
(Mon, 12 Jul 2021 15:26:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Hamed Bahadorzadeh <h.bahadorzadeh <at> kian.digital>
:
New bug report received and forwarded. Copy sent to
bug-parted <at> gnu.org
.
(Mon, 12 Jul 2021 15:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi
I'm hamed.
We're using rook to deply a Ceph cluster. Rook periodically check empty disk and when it found one it prepare to be used as a ceph osd. Ceph uses Atari partition table to create bluestore for it osds.
The problem happens when they use parted to check if disk is partition or have a partition table.
They use the following command:
parted --machine --script /dev/sdX print
And the desired response should be this:
$ parted --machine --script /dev/sdX print
BYT;
/dev/sdX:xxxxGB:scsi:512:4096:atari:xxxxxxx:;
But we get this output:
$parted --machine --script /dev/sdX print
BYT;
/dev/sdX:xxxxGB:scsi:512:4096:unknown:xxxxxx:;
Which is definitely wrong, as the output of blkid show the partition table is atari:
$ blkid /dev/sd X
/dev/sdX: TYPE="ceph_bluestore" PTTYPE="atari"
We are using latest version of parted on ubuntu 20.04 with kernel 5.4.0-77:
$ parted -v
parted (GNU parted) 3.4
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.
$uname -a
Linux ubuntu 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Cloud you help us? This problem caused us a huge problem.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-parted <at> gnu.org
:
bug#49535
; Package
parted
.
(Mon, 12 Jul 2021 17:51:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 49535 <at> debbugs.gnu.org (full text, mbox):
On Mon, Jul 12, 2021 at 04:43:49PM +0430, Hamed Bahadorzadeh via Bug reports for the GNU Parted disk partition editor wrote:
> Hi
> I'm hamed.
>
> We're using rook to deply a Ceph cluster. Rook periodically check empty disk and when it found one it prepare to be used as a ceph osd. Ceph uses Atari partition table to create bluestore for it osds.
According to this FAQ entry this is just by chance, they are not using
Atari partition tables (nor should they!) -
https://rook.io/docs/rook/v1.6/ceph-common-issues.html#unexpected-partitions-created
> The problem happens when they use parted to check if disk is partition or have a partition table.
If you are not using partitioned disks you cannot expect parted to
properly identify the disk, even if it randomly works more often than
not. If someone is depending on this as a method for detecting Ceph or
not Ceph they need to find a better way.
My suggestion would be to use GPT partition tables and a ceph related
UUID for the partition type. Or names for the partitions.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
Reply sent
to
"Brian C. Lane" <bcl <at> redhat.com>
:
You have taken responsibility.
(Mon, 12 Jul 2021 17:51:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Hamed Bahadorzadeh <h.bahadorzadeh <at> kian.digital>
:
bug acknowledged by developer.
(Mon, 12 Jul 2021 17:51:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 10 Aug 2021 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 232 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.