Skip to content

CentOS:ResizeLVM

CentOS7최소 설치시 기본적으로 잡혀 있는 /home디렉토리의 용량 크기를 조정하는 방법에 대한 설명.

How to

아래의 내용은 관리자 권한 접속을 전제로 한다.

## Unmount the centos-home partition.
$ umount /home/

## Next show the logical volumes.
$ lvdisplay

## Now remove the logical volume for centos-home.
$ lvremove /dev/centos/home

## You should now have the free space available in VFree when you have a look using vgs.
$ vgs

## Now resize the centos-root partition.
$ lvextend --size +22.13GB -r /dev/mapper/centos-root

## Confirm your new partition size.
$ lsblk

## Remove the centos-home mount from fstab so that the system does not try to mount it at startup
$ sed -i '/centos-home/d' /etc/fstab

See also

Favorite site

References


  1. Resizing_partitions_in_Centos7_-_Tips_and_Tricks_from_a_Mac_Admin.pdf