Project

General

Profile

Actions

Bug #15176

closed

partprobe intermittent issues during ceph-disk prepare

Added by Vasu Kulkarni about 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

From the mail thread, looks like few folks are having issues with partprobe in ceph-disk and want to use partx instead, I am raising a tracker so that it gets some traction on what should be the right method

Loic's mail thread, looks like ceph-disk used partx before and had some cornercase issues
http://www.spinics.net/lists/ceph-devel/msg26301.html

From: Dan van der Ster <dan@vanderster.com>
Date: Thu, Mar 17, 2016 at 10:47 AM
Subject: Re: [ceph-users] ceph-disk from jewel has issues on redhat 7
To: Vasu Kulkarni <vakulkar@redhat.com>
Cc: Stephen Lord <Steve.Lord@quantum.com>, "ceph-users@lists.ceph.com" <ceph-users@lists.ceph.com>

Hi,

It's true, partprobe works intermittently. I extracted the key
commands to show the problem:

[18:44]# /usr/sbin/sgdisk --new=2:0:20480M --change-name=2:'ceph
journal' --partition-guid=2:aa23e07d-e6b3-4261-a236-c0565971d88d --typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt -- /dev/sdc The operation has completed successfully. [18:44]# partprobe /dev/sdc
Error: Error informing the kernel about modifications to partition /dev/sdc2 -- Device or resource busy.  This means Linux won't know about any changes you made to /dev/sdc2 until you reboot -- so you shouldn't mount it or use it in any way before rebooting. Error: Failed to add partition 2 (Device or resource busy) [18:44]# partprobe /dev/sdc
[18:44]# partprobe /dev/sdc
Error: Error informing the kernel about modifications to partition /dev/sdc2 -- Device or resource busy.  This means Linux won't know about any changes you made to /dev/sdc2 until you reboot -- so you shouldn't mount it or use it in any way before rebooting. Error: Failed to add partition 2 (Device or resource busy) [18:44]# partprobe /dev/sdc
Error: Error informing the kernel about modifications to partition /dev/sdc2 -- Device or resource busy.  This means Linux won't know about any changes you made to /dev/sdc2 until you reboot -- so you shouldn't mount it or use it in any way before rebooting. Error: Failed to add partition 2 (Device or resource busy) But partx works every time:

[18:46]# /usr/sbin/sgdisk --new=2:0:20480M --change-name=2:'ceph
journal' --partition-guid=2:aa23e07d-e6b3-4261-a236-c0565971d88d --typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt -- /dev/sdd
The operation has completed successfully. [18:46]# partx -u /dev/sdd
[18:46]# partx -u /dev/sdd
[18:46]# partx -u /dev/sdd
[18:46]#

Related issues 3 (0 open3 closed)

Has duplicate Ceph - Bug #15918: ceph-disk prepare: occasional partprobe failed on CentOS 7/RHEL 7 with parted < 3.2.16DuplicateLoïc Dachary05/18/2016

Actions
Has duplicate Ceph - Bug #13984: ceph-disk prepare activates the osd on 7.1DuplicateLoïc Dachary12/04/2015

Actions
Copied to Ceph - Backport #16586: jewel: partprobe intermittent issues during ceph-disk prepareResolvedAbhishek VarshneyActions
Actions

Also available in: Atom PDF