ungleich-tools/ceph-pool-create

15 lines
236 B
Text
Raw Normal View History

2018-02-16 22:50:07 +00:00
#!/bin/sh
2018-02-18 20:48:29 +00:00
if [ $# -ne 2 ]; then
echo "$0 name pgs"
exit 1
fi
2018-02-16 22:50:07 +00:00
echo "This script is not finished to create pool $pool"
2018-02-18 20:48:29 +00:00
name=$1; shift
pg=$1;shift
2018-02-16 22:50:07 +00:00
2018-02-18 20:48:29 +00:00
ceph osd pool create "$name" "$pg"
ceph osd pool application enable "$name" rbd