Ops Block Volume

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Practice: Create, Attach, Detach and Resize a Block

Volume

Try this hands-on lab with the Oracle Cloud Free Tier. If you do not have a free
account, click here to get one.

Overview
In this practice, you will create a block volume.

Tasks
1. Log in to your Oracle Cloud Free Tier Account

2. Click Menu in the top-left corner and navigate to Menu > Storage > Block Volume.
3. Click Create Block Volume and enter the following details:
 Name: OCI_BV
 Compartment: Ensure your Compartment has been selected.
 Availability Domain: It must be the same as the AD you chose for your instance.
 Size: Set size to 50 GB.
 Compartment for Backup Policies: Ensure your Compartment has been selected.
 Backup Policy: Bronze
 Cross Region Replication: Off
 Encryption: Go with the default option of Encryption using Oracle-Managed Keys.
Note: The size must be between 50 GB and 32 TB. You can choose in 1 GB increments
within this range. The default is 1024 GB.

Review the screenshot in the next page and then go to the next step, where you will create
the block volume.
4. Leave the tag options as is and click Create Block Volume.

Copyright © 2021, Oracle and/or its affiliates.

Oracle Cloud Infrastructure Operations Associate Workshop 1


5. The volume will be ready to attach after the status change from PROVISIONING to
AVAILABLE.

Copyright © 2021, Oracle and/or its affiliates.

2 Oracle Cloud Infrastructure Operations Associate Workshop


Practice: Resize a Block Volume

Overview
In this practice, you will resize a block volume.

Tasks
1. Log in to your Oracle Cloud Free Tier Account.

2. Click Menu in the top-left corner and navigate to Menu > Storage > Block Volume.
3. Select the Block Volume you want to resize.
4. On the Block Volume details page, click Edit to resize the block volume.

5. Increase the Volume Size (in GB).


6. Increase the value of VPU to increase the performance.
7. Select the Backup Policy as Bronze.
8. Click Save Changes.

Copyright © 2021, Oracle and/or its affiliates.

Oracle Cloud Infrastructure Operations Associate Workshop 3


Practice: Attach a Block Volume to a Compute Instance

Overview
In this practice, you will attach a newly created block volume to a compute instance.

Tasks
1. After the block volume is created, you can attach it to your compute instance.
2. Go to Menu > Compute > Instances. Ensure your Compartment is selected.
3. From the list of compute instances, click your oci_compute instance.
4. On your compute instance details page, scroll down and navigate to the Resources
section on the left hand side.
5. Click the Attached Block Volumes link. Currently, you do not have any volumes attached
to your compute instance.
6. Click Attach Block Volume to add the newly created volume.

7. Select the volume created from the drop-down menu and choose the following options:
 Attachment mode: Let Oracle Cloud Infrastructure choose the best attachment type.
 Volume: Select the Volume.
 Block Volume Compartment: Ensure your Compartment has been selected.
 Block Volume: Select the volume you created.
 Device Path: Select /dev/oracleoci/oraclevdb
 Access: Read/Write
 Click Attach.

Copyright © 2021, Oracle and/or its affiliates.

4 Oracle Cloud Infrastructure Operations Associate Workshop


Note the message upon clicking Attach:

Click Close.
8. After the volume is attached, it will be displayed like this:

Copyright © 2021, Oracle and/or its affiliates.

Oracle Cloud Infrastructure Operations Associate Workshop 5


Practice: Detach a Block Volume

Overview
In this practice, you will detach a block volume.

Tasks
1. Go to Menu > Compute > Instances. Ensure your Compartment is selected.
2. From the list of compute instances, click your oci_compute instance.
3. On your compute instance details page, scroll down and navigate to the Resources
section on the left hand side.
4. Click the Attached Block Volumes link.
Click the action button and then click Detach.

5. Click Continue Detachment.


6. Click ok in the confirmation box.

Copyright © 2021, Oracle and/or its affiliates.

6 Oracle Cloud Infrastructure Operations Associate Workshop

You might also like