emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49535: closed (parted not detecting atari pttype on ubuntu)


From: GNU bug Tracking System
Subject: bug#49535: closed (parted not detecting atari pttype on ubuntu)
Date: Mon, 12 Jul 2021 17:51:02 +0000

Your message dated Mon, 12 Jul 2021 10:50:17 -0700
with message-id <YOyA2fpol2b5Hiq4@ohop.brianlane.com>
and subject line Re: bug#49535: parted not detecting atari pttype on ubuntu
has caused the debbugs.gnu.org bug report #49535,
regarding parted not detecting atari pttype on ubuntu
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
49535: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49535
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: parted not detecting atari pttype on ubuntu Date: Mon, 12 Jul 2021 16:43:49 +0430 (IRDT)
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.

--- End Message ---
--- Begin Message --- Subject: Re: bug#49535: parted not detecting atari pttype on ubuntu Date: Mon, 12 Jul 2021 10:50:17 -0700
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



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]