3.2. Overriding the default backing store
You can use the manualDefaultBackingStore flag to override the default NooBaa backing store and remove it if you do not want to use the default backing store configuration. This provides flexibility to customize your backing store configuration and tailor it to your specific needs. By leveraging this feature, you can further optimize your system and enhance its performance.
Prerequisites
- Openshift Container Platform with OpenShift Data Foundation operator installed.
Download the Multicloud Object Gateway (MCG) command-line interface binary from the customer portal and make it executable.
注意Choose the correct product variant according to your architecture. Available platforms are Linux(x86_64), Windows, and Mac OS.
Procedure
Check if
noobaa-default-backing-storeis present:$ oc get backingstore NAME TYPE PHASE AGE noobaa-default-backing-store pv-pool Creating 102sPatch the NooBaa CR to enable
manualDefaultBackingStore:$ oc patch noobaa/noobaa --type json --patch='[{"op":"add","path":"/spec/manualDefaultBackingStore","value":true}]'重要Use the Multicloud Object Gateway CLI to create a new backing store and update accounts.
Create a new default backing store to override the default backing store. For example:
$ noobaa backingstore create pv-pool _NEW-DEFAULT-BACKING-STORE_ --num-volumes 1 --pv-size-gb 16-
Replace
NEW-DEFAULT-BACKING-STOREwith the name you want for your new default backing store.
-
Replace
Update the admin account to use the new default backing store as its default resource:
$ noobaa account update admin@noobaa.io --new_default_resource=_NEW-DEFAULT-BACKING-STORE_Replace
NEW-DEFAULT-BACKING-STOREwith the name of the backing store from the previous step.Updating the default resource for admin accounts ensures that the new configuration is used throughout your system.
Configure the default-bucketclass to use the new default backingstore:
$ oc patch Bucketclass noobaa-default-bucket-class -n openshift-storage --type=json --patch='[{"op": "replace", "path": "/spec/placementPolicy/tiers/0/backingStores/0", "value": "NEW-DEFAULT-BACKING-STORE"}]'Optional: Delete the noobaa-default-backing-store.
-
Delete all instances of and buckets associated with
noobaa-default-backing-storeand update the accounts using it as resource. Delete the noobaa-default-backing-store:
$ oc delete backingstore noobaa-default-backing-store -n openshift-storage | oc patch -n openshift-storage backingstore/noobaa-default-backing-store --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]'You must enable the
manualDefaultBackingStoreflag before proceeding. Additionally, it is crucial to update all accounts that use the default resource and delete all instances of and buckets associated with the default backing store to ensure a smooth transition.
-
Delete all instances of and buckets associated with