标签:resize $2 pvc 扩展 df -h spl display rip echo
#!/bin/bashfdisk -l | grep "Disk /dev/sd" | awk -F ‘[ :]+‘ ‘{print $2}‘
df -h | grep $disk | wc -l
pvs | grep $disk | wc -l
fdisk -l | grep "$disk" | awk -F ‘[ ,:]+‘ ‘{print $5}‘
lvdisplay | grep "VG Name" | awk ‘{print $3}‘
lvdisplay | grep "LV Path" | awk ‘{print $3}‘
linux扩容根分区脚本,适合用于centos 6、centos 7版本
标签:resize $2 pvc 扩展 df -h spl display rip echo
原文地址:https://blog.51cto.com/chentongsan/2402725