zoukankan      html  css  js  c++  java
  • Common VCS Commands (UNIX)

    Show 

    Home > Maintenance (UNIX) > Monitoring the Cluster from the Command Line > Common VCS Commands

    Common VCS Commands (UNIX)

    The following commands are used to perform common VCS processes.

    Task

    Command

    Start VCS cold (on each node).

    /opt/VRTSvcs/bin/hastart

    Start VCS cold and accept system as valid (on each node).

    /opt/VRTSvcs/bin/hastart -force

    Stop VCS gracefully (on each node).

    /opt/VRTSvcs/bin/hastop -local

    Stop VCS and leave resources online.

    /opt/VRTSvcs/hastop -local -force

    Stop VCS on all systems and leave groups online.

    /opt/VRTSvcs/hastop -all -force

    Watch VCS logs.

    tail -f /var/VRTSvcs/log/engine.log_A

    Force a halt/reboot to perform a failover.

    /sbin/gabsync;sync;halt

    or

    /sbin/gabsync;sync;reboot

    Locate Configuration File.

    /etc/VRTSvcs/conf/config

    Locate Main config.

    /etc/VRTSvcs/conf/config/main.cf

    Included files.

    types.cf

    Modify resource while VCS is running (CLI).

    Open configuration:

     /opt/VRTSvcs/bin/haconf -makerw

    Modify Resource:

     /opt/VRTSvcs/bin/hares -modify <resource> <attribute> <value>

    Close Configuration:

     /opt/VRTSvcs/bin/haconf -dump -makero

    Modify resource while VCS is running (GUI).

    In the Cluster Explorer, select Open Config from the Cluster menu.

    Select the resource to modify and look at the attributes view.

    Push the little e button in the upper right corner of the attributes view.

    Select the attribute to change.

    Enter the new value in the small box.

    From the edit menu, select Set. The change should be reflected in the attribute view.

    In the Cluster Explorer, select Close Config from the Cluster menu.

    Directing SNMP Traps.

    Open configuration:

    /opt/VRTSvcs/bin/haconf -makerw

    Change the SNMP IP to <IP Address>

    /opt/VRTSvcs/bin/hasnmp -modify IPAddr <IP Address>

    Dump the configuration and make read only:

    /opt/VRTSvcs/bin/haconf -dump -makero

    Clearing resource failure.

    /opt/VRTSvcs/bin/hares -clear <resource> -sys <system>

    NOTE: You should clear faults because when a resource faults, it stops the onlining of all dependencies (e.g., Oracle does not online if a diskgroup faults). To attempt a new onlining, you must clear the faults on the resource first.

    Online a group.

    /opt/VRTSvcs/bin/hagrp -online <group> -sys <sys>

    View summary status.

    /opt/VRTSvcs/bin/hastatus -summary

    View tailing status.

    /opt/VRTSvcs/bin/hastatus

    View system’s node name.

    uname -n

    Confirm that the configuration is closed.

    # /opt/VRTSvcs/bin/haconf -dump -makero

    Look for the FAULTED status of a service group.

    # /opt/VRTSvcs/bin/hasys -display

    Look for the FAULTED status of a system.

    # /opt/VRTSvcs/bin/hasys -display

    Review logs.

    /var/adm/messages

    /var/VRTSvcs/log/*

  • 相关阅读:
    struts2 标签为简单标签
    html a标签链接使用action 参数传递中文乱码
    html 字体加粗
    Unity3D学习笔记(一):Unity简介、游戏物体、组件和生命周期函数
    Unity3D学习笔记(一):Unity3D简介 111
    C#学习笔记(二十):C#总结和月考讲解
    C#学习笔记(十九):字典
    C#学习笔记(十八):数据结构和泛型
    C#学习笔记(十七):委托、事件、观察者模式、匿名委托和lambert表达式
    C#学习笔记(十六):索引器和重载运算符
  • 原文地址:https://www.cnblogs.com/yaoyangding/p/14904569.html
Copyright © 2011-2022 走看看