Hello and welcome to this video on Oracle Private Cloud Appliance.
In this video, you will learn how to create, attach, update, clone, detach, and
delete a block volume.
A block volume is a detachable block storage device that allows you to
dynamically expand the storage capacity of an instance.
Block volumes provide high-performance network storage capacity that supports
a broad range of input output intensive workloads.
Let's get started and create a block volume.
I have already installed the OCI CLI so please refer to the video, "Installing
OCI CLI video".
Next, create a block volume by running the command:
oci bv volume create --availability-domain
--compartment-id
Let's verify the new block volume was created by turning to the web interface.
From the dashboard, click on the hamburger menu then Block Storage and then
Block Volumes.
As you can see the new block volume was created and is available for attaching
to a compute instance.
Let's now return to the oci command line interface.
Before we can attach a block volume to a compute instance, we'll need to
lookup and retrieve the available compute instances in our compartment.
Run the command:
Let's now attach the new block volume to my-instance-01 compute instance.
Use the following command:
$ oci compute volume-attachment attach --instance-id --volume-id
--type paravirtualized
Let's once again verify that the volume was attached to the my-instance-01 compute instances
by revisiting the web interface.
Click the hamburger menu then Compute then Instances.
Click on my-instance-01 and as you can see the volume was attached successfully
to the compute instance.
Let's update the volume's configuration by changing the volume's name by
running:
oci bv volume update --volume-id ocid --display-name my-bv-01
Let's return to the web interface and verify the name of block volume changed.
Click on the menu then Block Storage then block volumes.
As we can see, the display name of the block volume has changed to my-bv-01.
To make a copy or to clone a block volume, use the command:
oci bv volume create --availability-domain --compartment-id
--source-volume-id --display-name my-bv-02
Returning to the PCA web interface, we can see the newly cloned block volume called my-bv-02.
Let's now detach our attached block volume by clicking on the menu again then
Compute then Instances.
Click on my-instance-01 and under Attached Block Volumes click on the three dots
under Actions.
Click Detach and then click Confirm to confirm the detachment.
After a few seconds, the screen refreshes and confirms that the volume has been
detached.
And now finally, let's delete the block volume by clicking on the hamburger menu
once again, then Block Storage then Block Volumes.
Under actions, click the three dots for our block volume to delete.
Select Terminate, then click Confirm to terminate the Block Volume.
After a few seconds, our screen updates and shows that the block volume was
terminated.
For more information, please check our additional information on Oracle Private
Cloud Appliance documentation or in the Oracle Private Cloud Appliance Learning
Library.
This concludes the video.
Thank you for watching.