Thursday, 19 January 2017

[CentOS] Extend Volume Group and Logical Volume (VG 볼륨그룹 LV 확장하는 법)

1. Attach Physical Hard Disk (하드디스크 장착)


2. Partitioning Disk

#> fdisk -l
#> fdisk [DEVICE_PATH]








- Create partition




- Select partition type





3. Create physical volumn (PV 생성)

#> fdisk -l
#> pvcreate [DEVICE_PATH]
















4. Extends Volumn Group

#> vgdisplay
#> vgetend [VG_NAME] [PV_NAME]




5. Extends Logical Volume

#> lvdisplay
#> lvextend -l [PE_SIZE] [LV_PATH]




6. Apply extension

#> xfs_growfs [LV_PATH]

No comments:

Post a Comment