From 8f777acf420600ac79c56921531bb370cd40a3fd Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 18 Feb 2018 21:48:29 +0100 Subject: [PATCH] Allow pool creation --- ceph-keyring-create-initial | 2 +- ceph-pool-create | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ceph-keyring-create-initial b/ceph-keyring-create-initial index cf81d3d..43d4eb9 100755 --- a/ceph-keyring-create-initial +++ b/ceph-keyring-create-initial @@ -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 *' diff --git a/ceph-pool-create b/ceph-pool-create index 891347e..197c9e1 100755 --- a/ceph-pool-create +++ b/ceph-pool-create @@ -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