第一范文网 - 专业文章范例文档资料分享平台

VCS5.0命令

来源:用户分享 时间:2025/5/21 5:00:42 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

执行VCS命令需要用root用户登陆。命令都在/opt/VRTS/bin名录下,确信该目录已经设置到root用户下的PATH环境变量里。

验证节点信息和状态(可执行于任一节点): # hastatus -sum

确保所有的device和resource groups是online状态。 VCS软件信息查看: # rpm -q VRTSvcs # ls /opt/VRTS*

# pkginfo -l | grep VERITAS # pkginfo -l | grep VRTS

查看VCS配置(可执行于任一节点): # cd /etc/VRTSvcs/conf/config/ # more main.cf

查看VCS日志(可执行于任一节点): # tail -100f /var/VRTSvcs/log/engine_A.log 关闭集群(仅执行于某一节点): # hastop -all

在ok提示符下重启集群(需执行于每一节点): {#} hastart

验证私网即心跳线状态(可执行于任一节点): # gabconfig -a

验证公网状态(可执行于任一节点): # config -a

查看私网使用信息: # lltstat -nvv

umount共享磁盘: # umount -f /mountpoint

VCS会自动mount共享磁盘到另外一节点。 资源组从主节点切换到备节点: # hagrp oracleSG -switch to 资源组冻结: # hagrp -freeze

所有的设备组和资源组应该切换到另一节点了。 磁盘列表: # vxdisk list

以下是几个常用链接,如模拟器下载,VCS文档查看和下载等。 Veritas CLuster Server Summary of basic cluster operations: - Cluster Start/Stop:

+ stop VCS on all systems: # hastop -all

+ stop VCS on hosta and move all groups out: # hastop -sys hosta -evacuate + start VCS on local system: # hastart

- Users:

+ add gui root user:

# haconf -makerw # hauser -add root

# haconf -dump -makero - Group:

+ group start, stop:

# hagrp -offline groupx -sys hostb # hagrp -online groupx -sys hostb + switch a group to other system:

# hagrp -switch groupx -to hosta + freeze a group:

# hagrp -freeze groupx + unfreeze a group:

# hagrp -unfreeze groupx + enable a group:

# hagrp -enable groupx + disable a group:

# hagrp -disable groupx + enable resources a group:

# hagrp -enableresources groupx + disable resources a group:

# hagrp -disableresources groupx + flush a group:

# hagrp -flush groupx -sys hosta - Node:

+ feeze node:

# hasys -freeze hosta + thaw node:

# hasys -unfreeze hosta - Resources:

+ online a resouce:

# hares -online resource_name -sys hosta + offline a resouce:

# hares -offline resource_name-sys hosta + offline a resouce and propagte to children:

# hares -offprop resource_name -sys hosta + probe a resouce:

# hares -probe resource_name -sys hosta + clear faulted resource:

# hares -clear resource_name -sys hosta - Agents:

+ list agent:

# haagent -list

+ list status of an agent:

# haagent -display IP + start agent:

# haagent -start IP -sys hosta + stop agent:

# haagent -stop IP -sys hosta

- Reboot a node with evacuation of all service groups: (groupy is running on hosta)

# hastop -sys hosta -evacuate # init 6

# hagrp -switch groupy -to hosta

Here's a procedure to upgrade VCS or shutdown VCS during hardware maintenance.

1. Open, freeze each Service Group, and close the VCS config. haconf -makerw

hagrp -freeze -persistent haconf -dump makero

2. Shutdown VCS but keep services up. hastop -all -force

3. Confirm VCS has shut down on each system. gabconfig -a

4. Confirm GAB is not running on any disks.

gabdisk -l (use this if upgrading from VCS 1.1.x) gabdiskhb -l gabdiskx -l

If it is, remove it from the disks on each system. gabdisk -d (use this if upgrading from VCS 1.1.x) gabdiskhb -d gabdiskx -d

5. Shutdown GAB and confirm it's down on each system. gabconfig -U gabconfig -a

6. Identify the GAB kernel module number and unload it from each system. modinfo | grep gab modunload -i

7. Shutdown LLT. On each system, type: lltconfig -U

Enter \

8. Identify the LLT kernel module number and unload it from each system. modinfo | grep llt modunload -i

9. Rename VCS startup and stop scripts on each system.

cd /etc/rc2.d mv S70llt s70llt mv S92gab s92gab cd /etc/rc3.d

mv S99vcs s99vcs cd /etc/rc0.d

mv K10vcs k10vcs

10. Make a backup copy of /etc/VRTSvcs/conf/config/main.cf. Make a backup copy of /etc/VRTSvcs/conf/config/types.cf.

Starting with VCS 1.3.0, preonline and other trigger scripts must be in /opt/VRTSvcs/bin/triggers. Also, all preonline scripts in

previous versions (such as VCS 1.1.2) must now be combined in one preonline script.

11. Remove old VCS packages.

pkgrm VRTScsga VRTSvcs VRTSgab VRTSllt VRTSperl VRTSvcswz If you are upgrading from 1.0.1 or 1.0.2, you must also remove the package VRTSsnmp, and any packages containing a .2 extension, such as VRTScsga.2, VRTSvcs.2, etc.

Also remove any agent packages such as VRTSvcsix (Informix),

VRTSvcsnb (NetBackup), VRTSvcssor (Oracle), and VRTSvcssy (Sybase). Install new VCS packages.

Restore your main.cf and types.cf files. 12. Start LLT, GAB and VCS. cd /etc/rc2.d mv s70llt S70llt mv s92gab S92gab cd /etc/rc3.d

mv s99vcs S99vcs cd /etc/rc0.d

mv k10vcs K10vcs /etc/rc2.d/S70llt start /etc/rc2.d/S92gab /etc/rc3.d/S99vcs start 13. Check on status of VCS. hastatus

hastatus -sum

14. Unfreeze all Service Groups. haconf -makerw

hagrp -unfreeze -persistent haconf -dump -makero

搜索更多关于: VCS5.0命令 的文档
VCS5.0命令.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c2wgih6dov83gzna0fxbn_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top