1. ceph@cephdeploy01:~/ceph-deploy$ ceph-deploy --overwrite-conf disk prepare --fs-type btrfs cephosd01:sdd:/dev/sde
  2. [ceph_deploy.cli][INFO ] Invoked (1.4.0): /usr/bin/ceph-deploy --overwrite-conf disk prepare --fs-type btrfs cephosd01:sdd:/dev/sde
  3. [ceph_deploy.osd][DEBUG ] Preparing cluster ceph disks cephosd01:/dev/sdd:/dev/sde
  4. [cephosd01][DEBUG ] connected to host: cephosd01
  5. [cephosd01][DEBUG ] detect platform information from remote host
  6. [cephosd01][DEBUG ] detect machine type
  7. [ceph_deploy.osd][INFO ] Distro info: Ubuntu 14.04 trusty
  8. [ceph_deploy.osd][DEBUG ] Deploying osd to cephosd01
  9. [cephosd01][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
  10. [cephosd01][INFO ] Running command: sudo udevadm trigger --subsystem-match=block --action=add
  11. [ceph_deploy.osd][DEBUG ] Preparing host cephosd01 disk /dev/sdd journal /dev/sde activate False
  12. [cephosd01][INFO ] Running command: sudo ceph-disk-prepare --fs-type btrfs --cluster ceph -- /dev/sdd /dev/sde
  13. [cephosd01][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
  14. [cephosd01][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_options_btrfs
  15. [cephosd01][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mkfs_options_btrfs
  16. [cephosd01][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_btrfs
  17. [cephosd01][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mount_options_btrfs
  18. [cephosd01][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=osd_journal_size
  19. [cephosd01][WARNIN] INFO:ceph-disk:Running command: /sbin/parted --machine -- /dev/sde print
  20. [cephosd01][WARNIN] ceph-disk: Error: weird parted units:
  21. [cephosd01][ERROR ] RuntimeError: command returned non-zero exit status: 1
  22. [ceph_deploy.osd][ERROR ] Failed to execute command: ceph-disk-prepare --fs-type btrfs --cluster ceph -- /dev/sdd /dev/sde
  23. [ceph_deploy][ERROR ] GenericError: Failed to create 1 OSDs
  24.  
  25. ceph@cephdeploy01:~/ceph-deploy$
  26.  
  27.  
  28. ---
  29.  
  30. ceph@cephosd01:~$ sudo fdisk /dev/sdd
  31.  
  32. WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.
  33.  
  34.  
  35. WARNING: The size of this disk is 3.0 TB (3000592982016 bytes).
  36. DOS partition table format can not be used on drives for volumes
  37. larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID
  38. partition table format (GPT).
  39.  
  40.  
  41. Command (m for help): p
  42.  
  43. Disk /dev/sdd: 3000.6 GB, 3000592982016 bytes
  44. 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
  45. Units = sectors of 1 * 512 = 512 bytes
  46. Sector size (logical/physical): 512 bytes / 512 bytes
  47. I/O size (minimum/optimal): 512 bytes / 512 bytes
  48. Disk identifier: 0x00000000
  49.  
  50. Device Boot Start End Blocks Id System
  51.  
  52. Command (m for help):
  53.  
  54. ceph@cephosd01:~$ sudo fdisk /dev/sde
  55.  
  56. WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.
  57.  
  58.  
  59. The device presents a logical sector size that is smaller than
  60. the physical sector size. Aligning to a physical sector (or optimal
  61. I/O) size boundary is recommended, or performance may be impacted.
  62.  
  63. Command (m for help): p
  64.  
  65. Disk /dev/sde: 120.0 GB, 120034123776 bytes
  66. 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
  67. Units = sectors of 1 * 512 = 512 bytes
  68. Sector size (logical/physical): 512 bytes / 4096 bytes
  69. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  70. Disk identifier: 0x00000000
  71.  
  72. Device Boot Start End Blocks Id System
  73.  
  74. Command (m for help):