Project

General

Profile

Actions

Bug #22842

open

(luminous) ceph-disk prepare of simple filestore failed with 'Unable to set partition name' under ubuntu trusty

Added by Enrico Labedzki about 6 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

Hi,

can't create a simple filestore with help of ceph-disk under ubuntu trusy, please have a look on this...

root@luminous-node1:~# ceph-disk prepare --filestore --cluster ceph --cluster-uuid 1da14634-950f-4ebf-90c5-6dd7d906c071 --fs-type xfs /dev/sde
/usr/lib/python2.7/dist-packages/ceph_disk/main.py:5653: UserWarning:
*******************************************************************************
This tool is now deprecated in favor of ceph-volume.
It is recommended to use ceph-volume for OSD deployments. For details see:

    http://docs.ceph.com/docs/master/ceph-volume/#migrating

*******************************************************************************

  warnings.warn(DEPRECATION_WARNING)
Creating new GPT entries.
Could not create partition 2 from 2048 to 2099199
Unable to set partition 2's name to 'ceph journal'!
Could not change partition 2's type code to 45b0969e-9b03-4f30-b4c6-b4b80ceff106!
Error encountered; not saving changes.
'/sbin/sgdisk --new=2:0:+1024M --change-name=2:ceph journal --partition-guid=2:6ddb9c38-e2b5-461d-b992-f859e100a077 --typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt -- /dev/sde' failed with status code 4

ceph-volume is currently not a option because he has another open bug http://tracker.ceph.com/issues/22840 which makes it impossible to create a filestore in the normal way.

At the moment we do this manually, which is error prone.

Best regards
Enrico

Actions #1

Updated by John Spray about 6 years ago

I would suspect that something is strange about the disk (non-GPT partition table perhaps?), and you're getting less-than-helpful output from sgdisk.

Actions #2

Updated by Enrico Labedzki about 6 years ago

John Spray wrote:

I would suspect that something is strange about the disk (non-GPT partition table perhaps?), and you're getting less-than-helpful output from sgdisk.

Hi John,

you are sure, i mean '--change-name=2:ceph journal' isn't in quotes as far as i can see, but it should be maybe, so i tested this manually with quoted naming and it works.

Currently i did a test on a fresh ubuntu xenial box...

root@luminous-node3:/var/lib/ceph/mon/ceph-luminous-node3# /sbin/sgdisk --new=2:0:+10M --change-name='2:ceph journal' --mbrtogpt -- /dev/sdb
Setting name!
partNum is 1
REALLY setting name!
The operation has completed successfully.
root@luminous-node3:/var/lib/ceph/mon/ceph-luminous-node3# sgdisk -p /dev/sdb
Disk /dev/sdb: 2097152 sectors, 1024.0 MiB
Logical sector size: 512 bytes
Disk identifier (GUID): AA4C8A7F-B173-42A7-817F-84027B6CA56F
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 2097118
Partitions will be aligned on 2048-sector boundaries
Total free space is 2076605 sectors (1014.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   2            2048           22527   10.0 MiB    8300  ceph journal

... seems it works if the name is in quotes, also tested this without quotes without success :(.

Actions #3

Updated by Greg Farnum about 6 years ago

  • Project changed from Ceph to RADOS
  • Category deleted (ceph cli)
  • Assignee set to Alfredo Deza
Actions #4

Updated by Alfredo Deza about 6 years ago

  • Assignee deleted (Alfredo Deza)
Actions

Also available in: Atom PDF