Bug #8326
closedIssues with ceph deploy - disk issue
0%
Description
I'm trying to deploy ceph on 2 virtual machines running ubuntu 12.04.
When I enter the following command:
ceph-deploy osd --zap-disk create ceph01:/dev/sdb
I get below error:
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.2): /usr/local/bin/ceph-deploy osd --zap-disk create ceph01:/dev/sdb
[ceph_deploy.osd][DEBUG ] Preparing cluster ceph disks ceph01:/dev/sdb:
[ceph01][DEBUG ] connected to host: ceph01
[ceph01][DEBUG ] detect platform information from remote host
[ceph01][DEBUG ] detect machine type
[ceph_deploy.osd][INFO ] Distro info: Ubuntu 12.04 precise
[ceph_deploy.osd][DEBUG ] Deploying osd to ceph01
[ceph01][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[ceph01][INFO ] Running command: udevadm trigger --subsystem-match=block --action=add
[ceph_deploy.osd][DEBUG ] Preparing host ceph01 disk /dev/sdb journal None activate True
[ceph01][INFO ] Running command: ceph-disk-prepare --zap-disk --fs-type xfs --cluster ceph -- /dev/sdb
[ceph01][WARNIN] INFO:ceph-disk:Will colocate journal with data on /dev/sdb
[ceph01][WARNIN] Could not create partition 2 from 34 to 10485760
[ceph01][WARNIN] Unable to set partition 2's name to 'ceph journal'!
[ceph01][WARNIN] Could not change partition 2's type code to 45b0969e-9b03-4f30-b4c6-b4b80ceff106!
[ceph01][WARNIN] Error encountered; not saving changes.
[ceph01][WARNIN] ceph-disk: Error: Command '['/sbin/sgdisk', '--new=2:0:5120M', '--change-name=2:ceph journal', '--partition-guid=2:28ebe097-e178-4a53-bd2e-a02862de74b9', '--typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106', '--mbrtogpt', '--', '/dev/sdb']' returned non-zero exit status 4
[ceph01][DEBUG ] Creating new GPT entries.
[ceph01][DEBUG ] GPT data structures destroyed! You may now partition the disk using fdisk or
[ceph01][DEBUG ] other utilities.
[ceph01][DEBUG ] The operation has completed successfully.
[ceph01][DEBUG ] Information: Moved requested sector from 34 to 2048 in
[ceph01][DEBUG ] order to align on 2048-sector boundaries.
[ceph01][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy.osd][ERROR ] Failed to execute command: ceph-disk-prepare --zap-disk --fs-type xfs --cluster ceph -- /dev/sdb
Please advice