The azure Azure VM Standard BS1 has 65GB of hard disk for the operative system. But there is an issue with redhat running on 1GB, it crashes, and the other one is that lvm doesn't leverage the space.
The solution create a swap and extend the lvm!
Creation of swap
fallocate -l 3G /swap-file
chmod 600 /swap-file
mkswap /swap-file
swapon /swap-file
swapon --show
cp /etc/fstab /etc/fstab.bak
echo '/swap-file none swap sw 0 0' | sudo tee -a /etc/fstab
Check the lsblk and extend the partition
lsblk
lvextend --size +10GB --resizefs /dev/rootvg/rootlv
df -h
No hay comentarios:
Publicar un comentario