ceph: on activation, skip already mounted OSDs
This commit is contained in:
parent
9aaf1eb733
commit
2dcfce1035
1 changed files with 4 additions and 0 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue