
rm -rf /tmp
rm -rf /swap
rm -rf /home
rm -rf /data


umount /dev/mapper/iovg-lvhome
umount /dev/mapper/iovg-lvdata

umount /dev/mapper/rootvg-lvtmp
umount /dev/mapper/rootvg-lvswap

umount /dev/mapper/openeuler-swap

lvdisplay

lvremove /dev/iovg/lvhome
lvremove /dev/iovg/lvdata

lvremove /dev/rootvg/lvswap
lvremove /dev/rootvg/lvtmp


lvremove /dev/openeuler/swap
lvremove /dev/centos/swap
lvremove /dev/openeuler/tmp


freepesize=$(vgdisplay iovg | grep 'Free  PE' | awk '{print $5}')
lvextend  -l+${freepesize} /dev/iovg/lvdock
xfs_growfs /dev/iovg/lvdock


freepesize=$(vgdisplay rootvg | grep 'Free  PE' | awk '{print $5}')
lvextend  -l+${freepesize} /dev/rootvg/lvvar
xfs_growfs /dev/rootvg/lvvar

curl -k https://10.96.0.1

freepesize=$(vgdisplay centos | grep 'Free  PE' | awk '{print $5}')
lvextend  -l+${freepesize} /dev/centos/root
xfs_growfs /dev/centos/root

freepesize=$(vgdisplay openeuler | grep 'Free  PE' | awk '{print $5}')
lvextend  -l+${freepesize} /dev/openeuler/root
resize2fs /dev/openeuler/root

docker system prune -y

kubectl drain demo-06.ecs.io --ignore-daemonsets --delete-local-data