Linux

LVM LV (Logical Volumn) 확장

하이안 2017. 7. 12. 14:36

O/S: CentOS 7

File System: Xfs


1. Extending a Logical Volume


                    lvol의 최종 size (MB)

                        ↓

    # lvextend -L 1024 /dev/vg01/lvol01

                                            ↑

                               lvol device file


    # lvdisplay -v /dev/vg01/lvol01


    lvol 확장 -> VG에 free PE가 있다면 lvextend 명령으로 최종 size만 다시 지정해 주면 OK




2. Extending a File System


    # xfs_growfs /dev/vg01/lvol01


    umount 안하고 서비스 중 실행해도 됨 (온라인)