Before you perform a restore operation, you need to create the resources required for the tenant to be restored.
Considerations
Before performing a restore operation, you must verify the version of the backup data to be restored. Generally, apart from restore within the current version, other supported backup data versions (excluding versions such as V4.3.0, V4.3.1, and V4.3.2) are consistent with the upgrade path of the OceanBase cluster (the sequence of versions that allow direct upgrades). For detailed information about the OceanBase cluster upgrade path, see Upgrade overview. In the current version, pay special attention to the following:
Restore of backup data from V4.2.x is not currently supported.
Restore of backup data from V4.3.0 (inclusive) to V4.3.2 (inclusive) is not supported.
Procedure
Log in to the
systenant of the cluster as therootuser.Create a 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.
We recommend that you create a resource pool that is homogeneous with the resource pool of the source tenant, namely has the same number of resource units as the resource pool of 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.
