Add boot volume

0

Expand the boot volume

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

Extend the partition manually

lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 100G 0 disk /d01/oracle
sda 8:0 0 150G 0 disk
├─sda2 8:2 0 8G 0 part [SWAP]
├─sda3 8:3 0 38.4G 0 part /
└─sda1 8:1 0 200M 0 part /boot/efi

sudo /usr/libexec/oci-growfs

Run lsblk again and see that the partition was resized:

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 100G 0 disk /d01/oracle
sda 8:0 0 150G 0 disk
├─sda2 8:2 0 8G 0 part [SWAP]
├─sda3 8:3 0 141.8G 0 part /
└─sda1 8:1 0 200M 0 part /boot/efi

https://learnoci.cloud/how-to-extend-a-boot-volume-in-oci-linux-instance-13effa0297b3

Share.

About Author

Leave A Reply