Before you perform a restore operation, you need to create the resources required for the tenant to be restored.
Considerations
Before you perform a restore operation, make sure to confirm the version of the backup data to be restored. Generally, the supported backup data versions for restore are consistent with the upgrade path of the OceanBase cluster (the sequence of versions that can be directly upgraded). For more information about the upgrade path of OceanBase clusters, see Overview.
Prepare for restore
Log in to the
systenant of the cluster as therootuser.Create a unit (resource unit).
Here is an example:
obclient [(none)]> CREATE RESOURCE UNIT box_16c96g MAX_CPU 16, MEMORY_SIZE = '5G', MAX_IOPS 10240, MIN_IOPS=10240;For more information about how to create a resource unit, see Create a tenant.
Create a resource pool.
When creating the resource pool for the tenant to be restored, it is recommended to keep it consistent with the source tenant. That is, the number of
unit_numin the resource pool of the tenant to be restored should be the same as that in the source tenant.Here is an example:
obclient [(none)]> CREATE RESOURCE POOL restore_pool unit = 'box_16c96g', unit_num = 1, zone_list = ('z1','z2','z3');For more information about how to create a resource pool, see Create a tenant.
