• IT Training IT Training
    • Business Intelligence
    • Project Management
    • Data Analytics
    • System Testing Lite
    • System Testing Pro
  • Class X Class X
    • Chemistry
    • Physics
    • Maths
    • Computer
    • Life Science
  • Class XII Class XII
    • Maths
    • Computers
    • Physics
    • Chemistry
    • Biological Science
    • Statistics
  • BTECH BTECH
    • Maths
    • Computers
  • BSC BSC
    • Maths (General)
    • Computer Science
  • MCA MCA
    • Maths
    • Aptitude
  • MBA MBA
    • Maths
    • Aptitude
``

🚀 How to Add Additional Storage to Your OCI Instance


Looking to add storage to your Oracle Cloud Infrastructure (OCI) instance? Here’s a step-by-step guide to creating and attaching a new block volume in no time! 💾


Step 1: Create a New Block Volume

1️⃣ Log in to the OCI Console:
Head to the OCI Console.

2️⃣ Navigate to Block Volumes:
In the navigation menu, go to Storage > Block Storage > Block Volumes.

3️⃣ Create the Block Volume:

  • Click Create Block Volume.
  • Provide the following details:
    • Name: Enter a descriptive name (e.g., additional-storage).
    • Availability Domain: Select the same availability domain as your instance.
    • Size: Set to 200 GB.
    • Performance: Choose a level (Balanced, Higher, or Lower).
  • Click Create Block Volume.

Step 2: Attach the Block Volume to Your Instance

1️⃣ Locate Your Compute Instance:

  • Navigate to Compute > Instances in the OCI menu.
  • Click on the instance to open its details page.

2️⃣ Attach the Block Volume:

  • On the instance’s details page, go to Attached Block Volumes.
  • Click Attach Block Volume and fill in:
    • Attachment Type: Use Paravirtualized (default) or iSCSI.
    • Block Volume: Select the 200 GB volume created earlier.
  • Click Attach.

Step 3: Configure the Volume on Your Instance

1️⃣ Log in to the Instance:

  • Use SSH to connect to your instance.

2️⃣ Identify the New Volume:

  • Run the following command to list all available disks:
    lsblk
    
    The new volume will appear (e.g., /dev/sdb).

3️⃣ Partition and Format the Volume:

  • Partition the disk (if needed):
    sudo fdisk /dev/sdb
    
  • Format the partition with ext4:
    sudo mkfs.ext4 /dev/sdb
    

4️⃣ Mount the Volume:

  • Create a mount point:
    sudo mkdir /mnt/additional-storage
    
  • Mount the volume:
    sudo mount /dev/sdb /mnt/additional-storage
    

5️⃣ Optional: Automate Mounting at Boot:

  • Add the following entry to /etc/fstab for automatic mounting:
    echo '/dev/sdb /mnt/additional-storage ext4 defaults 0 0' | sudo tee -a /etc/fstab
    

Outcome

Congratulations! 🎉 You’ve successfully added 200 GB of additional storage to your OCI instance. The storage is now ready to use for your applications and data.


💡 Need help? Drop your questions below, and I’ll be happy to assist!

📢
#CloudComputing 🌩️ #OracleCloud ☁️ #TechHowTo 💻 #BlockStorage #ServerManagement #CloudInfrastructure