mirror of
https://github.com/ceph/ceph
synced 2024-12-20 02:13:04 +00:00
14 lines
287 B
Bash
14 lines
287 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
touch foo.$$
|
||
|
rados mkpool foo.$$
|
||
|
poolid=$(ceph osd dump | grep "^pool" | awk '{print $2}' | tail -n 1)
|
||
|
ceph mds add_data_pool ${poolid}
|
||
|
setfattr -n ceph.file.layout.pool -v foo.$$ foo.$$
|
||
|
|
||
|
# cleanup
|
||
|
rados rmpool foo.$$ foo.$$ --yes-i-really-really-mean-it
|
||
|
rm foo.$$
|