--- old/ceph-disk
+++ new/ceph-disk
@@ -1209,6 +1209,19 @@
journal_dm_keypath=journal_dm_keypath,
)
+ if stat.S_ISBLK(jmode):
+ # try to make sure the kernel refreshes the table. note
+ # that if this gets ebusy, we are probably racing with
+ # udev because it already updated it.. ignore failure here.
+ LOG.debug('Calling partprobe on prepared journal device %s', args.journal)
+ subprocess.call(
+ args=[
+ 'partprobe',
+ args.journal,
+ ],
+ )
+
+
# prepare data
if stat.S_ISDIR(dmode):
if args.data_dev: