Allow pool creation
This commit is contained in:
parent
fc1daf8621
commit
8f777acf42
2 changed files with 9 additions and 4 deletions
|
@ -15,4 +15,4 @@ ceph-authtool "$fname" --gen-key -n client.admin \
|
|||
--cap mon 'allow *' \
|
||||
--cap osd 'allow *' \
|
||||
--cap mgr 'allow *' \
|
||||
--cap mds 'allow'
|
||||
--cap mds 'allow *'
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
pool=$1; shift
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "$0 name pgs"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "This script is not finished to create pool $pool"
|
||||
|
||||
exit 1
|
||||
name=$1; shift
|
||||
pg=$1;shift
|
||||
|
||||
ceph osd pool application enable
|
||||
ceph osd pool create "$name" "$pg"
|
||||
ceph osd pool application enable "$name" rbd
|
||||
|
|
Loading…
Reference in a new issue