Add chown call
This commit is contained in:
parent
cd9e855942
commit
408cb7420d
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@ tmpdir=$(mktemp -d)
|
||||||
for dev in $(fdisk -l | awk '$6 ~/Ceph/ { print $1 }'); do
|
for dev in $(fdisk -l | awk '$6 ~/Ceph/ { print $1 }'); do
|
||||||
mount "$dev" "$tmpdir"
|
mount "$dev" "$tmpdir"
|
||||||
id=$(cat "${tmpdir}/whoami")
|
id=$(cat "${tmpdir}/whoami")
|
||||||
|
|
||||||
|
# Chown the dev device to be accessible for ceph
|
||||||
|
chown ceph:ceph "${tmpdir}/block
|
||||||
|
|
||||||
umount "$dev"
|
umount "$dev"
|
||||||
|
|
||||||
dir="/var/lib/ceph/osd/ceph-$id"
|
dir="/var/lib/ceph/osd/ceph-$id"
|
||||||
|
|
Loading…
Reference in a new issue