ncreasing Boot Volume Size on Oracle Cloud Free Tier using Ubuntu
1. Change to superuser
sudo su -
2. After increasing the boot volume size in oracle dash, you'll get a rescan command that will look something like this below
sudo dd iflag=direct if=/dev/oracleoci/oraclevda of=/dev/null count=1
echo "1" | sudo tee /sys/class/block/readlink /dev/oracleoci/oraclevda | cut -d'/' -f 2
/device/rescan
3. grow the partition (note: there is a space between sda and 1 here)
growpart /dev/sda 1
4. resize the filesystem (note: there is no space on sda1 this time
resize2fs /dev/sda1
you can confirm by checking disk free, with the command below
df -h