$ ceph-deploy --username root osd prepare ceph02:sda:/dev/nvme0n1p4
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/maint/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.37): /usr/bin/ceph-deploy --username root osd prepare ceph02:sda:/dev/nvme0n1p4
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : root
[ceph_deploy.cli][INFO ] disk : [('ceph02', '/dev/sda', '/dev/nvme0n1p4')]
[ceph_deploy.cli][INFO ] dmcrypt : False
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] bluestore : None
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] subcommand : prepare
[ceph_deploy.cli][INFO ] dmcrypt_key_dir : /etc/ceph/dmcrypt-keys
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7f0834a09248>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] fs_type : xfs
[ceph_deploy.cli][INFO ] func : <function osd at 0x7f0834e6d398>
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] zap_disk : False
[ceph_deploy.osd][DEBUG ] Preparing cluster ceph disks ceph02:/dev/sda:/dev/nvme0n1p4
[ceph02][DEBUG ] connected to host: root@ceph02
[ceph02][DEBUG ] detect platform information from remote host
[ceph02][DEBUG ] detect machine type
[ceph02][DEBUG ] find the location of an executable
[ceph_deploy.osd][INFO ] Distro info: Ubuntu 16.04 xenial
[ceph_deploy.osd][DEBUG ] Deploying osd to ceph02
[ceph02][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[ceph_deploy.osd][DEBUG ] Preparing host ceph02 disk /dev/sda journal /dev/nvme0n1p4 activate False
[ceph02][DEBUG ] find the location of an executable
[ceph02][INFO ] Running command: /usr/sbin/ceph-disk -v prepare --cluster ceph --fs-type xfs -- /dev/sda /dev/nvme0n1p4
[ceph02][WARNIN] command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
[ceph02][WARNIN] command: Running command: /usr/bin/ceph-osd --check-allows-journal -i 0 --cluster ceph --setuser ceph --setgroup ceph
[ceph02][WARNIN] command: Running command: /usr/bin/ceph-osd --check-wants-journal -i 0 --cluster ceph --setuser ceph --setgroup ceph
[ceph02][WARNIN] command: Running command: /usr/bin/ceph-osd --check-needs-journal -i 0 --cluster ceph --setuser ceph --setgroup ceph
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
[ceph02][WARNIN] command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=osd_journal_size
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
[ceph02][WARNIN] command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_options_xfs
[ceph02][WARNIN] command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mkfs_options_xfs
[ceph02][WARNIN] command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_xfs
[ceph02][WARNIN] command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mount_options_xfs
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/nvme0n1p4 uuid path is /sys/dev/block/259:13/dm/uuid
[ceph02][WARNIN] prepare_device: Journal /dev/nvme0n1p4 is a partition
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/nvme0n1p4 uuid path is /sys/dev/block/259:13/dm/uuid
[ceph02][WARNIN] prepare_device: OSD will not be hot-swappable if journal is not the same device as the osd data
[ceph02][WARNIN] command: Running command: /sbin/blkid -o udev -p /dev/nvme0n1p4
[ceph02][WARNIN] prepare_device: Journal /dev/nvme0n1p4 was not prepared with ceph-disk. Symlinking directly.
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
[ceph02][WARNIN] set_data_partition: Creating osd partition on /dev/sda
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
[ceph02][WARNIN] ptype_tobe_for_name: name = data
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
[ceph02][WARNIN] create_partition: Creating data partition num 1 size 0 on /dev/sda
[ceph02][WARNIN] command_check_call: Running command: /sbin/sgdisk --largest-new=1 --change-name=1:ceph data --partition-guid=1:9e26d63f-cc60-4c41-93ef-c936a657b643 --typecode=1:89c57f98-2fe5-4dc0-89c1-f3ad0ceff2be --mbrtogpt -- /dev/sda
[ceph02][DEBUG ] Setting name!
[ceph02][DEBUG ] partNum is 0
[ceph02][WARNIN] update_partition: Calling partprobe on created device /dev/sda
[ceph02][DEBUG ] REALLY setting name!
[ceph02][WARNIN] command_check_call: Running command: /sbin/udevadm settle --timeout=600
[ceph02][DEBUG ] The operation has completed successfully.
[ceph02][WARNIN] command: Running command: /usr/bin/flock -s /dev/sda /sbin/partprobe /dev/sda
[ceph02][WARNIN] command_check_call: Running command: /sbin/udevadm settle --timeout=600
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda1 uuid path is /sys/dev/block/8:1/dm/uuid
[ceph02][WARNIN] populate_data_path_device: Creating xfs fs on /dev/sda1
[ceph02][WARNIN] command_check_call: Running command: /sbin/mkfs -t xfs -f -i size=2048 -- /dev/sda1
[ceph02][DEBUG ] meta-data="" isize=2048 agcount=4, agsize=117210837 blks
[ceph02][DEBUG ] = sectsz=512 attr=2, projid32bit=1
[ceph02][DEBUG ] = crc=1 finobt=1, sparse=0
[ceph02][DEBUG ] data = bsize=4096 blocks=468843345, imaxpct=5
[ceph02][DEBUG ] = sunit=0 swidth=0 blks
[ceph02][DEBUG ] naming =version 2 bsize=4096 ascii-ci=0 ftype=1
[ceph02][DEBUG ] log =internal log bsize=4096 blocks=228927, version=2
[ceph02][DEBUG ] = sectsz=512 sunit=0 blks, lazy-count=1
[ceph02][DEBUG ] realtime =none extsz=4096 blocks=0, rtextents=0
[ceph02][WARNIN] mount: Mounting /dev/sda1 on /var/lib/ceph/tmp/mnt.9Zpt6h with options noatime,inode64
[ceph02][WARNIN] command_check_call: Running command: /bin/mount -t xfs -o noatime,inode64 -- /dev/sda1 /var/lib/ceph/tmp/mnt.9Zpt6h
[ceph02][WARNIN] populate_data_path: Preparing osd data dir /var/lib/ceph/tmp/mnt.9Zpt6h
[ceph02][WARNIN] command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.9Zpt6h/ceph_fsid.28789.tmp
[ceph02][WARNIN] command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.9Zpt6h/fsid.28789.tmp
[ceph02][WARNIN] command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.9Zpt6h/magic.28789.tmp
[ceph02][WARNIN] command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.9Zpt6h/journal_uuid.28789.tmp
[ceph02][WARNIN] adjust_symlink: Creating symlink /var/lib/ceph/tmp/mnt.9Zpt6h/journal -> /dev/nvme0n1p4
[ceph02][WARNIN] command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.9Zpt6h
[ceph02][WARNIN] unmount: Unmounting /var/lib/ceph/tmp/mnt.9Zpt6h
[ceph02][WARNIN] command_check_call: Running command: /bin/umount -- /var/lib/ceph/tmp/mnt.9Zpt6h
[ceph02][WARNIN] get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
[ceph02][WARNIN] command_check_call: Running command: /sbin/sgdisk --typecode=1:4fbd7e29-9d25-41b8-afd0-062c0ceff05d -- /dev/sda
[ceph02][DEBUG ] Warning: The kernel is still using the old partition table.
[ceph02][DEBUG ] The new table will be used at the next reboot or after you
[ceph02][DEBUG ] run partprobe(8) or kpartx(8)
[ceph02][DEBUG ] The operation has completed successfully.
[ceph02][WARNIN] update_partition: Calling partprobe on prepared device /dev/sda
[ceph02][WARNIN] command_check_call: Running command: /sbin/udevadm settle --timeout=600
[ceph02][WARNIN] command: Running command: /usr/bin/flock -s /dev/sda /sbin/partprobe /dev/sda
[ceph02][WARNIN] command_check_call: Running command: /sbin/udevadm settle --timeout=600
[ceph02][WARNIN] command_check_call: Running command: /sbin/udevadm trigger --action="" --sysname-match sda1
[ceph02][INFO ] checking OSD status...
[ceph02][DEBUG ] find the location of an executable
[ceph02][INFO ] Running command: /usr/bin/ceph --cluster=ceph osd stat --format=json
[ceph02][WARNIN] there is 1 OSD down
[ceph_deploy.osd][DEBUG ] Host ceph02 is now ready for osd use.