Last active
December 3, 2024 12:18
-
-
Save TornadoRadon/154161be3977095e50d7104d60d84d73 to your computer and use it in GitHub Desktop.
Disk Resize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# if growpart not found: | |
apt install cloud-utils | |
# or thiscloud-guest-utils | |
sudo growpart /dev/sda 1 | |
sudo resize2fs /dev/sda1 | |
## For ext4: | |
sudo resize2fs /dev/nvme0n1p1 | |
## For xfs: | |
sudo xfs_growfs /mountpoint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment