Posts

Showing posts with the label oci

Oracle Cloud Infrastructure- Create VCN + Compute Ubuntu Linux 18.04

Image
In this post, I'll demonstrate how to create a new VCN (Virtual Cloud Network) with Internet Gateway+ NAT Gateway + Service Gateway followed by the creation of a new compute instance with Ubuntu 18.04. Environment In order to create a new compute instance in oracle cloud, there are few prerequisites- A valid OCI account A virtual Cloud network Optional SSH keys in case you want your own keys to be used Below is the network diagram of the virtual cloud network with the schematic wizard provided by OCI for quick setup of a VCN- Steps to achieve So, let's login to your OCI console and navigate to Networking >> Overview from the left navigation panel. From the right-side panel, click on start VCN wizard as shown below- This will open a web form to provide basic details like- VCN name and rest of the things are provided as default as shown below- Further, click on next and the Create. Once created, the VCN details look as shown below. So, this way our VCN is ready. We should n...

Oracle Cloud Infrastructure- Changing root partition of Oracle Linux instance 7.8

Image
In this post, I'll describe a problem in OCI with respect to storage extension and possible solution with stepwise implementation process. Scenario I have provisioned a new compute instance with a default setting including the boot volume size of OCI i.e.  46.6 GB. The partition available to root ( / ) became ~39 GB post OS installation.  Requirement A requirement came where I need at least 100GB in my root ( / ) so the installation of that necessary production should go under respective directories viz. /opt or /u01 etc.  Approach I have figured out two approaches- Increase the boot volume size to a higher value and use Linux growpart to increase the size for root ( / ). Attach a new block volume with required capacity and mount it to required location viz   /opt or /u01 etc.  Solution This article considers the first approach. For the second approach, check out my this post  w...

Oracle Cloud Infrastructure- Adding a block volume and use it for swap

Image
Hello everyone, this is my first blog on Oracle Cloud Infrastructure. Requirement To increase Swap of existing compute instance with a new block volume in OCI. Prerequisite A valid OCI account with available credits Steps to Achieve 1. Create a new block volume 550GB 2. Attach the block volume to the instance 3. Execute iscsi commands and verify the disk attachment provided by OCI ls -l /dev/orcleoci/ 4. Do partitioning of the disk to 120GB for swap      Making the swap partition of required space 120GB fdisk <NEWLY_ADDED_DISK>      Command (m for help): n      Partition number (1-4): 2      Command (m for help): t      Hex code (type L to list codes): 82      Command (m for help): w      ls -l /dev/orcleoci/ 5. Executing necessary commands to check the space and mount the new swap- Check disks      lsblk Make Swap      mkswap -L sasswap2 /de...