Skip to content

Resize VPS LVM Drive

# 0. Stop Instance
# 1. Resize Virtual Drive
# 2. Mount archlinux boot CD
# 3. Resize partitions on /dev/vda
    # 3.1 check partitions
    fdisk -l
    # 3.2 run parted with you drive
    parted /dev/vda
        # 3.2.1 resize extended partition (check number with "print" command)
        resizepart 2 100%
        # 3.2.2 resize LVM partition
        resizepart 5 100%
        # 3.2.3 quit
        quit
    # 3.3 resize PV (for find PV Name type "pvdisplay")
    pvresize /dev/vda5
    # 3.4 resize LV (for find necessary LV Name type "lvdisplay")
    lvextend --resize -l +100%FREE /dev/xcsapp17-vg/root
# 4. poweroff
poweroff
# 5. Unmount archlinux boot CD
# 6. Run Instance