Hello
In this video we look at using boot volumes to scale Oracle Cloud Infrastructure instances
to increase their hardware specification while keeping their system intact.
We show how to scale an instance by terminating it, but retaining its boot volume.
We will then create a new instance with higher shape specification and attach the retained
boot volume to it.
So lets look at scaling an Oracle Linux instance in our Oracle Cloud Infrastructure.
Here on the console, on the instances list, we see the working instance that we want to
scale.
We click on the instance name to view its details.
Scrolling down to the shape configuration section, we see the current shape for this
instance showing VM Standard E4 Flex, which has 1 OCPU and 16 gigabytes of RAM.
Under Resources we select Boot volume.
We see the name of the attached boot volume mor-ol7-101.
There are a number of places to terminate an instance, here we scroll up and click the
More Options drop down.
We select Terminate.
The confirmation dialog offers the option to permanently delete the attached boot volume
of the instance.
In order to be able to reuse this boot volume, we leave the default selection of not deleting
the boot volume by leaving the selection unchecked.
We click Terminate instance.
Back on the instance details screen we see it has started terminating, and after a few
minutes it is terminated.
To create our new instance we click on Instances in the breadcrumbs menu to return to the instance
list.
We select Create instance.
And name the new instance will be mor-ol7-102.
We will select the same administrative domain as the old instance, AD3.
Scrolling down to the Image and shape section, in the Image section we see the default Linux
image assigned to a new instance.
We want to use the boot volume from our previous instance so we select Change image.
From the Image source drop down we select Boot volumes.
The table offers us the list of available boot volumes, and we can see our mor-ol7-101
boot volume.
We click the tick box beside our volume name to select it, and then Select image to assign
it.
We now see the name of the boot volume for our instance.
In the shape section we see the default assigned shape of VM Standard E4 Flex.
Here we will change to a higher spec shape by selecting Change shape.
We have a number of options to select a new shape type and spec, and our service limits
will effect what we can choose.
But I just want to increase the OCPU count and RAM to show our new instance will have
a higher spec than the old instance.
Using the customize section I input 2 for the OCPU count.
This automatically increased the RAM from 16 to 32 gigabytes, which also what we want
here.
We accept these settings by clicking Select shape.
Our instance now shows it will use a shape of 2 OCPUs and 32 gigabytes of RAM.
TO finish off our instance setup, We will associate it with the same compartment and
network as our old instance.
So I select Change compartment for the virtual cloud network and choose the network name
Networks.
We are given the default name being used for this compartment.
I do the same for Subnet, change the compartment and select Networks.
Which gives us the correct subnet name for our instance here.
I upload the public SSH key file to be used.
Leaving everything else as default we click on Create to start provisioning the new instance.
In the instance details we can see in the Shape configuration section the new shape
spec.
Under the Resources section, we select Boot volume.
And here we can see the name of the boot volume used, which is the volume previously used
in the old instance.
So we have now recreated the old instance with a higher shape specification by using
its boot volume to create a new instance.
Thats the end of the video, remember, for lots more free videos about all aspects of
working with Linux on Oracle Cloud Infrastructure, check out this extensive library of content
covering a wide range of deployment and administrative topics.
Thanks for watching.