Project

General

Profile

Actions

Bug #8292

closed

ceph-disk prepare output not explicit on too small disk

Added by Christophe Courtaut about 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
ceph-disk
Target version:
-
% Done:

0%

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

Description

While trying to use "ceph-disk prepare /dev/sdb", where /dev/sdb has only a 1Go partition,
we get this output

STDOUT: Creating new GPT entries.
Information: Moved requested sector from 34 to 2048 in
order to align on 2048-sector boundaries.
STDERR: INFO:ceph-disk:Will colocate journal with data on /dev/sdb
Could not create partition 2 from 34 to 10485760
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.
ceph-disk: Error: Command '['/sbin/sgdisk', '--new=2:0:5120M', '--change-name=2:ceph journal', '--partition-guid=2:1f827f05-0ab6-442b-8a87-6158edefc304', '--typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106', '--mbrtogpt', '--', '/dev/sdb']' returned non-zero exit status 4

This is not really explicit and we don't get to see what's wrong.

Actions

Also available in: Atom PDF