diff --git a/ceph-osd-activate-all b/ceph-osd-activate-all index 713a311..bd9a340 100755 --- a/ceph-osd-activate-all +++ b/ceph-osd-activate-all @@ -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"