Step 1: Create a New Block Volume
Log in to OCI Console:
Go to the OCI Console.
Navigate to Block Volumes:
From the navigation menu, select Storage > Block Storage > Block Volumes.
Create a New Volume:
additional-storage
).Locate Your Compute Instance:
Attach the Block Volume:
Once the block volume is attached, configure it on the compute instance.
Log in to the Instance:
Use SSH to connect to your instance.
Identify the New Volume:
Run the command to list available disks:
lsblk
The new disk should appear (e.g., /dev/sdb
).
Partition and Format the Volume:
sudo fdisk /dev/sdb
sudo mkfs.ext4 /dev/sdb
Mount the Volume:
sudo mkdir /mnt/additional-storage
sudo mount /dev/sdb /mnt/additional-storage
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
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! ?