miércoles, 31 de octubre de 2018

How to attach a new Block Volume to an Instance in Oracle Cloud Infrastructure (OCI)

We will start from the "Dashboard Page":




Click in the menu in the upper left corner and then click in "Block Storage -> Block Volumes":



Select the right Compartment and then Click in the button "Create Block Volume":


Fill up all the information required and then click in the button "Create Block Volume":


I am using "Backup Policy" Bronze. The available values are:


If you don't know what each option means, you can read the following:

Source: https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm

The Block Volume will be listed in status "Provisioning":


After some minutes, the Block Volume will be listed in status "Available":


Once the Block Volume was created, the next step is to attach it to an Instance. To do so, click in the menu in the upper left corner and then "Compute -> Instances":


All the instances will be listed, click in the Instance you want to attach the Block Volume to:


Click in the section "Attached Block Volumes" and then Click in the button "Attach Block Volume":


Select "iSCSI", the Compartment where the Block Volume is stored and the Block Volume name that you want to attach. Select the permissions you want for this Block Volume:


A message will be displayed, just click in "Close":


The Block Volume will be listed in the section "Attached Block Volumes", if you want to see further information about this Block Volume click in "View Block Volume Details":


You will se something like the following:


Next step is to run the "iSCSI attach commands" at the OS level, to do so click in "iSCSI Commands & Information":


You will see the commands to attach and to detach.


Copy "attach command" (each of the three lines) and past them one by one in a terminal connected via SSH to your Instance.




You should see now the Block Volume already registered in the OS:


Next step is to format the Disk and also to mount it:


No hay comentarios:

Publicar un comentario

Oracle ACE Director Award - Deiby Gómez

Thanks #OracleACE Program for this awesome certificate recognizing the work I have done in the community for the last year. Looking forwa...