⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hb_standby.in

📁 linux集群服务器软件代码包
💻 IN
字号:
#!/bin/sh# This script sets the node (where it was called) to *standby*# It forces the node to release all the held resources and lets# the other node do a takeover.#	This script will only work for a two machine setup...#	More than that and you need to vote, or something...HA_DIR=@sysconfdir@/ha.d. ${HA_DIR}/shellfuncs: Now running $0: $*usage() {	echo "usage: %0 [all|foreign|local|failback]" >&2	exit 1;}if  [ $# -ge 1 ]then  resources=$1else  resources=allficase $resources in  all|foreign|local)	;;  failback)		resources=foreign;;  *)			usage;;esac    ha_log "Going standby [$resources]."  	ha_clustermsg <<-!MSG	t=ask_resources	rsc_hold=$resources	info=me	!MSG

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -