Commit ba2dc37e authored by Dietmar Maurer's avatar Dietmar Maurer

ceph: try to unmount OSD after removal

parent 97a8edd8
......@@ -1249,6 +1249,12 @@ __PACKAGE__->register_method ({
print "Remove OSD $osdsection\n";
&$run_ceph_cmd(['osd', 'rm', $osdid]);
# try to unmount fro standard mount point
my $mountpoint = "/var/lib/ceph/osd/ceph-$osdid";
print "Unmount OSD $osdsection from $mountpoint\n";
eval { run_command(['umount', $mountpoint]); };
warn $@ if $@;
};
return $rpcenv->fork_worker('cephdestroyosd', $osdsection, $authuser, $worker);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment