vmcore: start nfs-server if 'systemctl start nfs' does not work

This commit is contained in:
zhilan 2022-01-19 14:43:29 +08:00
parent 681a42452f
commit 463f1dd097
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,9 @@
yum install nfs-utils rpcbind -y
systemctl start rpcbind && systemctl enable rpcbind
systemctl start nfs && systemctl enable nfs
if [ $? -ne 0 ];then
systemctl start nfs-server && systemctl enable nfs-server
fi
internal_net_seg=`echo ${SERVER_IP} | awk -F"." '{print $1"."$2"."$3}'`
file_path=${APP_HOME}/vmcore/vmcore-nfs