WEB开发网
开发学院数据库DB2 DB2 pureScale 新特性 -- Member Restart 阅读

DB2 pureScale 新特性 -- Member Restart

 2010-09-02 00:00:00 来源:WEB开发网   
核心提示: SELECTID,varchar(STATE,21)ASSTATE,varchar(HOME_HOST,10)ASHOME_HOST,varchar(CURRENT_HOST,10)ASCUR_HOST,ALERTFROMSYSIBMADM.DB2_MEMBER清单 1. 所有的 MEMBER

 SELECT ID,varchar(STATE,21) AS STATE, 
 varchar(HOME_HOST,10) AS HOME_HOST, 
 varchar(CURRENT_HOST,10) AS CUR_HOST, 
 ALERT 
 FROM SYSIBMADM.DB2_MEMBER 

清单 1. 所有的 MEMBER 都运行在自己的主机上,运行状态正常

 ID STATE HOME_HOST CUR_HOST ALERT 
 ------ --------------------- ---------- ---------- -------- 
 1 STARTED  HOSTA HOSTANO 
 2 STARTED HOSTB HOSTBNO 
 3 STARTED HOSTC HOSTCNO 
 
 3 record(s) selected. 

清单 2. 有一个 Member 正在 restart 的过程中。

 ID STATE HOME_HOST CUR_HOSTALERT 
 ------ --------------------- ---------- ---------- -------- 
 1 WAITING_FOR_FAILBACK HOSTA HOSTANO 
 2 STARTED HOSTBHOSTB 
  NO 
 3 STARTED HOSTC HOSTCNO 
 
 3 record(s) selected. 

清单 3. MEMBER 0 不能进行 local restart,处于 restart light 状态

 ID STATE HOME_HOST CUR_HOSTALERT 
 ------ --------------------- ---------- ---------- -------- 
 1 WAITING_FOR_FAILBACK HOSTA HOSTBNO 
 2 STARTED HOSTB HOSTBNO 
 3 STARTED HOSTC HOSTCNO 
 
 3 record(s) selected. 

此时,可以通过 DB2_CLUSTER_HOST_STATE 查看主机的状态,得知 HOSTA 处于非活动状态。

 HOST STATESTOPPED ALERT 
 ---------- -------- ------- -------- 
 HOSTB ACTIVE NONO 
 HOSTA INACTIVE NOYES 
 HOSTC ACTIVE NONO 
 
 3 record(s) selected. 

上一页  1 2 3 4 5 6 7 8  下一页

Tags:DB pureScale 特性

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接