Posts

Showing posts from August, 2020

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  with necessary steps as a subpart of

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 /dev/<DISK_PARTITION_ID> Check Free Memory      free -m Update fstab for permanemt changes Do UUID entry in fstab Mount it      swa