Azure
[Azure] Disk Expansion on RHEL VM
→ 日本語版を読むWhen I built a RHEL 8 VM on Azure, the logical volume (LV) allocated to the partition by default was not sufficient, so I extended the LV using lvextend. Below are the steps I noted.
First, use lsblk to check the allocated volume sizes.
lsblk -p -o NAME,FSTYPE,SIZE,MOUNTPOINT
For example, if the size of / is insufficient, extend it with lvextend.
sudo lvextend -L+10gb /dev/rootvg/rootlv
Then, expand the / allocation on the filesystem side.
sudo xfs_growfs /
After this, checking with lsblk should confirm that the size of / has properly increased.
For /home, the steps would be:
sudo lvextend -L+10gb /dev/rootvg/homelv
sudo xfs_growfs /home