-----查看hp 集群状态信息
# cmviewcl -v
CLUSTER STATUS
dbsvr up
NODE STATUS STATE
db01 up running
Cluster_Lock_LVM:
VOLUME_GROUP PHYSICAL_VOLUME STATUS
/dev/vglock /dev/dsk/c6t0d1 up
Network_Parameters:
INTERFACE STATUS PATH NAME
PRIMARY up 0/0/6/1/0 lan3
PRIMARY up 0/0/12/1/0 lan4
STANDBY up 0/0/14/1/0 lan5
PACKAGE STATUS STATE AUTO_RUN NODE
pkg1 up running enabled db01
Policy_Parameters:
POLICY_NAME CONFIGURED_VALUE
Failover configured_node
Failback manual
Script_Parameters:
ITEM STATUS MAX_RESTARTS RESTARTS NAME
Service unknown 0 0 dbservice
Subnet up 10.100.1.0
Node_Switching_Parameters:
NODE_TYPE STATUS SWITCHING NAME
Primary up enabled db01 (current)
Alternate up enabled db02
NODE STATUS STATE
db02 up running
Cluster_Lock_LVM:
VOLUME_GROUP PHYSICAL_VOLUME STATUS
/dev/vglock /dev/dsk/c6t0d1 up
Network_Parameters:
INTERFACE STATUS PATH NAME
PRIMARY up 0/0/6/1/0 lan3
PRIMARY up 0/0/12/1/0 lan4
STANDBY up 0/0/14/1/0 lan5
#
------停止包
cmhaltpkg pkg1
-----把包挂到其它节点上:
cmrunpkg pkg1 -n db01
------hpux 下查看内存的的大小的几种方法:
# /opt/ignite/binpa/print_manifest|grep Memory
NOTE: Could not read the /etc/resolv.conf file.
Main Memory: 1024 MB
# /opt/ignite/binpa/print_manifest|grep Memory|awk ‘{print $3}‘
NOTE: Could not read the /etc/resolv.conf file.
1024
#
安腾主机用machinfo
machinfo | grep Memory
# echo "selall;info;wait;infolog;view;done" | /usr/sbin/cstm | grep "Total Configured Memory"
Total Configured Memory : 1024 MB
#
# echo `dmesg |grep Physical|awk ‘{print $2}‘`/1024|bc