Project

General

Profile

Bug #5130

ceph-deploy osd create ubuntu:sdb

Added by jianpeng ma almost 7 years ago. Updated almost 7 years ago.

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

0%

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

Description

root@majianpeng:/tmp/my-cluster# ceph-deploy osd create ubuntu:sdb
INFO:ceph-disk:Will colocate journal with data on /dev/sdb
Caution! After loading partitions, the CRC doesn't check out!
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!

Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!

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

Invalid partition data!
ceph-disk: Error: Command '['sgdisk', '--new=2:0:1024M', '--change-name=2:ceph journal', '--partition-guid=2:d23bc8e4-4967-4ae0-9966-99851c670580', '--typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106', '--', '/dev/sdb']' returned non-zero exit status 2
Traceback (most recent call last):
File "/usr/bin/ceph-deploy", line 22, in <module>
main()
File "/usr/lib/pymodules/python2.7/ceph_deploy/cli.py", line 112, in main
return args.func(args)
File "/usr/lib/pymodules/python2.7/ceph_deploy/osd.py", line 293, in osd
prepare(args, cfg, activate_prepared_disk=True)
File "/usr/lib/pymodules/python2.7/ceph_deploy/osd.py", line 177, in prepare
dmcrypt_dir=args.dmcrypt_key_dir,
File "/usr/lib/python2.7/dist-packages/pushy/protocol/proxy.py", line 255, in <lambda>
(conn.operator(type_, self, args, kwargs))
File "/usr/lib/python2.7/dist-packages/pushy/protocol/connection.py", line 66, in operator
return self.send_request(type_, (object, args, kwargs))
File "/usr/lib/python2.7/dist-packages/pushy/protocol/baseconnection.py", line 323, in send_request
return self.__handle(m)
File "/usr/lib/python2.7/dist-packages/pushy/protocol/baseconnection.py", line 639, in __handle
raise e
pushy.protocol.proxy.ExceptionProxy: Command '['ceph-disk-prepare', '--', '/dev/sdb']' returned non-zero exit status 1

History

#1 Updated by Sage Weil almost 7 years ago

  • Status changed from New to Need More Info

the disk is probably in use or already partitioned... do 'ceph-deploy disk list ubuntu' to see, and/or pass --zap-disk to the create command to blow away the partitions before continuing.

#2 Updated by Sage Weil almost 7 years ago

  • Status changed from Need More Info to Resolved

Also available in: Atom PDF