Add chown call

This commit is contained in:
Nico Schottelius 2018-02-20 19:12:51 +01:00
parent cd9e855942
commit 408cb7420d

View file

@ -10,6 +10,10 @@ tmpdir=$(mktemp -d)
for dev in $(fdisk -l | awk '$6 ~/Ceph/ { print $1 }'); do
mount "$dev" "$tmpdir"
id=$(cat "${tmpdir}/whoami")
# Chown the dev device to be accessible for ceph
chown ceph:ceph "${tmpdir}/block
umount "$dev"
dir="/var/lib/ceph/osd/ceph-$id"