I have a Linux (Virtual) Machine that is running into a storage problem. There is a disk called vda that is split into three partitions, vda1, vda2, and vda3. Originally, vda only had a storage capacity of 25GB but I've increased it to 150GB in light of the problem I'm having - the partition vda1 that is mounted as / maxed out its storage (~22GB).
[root@servername ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 150G 0 disk
├─vda1 253:1 0 21.5G 0 part /
├─vda2 253:2 0 2.5G 0 part [SWAP]
└─vda3 253:3 0 1G 0 part /boot
Since I've increased the size of this disk now to 150GB, how can I extend the size of the partition vda1 that is mounted to /, without ruining (or potentially ruining) the machine or without ruining the /boot mount on partition vda3?
More details:
vda1 extends from 5 to 88410 of 616809
vda2 extends from 88410 to 98690 of 616809
vda3 extends from 98690 to 102802 of 616809
This virtual machine is running Rocky Linux 8, if that is useful.
Extra ramblings:
I worry that if I just create a new large partition (say vda4), then copy the data from vda1 to vda4, then unmount vda1 from \ to re-mount vda4 as \... I'll run into a problem where my machine will not have a \ mount for that brief time beteween unmounting and remounting and everything will break.
Frighteningly, I am the single Linux admin person for my department with zero formal Linux admin training. I'm learning as I go and have figured some things out on my own, but Linux admin is a small part of my job so I'm struggling with this! And also reaaaaally not wanting to have to rebuild a whole machine if this goes down.
I've looked over other questions like this one, but those answers (seemed to) assume that the partition wanted to be extended was at the end of a disk, like vda3 is. And I'm really worried about it! I really don't want to mess this up.
There is a question here from 2016 - is the process from there the same as I want to do here? Will my system be messed up while / is moved?