- 准备好pv,vg;摘掉swap。
# swapoff -a
- 扩展swap的lv。
# lvextend -l +10%free /dev/mapper/rhel-swap
# resize2fs /dev/rhel/swap
- 重新挂载swap
# mkswap /dev/mapper/rhel-swap
# swapon /dev/mapper/rhel-swap
# swapon -s
# swapoff -a
# lvextend -l +10%free /dev/mapper/rhel-swap
# resize2fs /dev/rhel/swap
# mkswap /dev/mapper/rhel-swap
# swapon /dev/mapper/rhel-swap
# swapon -s