diff --git a/ceph/ceph-osd-activate-all b/ceph/ceph-osd-activate-all index 8f696de..4a69fa0 100755 --- a/ceph/ceph-osd-activate-all +++ b/ceph/ceph-osd-activate-all @@ -9,6 +9,10 @@ tmpdir=$(mktemp -d) # XFS based partition scheme for dev in $(fdisk -l | awk '$6 ~/Ceph/ { print $1 }'); do + if mount | grep ^$dev ; then + echo Skipping $dev, already mounted + continue + fi mount "$dev" "$tmpdir" id=$(cat "${tmpdir}/whoami")