Project

General

Profile

Bug #48697

Ceph-volume reports a device as available and the device cannot be used to create OSDs because it has <GPT headers>.

Added by Juan Miguel Olmo Martínez over 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

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

Description

Two possibilities.. report the device as no available for this cause (GPT headers), or fix the lvm batch command in order to make possible use this devices.

Extract of the relevant info:

[root@e20-h19-6029r tmp]# fdisk -l
...
Disk /dev/sda: 5.5 TiB, 6000606183424 bytes, 11719933952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disklabel type: gpt
Disk identifier: 90557F98-DC56-45F8-8269-C5D64FB8F864
...


root@e20-h19-6029r tmp]# ./cephadm ceph-volume inventory 
INFO:cephadm:Using recent ceph image docker.io/ceph/ceph:v15
INFO:cephadm:/usr/bin/podman:stdout 
INFO:cephadm:/usr/bin/podman:stdout Device Path               Size         rotates available Model name
INFO:cephadm:/usr/bin/podman:stdout /dev/nvme0n1              349.32 GB    False   True      INTEL SSDPED1K375GA
INFO:cephadm:/usr/bin/podman:stdout /dev/sda                  5.46 TB      True    True      SMC3108
....

Device Path               Size         rotates available Model name
/dev/nvme0n1              349.32 GB    False   True      INTEL SSDPED1K375GA
/dev/sda                  5.46 TB      True    True      SMC3108
...


[root@e20-h19-6029r tmp]# ./cephadm ceph-volume lvm batch --no-auto /dev/sda /dev/sdb /dev/sdc
...
INFO:cephadm:/usr/bin/podman:stderr ceph-volume lvm batch: error: GPT headers found, they must be removed on: /dev/sda
Traceback (most recent call last):
  File "./cephadm", line 5202, in <module>
    r = args.func()
  File "./cephadm", line 1138, in _infer_fsid
    return func()
  File "./cephadm", line 1197, in _infer_image
    return func()
  File "./cephadm", line 3320, in command_ceph_volume
    out, err, code = call_throws(c.run_cmd(), verbose=True)
  File "./cephadm", line 876, in call_throws
    raise RuntimeError('Failed command: %s' % ' '.join(command))
RuntimeError: Failed command: /usr/bin/podman run --rm --net=host --ipc=host --privileged --group-add=disk -e CONTAINER_IMAGE=docker.io/ceph/ceph:v15 -e NODE_NAME=e20-h19-6029r.alias.bos.scalelab.redhat.com -v /dev:/dev -v /run/udev:/run/udev -v /sys:/sys -v /run/lvm:/run/lvm -v /run/lock/lvm:/run/lock/lvm --entrypoint /usr/sbin/ceph-volume docker.io/ceph/ceph:v15 lvm batch --no-auto /dev/sda /dev/sdb /dev/sdc

Related issues

Copied to ceph-volume - Backport #49924: pacific: Ceph-volume reports a device as available and the device cannot be used to create OSDs because it has <GPT headers>. Resolved

History

#1 Updated by Andrew Schoen about 3 years ago

  • Status changed from New to Fix Under Review
  • Assignee changed from Jan Fajerski to Andrew Schoen
  • Pull request ID set to 40201

#2 Updated by Ken Dreyer about 3 years ago

  • Backport set to pacific

#3 Updated by Guillaume Abrioux about 3 years ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Guillaume Abrioux about 3 years ago

  • Copied to Backport #49924: pacific: Ceph-volume reports a device as available and the device cannot be used to create OSDs because it has <GPT headers>. added

#5 Updated by Andrew Schoen about 3 years ago

  • Status changed from Pending Backport to Resolved

#6 Updated by Sebastian Wagner over 2 years ago

  • Description updated (diff)

Also available in: Atom PDF