• 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

Steps to Attach Additional 200 GB Storage in OCI


Step 1: Create a New Block Volume

  1. Log in to OCI Console:
    Go to the OCI Console.

  2. Navigate to Block Volumes:
    From the navigation menu, select Storage > Block Storage > Block Volumes.

  3. Create a New Volume:

    • Click Create Block Volume.
    • Provide the following details:
      • Name: Enter a name for the block volume (e.g., additional-storage).
      • Availability Domain: Select the same availability domain as your instance.
      • Size: Enter 200 GB.
      • Performance: Choose the performance 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 navigation menu.
    • Click on your instance to open its details page.
  2. Attach the Block Volume:

    • On the instance details page, click Attached Block Volumes.
    • Click Attach Block Volume and provide the following:
      • Attachment Type: Use Paravirtualized or iSCSI (default: Paravirtualized).
      • Block Volume: Select the 200 GB block volume you created earlier.
    • Click Attach.

Step 3: Configure the Volume on the Instance

Once the block volume is attached, configure it on the compute instance.

  1. Log in to the Instance:
    Use SSH to connect to your instance.

  2. Identify the New Volume:
    Run the command to list available disks:

    lsblk
    

    The new disk should appear (e.g., /dev/sdb).

  3. Partition and Format the Volume:

    • Partition the disk (if needed):
      sudo fdisk /dev/sdb
      
    • Format the partition with the ext4 file system:
      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. Update /etc/fstab (Optional):
    To make the volume mount automatically at boot, add an entry to /etc/fstab:

    echo '/dev/sdb /mnt/additional-storage ext4 defaults 0 0' | sudo tee -a /etc/fstab
    

Outcome

You now have an additional 200 GB storage attached to your OCI instance and ready for use! ?


Let me know if you need further assistance! ?