#进程管理命令

# 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进程状态对应的集群名,仅限于部署于本机的集群

示例

$ yasboot process yasdb status -c yashandb

# process yasdb stop

本命令用于停止本机的yasdb进程。

选项 含义
-c, --cluster YashanDB的集群名
-n, --node-id 停止本机上的单个节点(例如1-1,可以通过cluster status命令查看,不需要冒号及后面的数字)
-f, --force 强制停止节点,默认为非强制

示例

#停止本机的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 节点的启动模式,默认为nomount

示例

#启动本机集群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
#重启本机集群yashandb下的所有节点
$ yasboot process yasdb restart -c yashandb

#重启本机yashandb集群的单个节点
$ yasboot process yasdb restart -c yashandb --node-id 2-1 --start-mode open