Feature #41777 ยป ceph-osd-prestart.sh.patch
/usr/lib/ceph/ceph-osd-prestart.sh 2019-09-11 16:56:53.656769945 +0200 | ||
---|---|---|
fi
|
||
fi
|
||
# udev rules ignore non-GPT partition, and/or direct symlinked ones; chown directly - see https://tracker.ceph.com/issues/41777
|
||
if [ -L "$journal" -a -e "$journal" ]; then
|
||
dev_journal=`readlink -f $journal`
|
||
owner=`stat -c %U $dev_journal`
|
||
if [ $owner != 'ceph' ]; then
|
||
echo "ceph-osd(${cluster:-ceph}-$id): journal probably manually symlinked, fixing permission." 1>&2
|
||
chown ceph: $dev_journal
|
||
fi
|
||
fi
|
||
# ensure ownership is correct
|
||
owner=`stat -c %U $data/.`
|
||
if [ $owner != 'ceph' -a $owner != 'root' ]; then
|