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/sdX
/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.