chown -R ceph:ceph $1 is easy enough.
Signed-off-by: Sage Weil <sage@redhat.com>
#. Fix the ownership. E.g.,::
chown -R ceph:ceph /var/lib/ceph/mon/ceph-foo
- ceph-disk chown /dev/sdb1
+ chown -R ceph:ceph /var/lib/ceph/osd/ceph-123
#. Restart the daemon(s)
owner=`stat -c %U $data/.`
if [ $owner != 'ceph' -a $owner != 'root' ]; then
echo "ceph-osd data dir $data is not owned by 'ceph' or 'root'"
- echo "you must 'ceph-disk chown ...' or similar to fix ownership"
+ echo "you must 'chown -R ceph:ceph ...' or similar to fix ownership"
exit 1
fi