From: Sage Weil Date: Fri, 15 Feb 2013 01:04:55 +0000 (-0800) Subject: ceph-disk-prepare: do partprobe after setting final partition type X-Git-Tag: v0.58~51^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=95835de9f80712eb26652ac6b66ba9c5eeb093d6;p=ceph.git ceph-disk-prepare: do partprobe after setting final partition type This is necessary to kick udev into processing the updated partition and running its rules. Signed-off-by: Sage Weil --- diff --git a/src/ceph-disk-prepare b/src/ceph-disk-prepare index a31ba79cbddb..6670a5281031 100755 --- a/src/ceph-disk-prepare +++ b/src/ceph-disk-prepare @@ -566,6 +566,13 @@ def prepare_dev( data, ], ) + subprocess.check_call( + args=[ + # also make sure the kernel refreshes the new table + 'partprobe', + data, + ], + ) except subprocess.CalledProcessError as e: raise PrepareError(e)