ungleich-tools/ceph/ceph-pool-create

13 lines
179 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
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