#yasboot process
# process yasom status
本命令用于查看yasom进程状态。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-t, --toml | 生成的服务器配置文件,可以查看其它服务器/集群的yasom状态 |
示例
$ yasboot process yasom status -c yashandb
$ yasboot process yasom status -c minidb -t hosts.toml
# process yasom stop
本命令用于停止yasom进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-t, --toml | 生成的服务器配置文件,可以停止其它服务器/集群的yasom |
示例
$ yasboot process yasom stop -c yashandb
$ yasboot process yasom stop -c minidb -t hosts.toml
# process yasom start
本命令用于启动yasom进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-t, --toml | 生成的服务器配置文件,可以启动其它服务器/集群的yasom |
示例
$ yasboot process yasom start -c yashandb
$ yasboot process yasom start -c minidb -t hosts.toml
# process yasom restart
本命令用于重启yasom进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-t, --toml | 生成的服务器配置文件,可以重启其它服务器/集群的yasom |
$ yasboot process yasom restart -c yashandb
$ yasboot process yasom restart -c minidb -t hosts.toml
# process yasagent status
本命令用于查看yasagent的运行状态。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-t, --toml | 生成的服务器配置文件,可以查看其它服务器/集群的yasagent状态 |
--hostid | 其它服务器yasagent进程所在服务器标识(hosts.toml文件中的hostid) |
示例
$ yasboot process yasagent status -c yashandb
$ yasboot process yasagent status -c minidb -t hosts.toml --hostid host0001
# process yasagent stop
本命令用于停止运行中的yasagent进程,支持停止其它服务器的agent进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-t, --toml | 生成的服务器配置文件,可以停止其它服务器/集群的yasagent |
--hostid | 其它服务器yasagent进程所在服务器标识(hosts.toml文件中的hostid) |
示例
$ yasboot process yasagent stop -c yashandb
$ yasboot process yasagent stop -c minidb -t hosts.toml --hostid host0001
# process yasagent start
本命令用于启动服务器的yasagent进程,支持启动其它服务器的agent进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-t, --toml | 生成的服务器配置文件,可以启动其它服务器/集群的yasom状态 |
--hostid | 其它服务器yasagent进程所在服务器标识(hosts.toml文件中的hostid) |
示例
$ yasboot process yasagent start -c yashandb
$ yasboot process yasagent start -c minidb -t hosts.toml --hostid host0001
# process yasagent restart
本命令用于重启服务器的yasagent进程,支持重启其它服务器的agent进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-t, --toml | 生成的服务器配置文件,可以重启其它服务器/集群的yasom状态 |
--hostid | 其它服务器yasagent进程所在服务器标识(hosts.toml文件中的hostid) |
$ yasboot process yasagent restart -c yashandb
$ yasboot process yasagent restart -c minidb -t hosts.toml --hostid host0001
# process yasdb status
本命令用于查看本机yasdb的进程状态。
选项 | 含义 |
---|---|
-c, --cluster | 需要查看的yasdb进程状态对应的集群名,仅限于部署于本机的集群(必传参数) |
-u, --username | 指定数据库用户(不指定则默认使用sys用户) |
-p, --password | 数据库用户对应的密码 |
示例
$ yasboot process yasdb status -c yashandb
# process yasdb stop
本命令用于停止本机的yasdb进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-n, --node-id | 停止本机上的单个节点(例如1-1,可以通过cluster status命令查看,不需要冒号及后面的数字) |
-f, --force | 强制停止节点,默认为非强制 |
-s, --stop-mode | 关库方式,可选[normal|immediate|abort],默认为immediate(共享集群部署暂时无法使用) |
-u, --username | 指定数据库用户(不指定则默认使用sys用户) |
-p, --password | 数据库用户对应的密码 |
示例
#停止本机的yashandb集群下的所有节点
$ yasboot process yasdb stop -c yashandb
#停止本机单个节点
$ yasboot process yasdb stop -c yashandb --node-id 2-1 -f
# process yasdb start
本命令用于启动本机的yasdb进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-n, --node-id | 启动本机上的单个节点(例如1-1,可以通过cluster status命令查看,不需要冒号及后面的数字) |
-m, --start-mode | 启动方式,可选[mount|nomount|open],默认为open |
示例
#启动本机集群yashandb下的所有节点
$ yasboot process yasdb start -c yashandb
#启动本机集群的单个节点
$ yasboot process yasdb start -c yashandb --node-id 2-1 --start-mode open
# process yasdb restart
本命令用于重启本机的yasdb进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
-n, --node-id | 重启本机上的单个节点(例如1-1,可以通过cluster status命令查看,不需要冒号及后面的数字) |
-m, --start-mode | 节点的启动模式,默认为nomount |
-s, --stop-mode | 关库方式,可选[normal|immediate|abort],默认为immediate(共享集群部署暂时无法使用) |
-f, --force | 强制停止节点,默认为非强制 |
-u, --username | 指定数据库用户(不指定则默认使用sys用户) |
-p, --password | 数据库用户对应的密码 |
#重启本机集群yashandb下的所有节点
$ yasboot process yasdb restart -c yashandb
#重启本机yashandb集群的单个节点
$ yasboot process yasdb restart -c yashandb --node-id 2-1 --start-mode open
# process monit status
本命令用于查看monit进程状态。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
示例
$ yasboot process monit status -c yashandb
# process monit stop
本命令用于停止monit进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
示例
$ yasboot process monit stop -c yashandb
# process monit start
本命令用于启动monit进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
示例
$ yasboot process monit start -c yashandb
# process monit restart
本命令用于重启monit进程。
选项 | 含义 |
---|---|
-c, --cluster | YashanDB的集群名(必传参数) |
$ yasboot process monit restart -c yashandb