45Drives Knowledge Base
KB450422 - Configuring Ceph Object Storage to use Multiple Data Pools
https://knowledgebase.45drives.com/kb/kb450422-configuring-ceph-object-storage-to-use-multiple-data-pools/

KB450422 - Configuring Ceph Object Storage to use Multiple Data Pools

Posted on April 30, 2021 by Mitchell Hall


Scope/Description

This guide will run through the process of updating the default data pool that Ceph RGW uses to store object data for buckets. If your cluster is only going to use a single EC pool to store your object data on, you can simply update the default data placement policy, however, if the end-user may want to use different pools for different buckets, you will also want to create secondary placement policies first.

Prerequisites

Steps

# radosgw-admin zonegroup list
{
"default_info": "ef9b53v64-afg5-445c-9aa2-364b98agcb43",
"zonegroups": 
}
# radosgw-admin zonegroup get --rgw-zonegroup=default > zonegroup.json
 "placement_targets": ,
"storage_classes": 
},
{
"name": "ec-placement",
"tags": [],
"storage_classes": 
},
{
"name": "default-placement",
"tags": [],
"storage_classes": 
}
],
"default_placement": "default-placement",
"realm_id": "82f0a82f-9e77-4312-a50b-1082684866fc",
"sync_policy": {
"groups": []
}
}
# radosgw-admin zonegroup set --rgw-zonegroup=default --infile zonegroup.json
# radosgw-admin zone list
{
"default_info": "7285bba5-0926-495f-867b-0a6c042b396b",
"zones": 
}
# radosgw-admin zone get --rgw-zone=default > zone.json
 "placement_pools": 
# radosgw-admin zone set --rgw-zone=default --infile zone.json

 

# systemctl restart ceph-radosgw.target

Verification

Troubleshooting

# radosgw-admin period update --commit