Hi,
I'm using the following procedure to resize (e. g. expand) a VM:
Datacenter > sd-155842 > Oracle-Linux-7.9 > Hard disk > Resize disk > Size Increment (GB) : 10
Start the VM and connect to it.
Note : /dev/sda3 is the last partition on the disk and sports an ext4 filesystem.
Q1: is this a trivial procedure that can be used without even giving it a thought or is there some potential risk of data loss?
Q2: Can this procedure be somehow reversed without having to jump through burning loops, e. g. shrink the root partition when there's (too) much space available?
Cheers,
Niki
I'm using the following procedure to resize (e. g. expand) a VM:
Datacenter > sd-155842 > Oracle-Linux-7.9 > Hard disk > Resize disk > Size Increment (GB) : 10
Start the VM and connect to it.
Code:
# yum install cloud-utils-growpart
# lsblk
# growpart -v /dev/sda 3
# resize2fs /dev/sda3
Note : /dev/sda3 is the last partition on the disk and sports an ext4 filesystem.
Q1: is this a trivial procedure that can be used without even giving it a thought or is there some potential risk of data loss?
Q2: Can this procedure be somehow reversed without having to jump through burning loops, e. g. shrink the root partition when there's (too) much space available?
Cheers,
Niki