File: oci-fix-ceph-dm-perms

package info (click to toggle)
openstack-cluster-installer 43.0.26
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,572 kB
  • sloc: php: 19,169; sh: 18,260; ruby: 75; makefile: 31; xml: 8
file content (17 lines) | stat: -rwxr-xr-x 350 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh

# Device mappers are pointing to dm devices like this:
# /dev/mapper/osdvg102-conf102 -> ../dm-2
# /dev/mapper/osdvg102-data102 -> ../dm-3

if [ $# -ne 1 ] ; then
	echo "usage: $0 <ceph-osd-id>"
	exit 1
fi

ID=$1

data=$(realpath /dev/mapper/osdvg${ID}-conf${ID})
conf=$(realpath /dev/mapper/osdvg${ID}-data${ID})

chown ceph $data $conf