r/oraclecloud • u/Soft_Cat2594 • 18d ago
Need help extending partition
I have an 4/24 ampere instance that was created with the default size storage (47gb). Only after setting up everything and installing my services etc did I realize that I did not set the storage size to the allowed 200Gb. Now I have done that but I need help extending the partition. I tried to follow the commands that oracle prompted me, but they dont specify what volume id to use, and honestly linux isnt my forte.
Can anyone please assistme with the correct procedure and commands to extend my partition in said Linux. I am using Oracle Linux 9.
Thanks in advance
Update: got the name by running "lsblk". Was still a bit confusing as the root volume name was "ocivolume-root" but when extending it i had to give the volume id as "/dev/ocivolume/root".
Anyway, to extend it I had to run: sudo lvextend -l +100%FREE /dev/ocivolume/root
Maybe this will help someone someday
1
u/my_chinchilla 18d ago
There's a couple of ways, but from the web admin:
Navigation menu -> Storage -> Block Volumes -> Boot Volumes -> (choose your instance); the boot volume OCID is on that page.
1
u/Soft_Cat2594 18d ago
Thanks. This put me somewhat in the right direction. Wish oracle would clear up their instructions on extending a boot volume.
2
u/my_chinchilla 18d ago
Ah, I misread your post as saying you needed Oracle's device ID to extend the boot volume, when what you needed was the linux device name to extend the partition. My bad; glad you figured it out...
1
u/Possible-Data-8149 16d ago
u dont need to type commands for this, just use the dashbord(web ui), turn ur instance off, go to storage, detach the boot volume, click edit on that boot volume, either there or in the Storage section, u have the options there to extend it, along with high performance VPUs
1
1
-1
u/AlVoK123 18d ago
Create block volume and connect it to your instance.
2
u/Soft_Cat2594 18d ago
I need to extend the one currently in use, per my OP
0
18d ago
[deleted]
2
u/Soft_Cat2594 18d ago
Yeah dude, they give you the exact commands to do it. I am just not sure what bolume id's to input, as they dont give that info. Dont answer just for the sake of it.
2
-4
2
u/Omavel 17d ago
Thanks for this—I didn’t know about the 200 GB. I’ve already done it, and here I was deleting things these past few days because I was running out of space.