From 408cb7420d5104e702c30b0d34ff9b6be2fbe8ee Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 20 Feb 2018 19:12:51 +0100 Subject: [PATCH] Add chown call --- ceph-osd-activate-all | 4 ++++ 1 file changed, 4 insertions(+) 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"