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, in addition to restore within the same version, other supported backup data versions for restore are consistent with the OceanBase cluster upgrade path (the sequence of versions that can be directly upgraded). For more information about the OceanBase cluster upgrade path, see Upgrade overview.
Prepare before 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 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 original 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 original 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.
