root@pve1:~# cat /proc/partitions
major minor #blocks name
1 0 65536 ram0
1 1 65536 ram1
1 2 65536 ram2
1 3 65536 ram3
1 4 65536 ram4
1 5 65536 ram5
1 6 65536 ram6
1 7 65536 ram7
1 8 65536 ram8
1 9 65536 ram9
1 10 65536 ram10
1 11 65536 ram11
1 12 65536 ram12
1 13 65536 ram13
1 14 65536 ram14
1 15 65536 ram15
8 0 143374744 sda
8 1 1007 sda1
8 2 130048 sda2
8 3 143243655 sda3
8 32 292968750 sdc
8 48 292968750 sdd
8 49 292967709 sdd1
8 64 292968750 sde
8 80 292968750 sdf
8 16 58615704 sdb
8 17 5242880 sdb1
251 0 35651584 dm-0
251 1 8388608 dm-1
251 2 81920 dm-2
251 3 82427904 dm-3
251 4 82427904 dm-4
root@pve1:~# ceph-disk prepare --journal-dev /dev/sdb1 /dev/sdc
prepare_device: OSD will not be hot-swappable if journal is not the same device as the osd data
Setting name!
partNum is 0
REALLY setting name!
The operation has completed successfully.
set_data_partition: incorrect partition UUID: 45b0969e-9b03-4f30-b4c6-b4b80ceff106, expected ['4fbd7e29-9d25-41b8-afd0-5ec00ceff05d', '4fbd7e29-9d25-41b8-afd0-062c0ceff05d', '4fbd7e29-8ae0-4982-bf9d-5a8d867af560', '4fbd7e29-9d25-41b8-afd0-35865ceff05d']
meta-data=/dev/sdb1 isize=2048 agcount=4, agsize=327680 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=1310720, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
root@pve1:~# journalctl -f &
[1] 8237
root@pve1:~# -- Logs begin at Sun 2017-01-01 09:12:00 CST. --
Jan 03 10:00:08 pve1 pveproxy[22861]: worker 8070 started
Jan 03 10:00:08 pve1 pveproxy[7983]: Clearing outdated entries from certificate cache
Jan 03 10:00:20 pve1 sshd[8076]: Accepted password for root from 192.168.158.247 port 53644 ssh2
Jan 03 10:00:20 pve1 sshd[8076]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jan 03 10:00:45 pve1 kernel: sdc:
Jan 03 10:00:45 pve1 kernel: sdc:
Jan 03 10:00:46 pve1 kernel: sdc: sdc1
Jan 03 10:00:47 pve1 kernel: XFS (sdb1): Mounting V4 Filesystem
Jan 03 10:00:47 pve1 kernel: XFS (sdb1): Ending clean mount
Jan 03 10:00:47 pve1 kernel: XFS (sdb1): Unmounting Filesystem
root@pve1:~# systemctl start ceph<TAB><TAB>
ceph-create-keys@0.service ceph-disk@dev-sdc1.service ceph-disk@dev-sdd1.service ceph-disk@dev-sde1.service ceph-disk@dev-sdf1.service ceph-osd@0.service ceph.service
root@pve1:~# systemctl start ceph-disk@dev-sdc1.service
Jan 03 10:01:15 pve1 systemd[1]: Starting Ceph disk activation: /dev/sdc1...
Jan 03 10:01:15 pve1 sh[8313]: main_trigger: main_trigger: Namespace(cluster='ceph', dev='/dev/sdc1', dmcrypt=None, dmcrypt_key_dir='/etc/ceph/dmcrypt-keys', func=<function main_trigger at 0x7fa2710846e0>, log_stdout=True, prepend_to_path='/usr/bin', prog='ceph-disk', setgroup=None, setuser=None, statedir='/var/lib/ceph', sync=True, sysconfdir='/etc/ceph', verbose=True)
Jan 03 10:01:15 pve1 sh[8313]: command: Running command: /sbin/init --version
Jan 03 10:01:15 pve1 sh[8313]: command: Running command: /sbin/blkid -o udev -p /dev/sdc1
Jan 03 10:01:15 pve1 sh[8313]: command: Running command: /sbin/blkid -o udev -p /dev/sdc1
Jan 03 10:01:15 pve1 sh[8313]: main_trigger: trigger /dev/sdc1 parttype None uuid None
Jan 03 10:01:15 pve1 sh[8313]: Traceback (most recent call last):
Jan 03 10:01:15 pve1 sh[8313]: File "/usr/sbin/ceph-disk", line 9, in <module>
Jan 03 10:01:15 pve1 sh[8313]: load_entry_point('ceph-disk==1.0.0', 'console_scripts', 'ceph-disk')()
Jan 03 10:01:15 pve1 sh[8313]: File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 5009, in run
Jan 03 10:01:15 pve1 sh[8313]: main(sys.argv[1:])
Jan 03 10:01:15 pve1 sh[8313]: File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 4960, in main
Jan 03 10:01:15 pve1 sh[8313]: args.func(args)
Jan 03 10:01:15 pve1 sh[8313]: File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 4392, in main_trigger
Jan 03 10:01:15 pve1 sh[8313]: raise Error('unrecognized partition type %s' % parttype)
Jan 03 10:01:15 pve1 sh[8313]: ceph_disk.main.Error: Error: unrecognized partition type None
Job for ceph-disk@dev-sdc1.service failed. See 'systemctl status ceph-disk@dev-sdc1.service' and 'journalctl -xn' for details.
Jan 03 10:01:15 pve1 systemd[1]: ceph-disk@dev-sdc1.service: main process exited, code=exited, status=1/FAILURE
Jan 03 10:01:15 pve1 systemd[1]: Failed to start Ceph disk activation: /dev/sdc1.
Jan 03 10:01:15 pve1 systemd[1]: Unit ceph-disk@dev-sdc1.service entered failed state.
root@pve1:~# Jan 03 10:01:55 pve1 pveproxy[8070]: Clearing outdated entries from certificate cache