I would like to clear up this doubt, which for me (beginner) is a little complicated.
How do I expand an SSD in Rocky Linux 9, I have a contract server at the company Contabo, and I requested an increase in storage and they told me to run some commands, as per the link below:
A physical SSD (and HDD) has fixed size. However, a (VPS) server may be offered one (or more) block(s) from some larger storage system, a “volume”, whose size can be changed later. The volume looks like SSD/HDD.
“Partitions” – consecutive blocks – are allocated from the drive/volume. There is also “partition table” on the volume that lists which part of the volume belongs to what partition. Within the part of volume that is one partition there is then data and metadata of one “filesystem” (or something else, like LVM). Regardless of details, filesystems are mounted. One filesystem starts from /. Others look like they were subdirectories within. (E.g. /, /boot, and /boot/efi are usually three different filesystems, while /usr is a real subdirectory of /, and /boot/loader is a real subdirectory of /boot.)
The (simple) resize requires that there are additional, unallocated sectors on the volume after the partition that should get bigger. Partition table is updated to state that the end of that partition is later than now. That makes it bigger. Then one has to also tell the filesystem that it can use more sectors than now, so it starts to use all the sectors of the partition.