If you have a subscription to the Database Cloud Service (DBCS), a tenant user can create storage volumes on the external storage appliance.
Note:
You can run all the commands in this procedure as a tenant user.Note:
You can only run single node Oracle databases on Oracle Compute Cloud Service on OPCM using customer-owned externally connected storage over 10 GbE. The internal block storage of OPCM cannot be used for databases running on Oracle Compute Cloud Service instances.If you are deploying a legacy database instance on an Oracle Compute Cloud Service instance, Oracle recommends that you follow this mapping when creating storage volumes.
The following table lists the storage volumes created for a DBCS instance and the storage property that is associated with each volume. Oracle recommends that you similarly map the storage volumes for your instance.
| Storage Volume | Description | Storage Property |
|---|---|---|
|
|
Boot disk that hosts the Operating System. |
|
|
|
Hosts the Oracle database software. |
|
|
|
Hosts the redo log. |
|
|
|
Used for the files of the database. |
|
|
|
Used for flash recovery. |
|
Sample JSON files for a Database Deployment:
In the following samples, we will use two orchestrations to deploy a database:
Resources orchestration: Deploys the storage volumes and instance for the database.
Launch plan orchestration: Links and launches the objects.
Sample Resources Orchestration
{
"name": "/tenant1/public/sample1-resources",
"oplans": [
{
"objects": [
{
"imagelist_entry": "1",
"name": "/tenant1/public/sample1-boot",
"imagelist": "/oracle/public/linux6_16.3.1_64",
"properties": [
"/oracle/public/storage/default"
],
"size": "32GB",
"bootable": "True"
}
],
"label": "sample1-boot",
"obj_type": "storage/volume"
},
{
"objects": [
{
"name": "/tenant1/public/sample1-data",
"properties": [
"/oracle/public/storage/throughput"
],
"size": "25G",
"bootable": "False"
}
],
"label": "sample1-data",
"obj_type": "storage/volume"
},
{
"objects": [
{
"name": "/tenant1/public/sample1-fra",
"properties": [
"/oracle/public/storage/throughput"
],
"size": "10G",
"bootable": "False"
}
],
"label": "sample1-fra",
"obj_type": "storage/volume"
},
{
"objects": [
{
"name": "/tenant1/public/sample1-bits",
"properties": [
"/oracle/public/storage/latency"
],
"size": "30G",
"bootable": "False"
}
],
"label": "sample1-bits",
"obj_type": "storage/volume"
},
{
"objects": [
{
"name": "/tenant1/public/sample1-redo",
"properties": [
"/oracle/public/storage/latency"
],
"size": "10G",
"bootable": "False"
}
],
"label": "sample1-redo",
"obj_type": "storage/volume"
}
],
"description": "Resources orch for instance sample1"
}
Sample Launch Plan JSON
{
"relationships": [],
"name": "/tenant1/public/sample1-launch",
"oplans": [
{
"ha_policy": "monitor",
"objects": [
{
"instances": [
{
"name": "/tenant1/public/sample1_instname",
"virtio": "false",
"storage_attachments": [
{
"index": 1,
"volume": "/tenant1/public/sample1-boot"
},
{
"index": 2,
"volume": "/tenant1/public/sample1-bits"
},
{
"index": 3,
"volume": "/tenant1/public/sample1-data"
},
{
"index": 4,
"volume": "/tenant1/public/sample1-fra"
},
{
"index": 5,
"volume": "/tenant1/public/sample1-redo"
}
],
"tags": [],
"boot_order": [
1
],
"shape": "oc3",
"label": "sample1",
"networking": {
"net0": {
"vnet": "/tenant1/public/eoib-network",
"options": {
"default_gateway": "true",
"hostname": "sample1",
"dns": {
"search_domains": "example.com",
"servers": "10.10.10.7,10.10.10.8"
}
}
}
}
}
],
"relationships": []
}
],
"label": "sample1-launch",
"obj_type": "launchplan"
}
],
"description": "Orchestration for instance sample1"
}
You can create a storage volume on the external storage volume using the CLI by specifying one of the following storage properties:
To create a storage volume on the latency pool of the external storage appliance, use the following command:
oracle-compute add storagevolume name size /oracle/public/storage/latency [--description] [--source_storagevolume_name] [--imagelist] [--imagelist_entry] [--tags] [--quota]
To create a storage volume on the throughput pool of the external storage appliance, use the following command:
oracle-compute add storagevolume name size /oracle/public/storage/throughput [--description] [--source_storagevolume_name] [--imagelist] [--imagelist_entry] [--tags] [--quota]
For more information, see CLI Reference for Oracle Compute Cloud Service.
To create a storage volume using the API, use the POST https://api.oc.example.com/storage/volume/ method. In the properties parameter, specify either /oracle/public/storage/latency or /oracle/public/storage/throughput.
For more information, see REST API Reference for Oracle Compute Cloud Service.