Posts on Security, Cloud, DevOps, Citrix, VMware and others.
Words and views are my own and do not reflect on my companies views.
Disclaimer: some of the links on this site are affiliate links, if you click on them and make a purchase, I make a commission.
First, we create a pool .rgw.buckets.custom, with, for example, some specific parameters (different size and different ruleset in crushmap) :
12345678
$ ceph osd pool create .rgw.buckets.custom 64 64 pool '.rgw.buckets.custom' created $ ceph osd pool set .rgw.buckets.custom size 2 set pool 59 size to 2 $ ceph osd pool set .rgw.buckets.custom crush_ruleset 6 set pool 59 crush_ruleset to 6
Then, we need to configure a specific placement_targets in region map and zone. For next step, you need to have a running config of rados-gw…
12
$ radosgw-admin region get > region.conf.json $ vim region.conf.json # Add an entry in placement_targets
$ radosgw-admin zone set <zone.conf.json 2014-11-25 18:03:23.894153 7f728c0f2780 0 couldn't find old data placement pools config, setting up new ones for the zone .....
$ s3cmd mb s3://custombucket --bucket-location=custom-placement Bucket 'custombucket' created $ touch "file_on_custom_pool"$ s3cmd put file_on_custom_pool s3://custombucket WARNING: Module python-magic is not available. Guessing MIME types based on file extensions. file_on_custom_pool -> s3://custombucket/file_on_custom_pool [1 of 1] 0 of 0 0% in 0s 0.00 B/s done
No comments:
Post a Comment