ungleich-tools/ceph-pool-create

13 lines
179 B
Text
Raw Normal View History

2018-02-16 23:50:07 +01:00
#!/bin/sh
2018-02-18 21:48:29 +01:00
if [ $# -ne 2 ]; then
echo "$0 name pgs"
exit 1
fi
2018-02-16 23:50:07 +01:00
2018-02-18 21:48:29 +01:00
name=$1; shift
pg=$1;shift
2018-02-16 23:50:07 +01:00
2018-02-18 21:48:29 +01:00
ceph osd pool create "$name" "$pg"
ceph osd pool application enable "$name" rbd