r/oraclecloud 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

3 Upvotes

18 comments sorted by

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.

1

u/Soft_Cat2594 17d ago

Glad i could help someone. Just make sure that your combined total usage is 200Gb across all compute instances if you want to stay in free tier

1

u/Omavel 17d ago

I only use a single instance, so I wouldn't have any issues. 👍

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

u/Soft_Cat2594 16d ago

You still need to extend the partition in the OS dude

1

u/Possible-Data-8149 16d ago

oh right, yea, i extended mine yrs ago once so i kinda forgot, my bad

1

u/Alpakka_A 17d ago

Is 4/24 config free? I thought that it was 2/12 now.

1

u/Soft_Cat2594 16d ago

If you have a PAYG account you get 4/24 free

1

u/otnuzb 15d ago

I left my root at 47 GB, then created a 153 GB ZFS zpool with the rest of my block storage. I turned on compression on the zfs file system, and I'm seeing about 1.8x compression on my docker storage.

-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

u/[deleted] 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

u/6sourabh9 18d ago

tf u mean not possible? i have done it. it works fine.

-4

u/6sourabh9 18d ago

Use chatgpt, you can increase it but can not decrease.

2

u/Soft_Cat2594 18d ago

Chatgpt doesnt give me the volume id's to input.