Project

General

Profile

Bug #8644

624ae21833 breaks ceph-disk

Added by Bjørnar Ness almost 10 years ago. Updated over 9 years ago.

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

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

git bisect shows 624ae21833 breaks ceph-disk

Seems it tries to create partition one, which has already been created as "ceph journal"
by ceph-disk itself

src/ceph-disk prepare --zap-disk --fs-type xfs /dev/sdc
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!

********************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended. ********************************************************************
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
The operation has completed successfully.
INFO:ceph-disk:Will colocate journal with data on /dev/sdc
Information: Moved requested sector from 34 to 2048 in
order to align on 2048-sector boundaries.
The operation has completed successfully.
Could not create partition 1 from 1048610 to 1953525134
Error encountered; not saving changes.
ceph-disk: Error: Command '['/sbin/sgdisk', '--largest-new=1', '--change-name=1:ceph data', '--partition-guid=1:4957abe5-1f9e-4406-b083-82f9e02c3d65', '--typecode=1:89c57f98-2fe5-4dc0-89c1-f3ad0ceff2be', '--', '/dev/sdc']' returned non-zero exit status 4

  1. parted /dev/sdc print
    Model: ATA Samsung SSD 840 (scsi)
    Disk /dev/sdc: 1000GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 537MB 536MB ceph journal

History

#1 Updated by Loïc Dachary almost 10 years ago

  • Assignee deleted (Sage Weil)

#2 Updated by Sage Weil almost 10 years ago

  • Category deleted (ceph cli)
  • Status changed from New to 12
  • Assignee set to John Spray
  • Priority changed from Urgent to High
  • Source changed from other to Community (user)

I reverted the commit for now. John, care to take a look? I hit the same problem as well on a mira (using ceph-deploy or running ceph-disk directly).

#3 Updated by Sage Weil over 9 years ago

  • Priority changed from High to Normal

#4 Updated by Sage Weil over 9 years ago

  • Status changed from 12 to Rejected

Also available in: Atom PDF