Linux: Extend Filesystem

30 April 2009

lvextend -L +2G /dev/basevg/var_lib_mysql

Add 2GB to the logical volume var_lib_mysql in basevg

resize2fs /dev/basevg/var_lib_mysql

Resize the filesystem /dev/basevg/var_lib_mysql

Other useful commands:

vgs

list volume groups

lvs

list logical volumes