Symantec VCS (Veritas Cluster Server) Dual-host daily management, vcsveritas
1. view the VCS version and License information
PSDB01:~ # vxlicrep Symantec License Manager vxlicrep utility version 3.02.51.010Copyright (C) 1996-2010 Symantec Corporation. All rights reserved.Creating a report on all VERITAS products installed on this system -----------------***********************----------------- License Key = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-X Product Name = VERITAS Cluster Server Serial Number = XXXX License Type = PERMANENT OEM ID = 2006 Site License = YES Editions Product = YES Features := Platform = Unused Version = 5.1 Tier = Unused Reserved = 0 Mode = VCS CPU_TIER = 2 VXKEYLESS = Enabled
2. VCS cluster ID and heartbeat Nic settings
PSDB01:~ # lltstat -l LLT link information:link 0 eth10 on ether hipri mtu 1500, sap 0xcafe, broadcast FF:FF:FF:FF:FF:FF, addrlen 6 txpkts 67688788 txbytes 1843243673 rxpkts 76679165 rxbytes 1360585331 latehb 0 badcksum 0 errors 0link 1 eth9 on ether hipri mtu 1500, sap 0xcafe, broadcast FF:FF:FF:FF:FF:FF, addrlen 6 txpkts 67689522 txbytes 1843879628 rxpkts 276962155 rxbytes 1467872503 latehb 0 badcksum 0 errors 0link 2 eth8 on ether lowpri mtu 1500, sap 0xcafe, broadcast FF:FF:FF:FF:FF:FF, addrlen 6 txpkts 21897078 txbytes 1072847300 rxpkts 222319811 rxbytes 1191109452 latehb 0 badcksum 0 errors 0PSDB01:~ # cat /etc/llttab set-node PSDB01set-cluster 117link eth10 eth-80:fb:06:35:b8:9f - ether - -link eth9 eth-80:fb:06:35:b8:a1 - ether - -link-lowpri eth8 eth-80:fb:06:35:b8:a0 - ether - -PSDB01:~ # lltstat -nLLT node information: Node State Links * 0 PSDB01 OPEN 3 1 PSDB02 OPEN 3
Note: Three NICs are used for heartbeat. If the number of links is insufficient during lltstat viewing, it may be due to a network failure. Most of the problems I encountered were due to the network card being down and ifup.
3. view the status of the VCS dual-host
RMCDB02:~ # hastatus -sum-- SYSTEM STATE-- System State Frozen A RMCDB01 RUNNING 0 A RMCDB02 RUNNING 0 -- GROUP STATE-- Group System Probed AutoDisabled State B RCS_DB_SG RMCDB01 Y N ONLINE B RCS_DB_SG RMCDB02 Y N OFFLINE
4. Start and Stop the VCS Cluster
(1) when starting a cluster with two nodes, run hastart as the root user on each node and use hastatus to view the status information of resources during the startup process.
(2) When stopping, you only need to use the root user to execute: hastop-all on one of the nodes, and also use hastatus to view the status, this requires that the VCS has been stopped on each node.
Note: You must check the VCS logs whether it is started or stopped, especially during startup, to help troubleshoot problems during startup. Default VCS log files:
/Var/VRTSvcs/log/engine_A.log
5. Freeze and unfreeze resource groups
This is often used by me. In general, it means that VCS does not manage clusters for the time being. Even if the status of the Resource Group on which nodes are monitored is incorrect, no switchover or re-pulling operations will occur. It is often used during maintenance, such as patching oracle databases and restarting listening.
<Strong> freeze Dual Servers: </strong> RMCDB02 :~ # Hagrp-freeze rcs_db_sgrmcb02 :~ # Hastatus-sum -- system state -- System State Frozen A RMCDB01 RUNNING 0 A RMCDB02 RUNNING 0 -- group state -- Group System Probed AutoDisabled State B RCS_DB_SG RMCDB01 y n online B RCS_DB_SG RMCDB02 Y N OFFLINE -- groups frozen -- Group C RCS_DB_SG -- resources disabled -- Group Type Resource H RCS_DB_SG Application ora_raw H RCS_DB_SG Application ora_vg H RCS_DB_SG IP ora_ip H RCS_DB_SG NIC ora_ni C H RCS_DB_SG Netlsnr ora_listener H RCS_DB_SG Oracle ora_ora11g <strong> unfreeze dual HOST: </strong> RMCDB02 :~ # Hagrp-unfreeze RCS_DB_SG
6. VCS dual-host switch
This is also frequently used by me. It is mainly to monitor that the host in the cluster may fail, so the resource group is manually switched to another node, or hardware maintenance and system restart are performed.
Ndmcb04 :~ # Hastatus-sum -- system state -- System State Frozen A ndmcb03 RUNNING 0 A ndmcb04 RUNNING 0 -- group state -- Group System Probed AutoDisabled State B rcs_ndmcb_rg ndmcb03 y n online B restart ndmcb04 Y N OFFLINE ndmcb04: ~ # Hagrp-switch rcs_ndmcb_rg-to ndmcb04 # switch resources from ndmcb03 to THE ndmcb04 host
7. troubleshoot the dual-machine startup of VCS
After the hastart command is run to start the dual-host machine, run the hastatus-sum command to view the status of the dual-host machine. The following information is displayed:
Attempting to connect... connected
Group resource system message
---------------------------------------------------------------------------
Test-smc3 stale admin wait: all systems stale
STALE_ADMIN_WAIT: The system has a stale configuration and no other system is in a RUNNING state.
ADMIN_WAIT: The system cannot build or obtain a valid configuration.
The dual-host status is either STALE_ADMIN_WAIT or ADMIN_WAIT. The dual-host software cannot be started normally.
Procedure
Step 1 verify that the configuration file main. cf is correct.
Modify the main. cf configuration file according to your actual business application.
Step 2. Run the command hacf-verify config_dir to verify the correctness of the Configuration File Syntax. For example:
# Hacf-verify/etc/VRTSvcs/conf/config
If an error message exists, modify the "main. cf" file as prompted.
Step 3 run the hasys-force node name command to start VCS.
Hot Standby? Is there any software?
There are many types of Dual-machine Hot Standby software on the market, mainly including Microsoft's MSC, Symantec's Veritas Storage Foundation, EterneCluster of Yi Teng digital, and SteelEye's LifeKeeper,
The following describes the details:
Microsoft's self-contained MSC is only available in the Server version. Its cluster Service acts as a backend cluster and provides high availability for applications such as databases, message transmission, and file and print services. When any node (the server in the cluster) fails or is offline, the MSC attempts to minimize the impact of the fault on the system.
Veritas Storage Foundation, which provides industry-leading software solutions for heterogeneous Storage management and high availability, solves how enterprises reasonably protect and back up key information data, and efficiently manage heterogeneous hardware environments, and how to improve the availability of application systems and databases.
Veritas SFHA mainly includes the following five components: Veritas Volume Manager (ZFS), Veritas File System (VxFS), Veritas Cluster Server (VCS), Veritas Storage Foundation Cluster File System (SFCFS ), veritas Storage Foundation for Oracle RAC (SFRAC)
EterneCluster is a new generation dual-machine Hot Standby product of Yi Teng digital Co., Ltd. It is user-friendly, highly configurable, and easy to operate. It also supports multi-machine Hot Standby Based on Multiple machines. It can realize the uninterrupted operation of the entire system, so as to ensure the normal external services of the entire system and provide a powerful guarantee for key business applications within 24 hours × 365 days.
LifeKeeper enables your servers, operating systems, database systems, and key data and applications to be continuously maintained for 7 days × 24 hours, providing 99.99% high availability.
I have used MSC and EterneCluster, and the other two have never used it and do not make performance comments. However, the other two are very expensive. As for the numbers of MnS AND EterneCluster, the numbers of MnS are Microsoft's own products, but their performance is not required. However, their configurations are relatively complex and they have high requirements on the Server itself. Therefore, they must be for the Server version. EterneCluster is relatively easy to operate, there are also many support platforms, and the performance is also good. More importantly, the price is fair.
It's detailed enough. For more details, refer to Baidu.
Q: What are the differences between Rose, Windows fault cluster, and Symantec NetBackup?
Rose HA: Windows Cluster is a Cluster software, which is a high-availability software. It ensures that the application system can switch and transfer between hardware of different servers. symantec's Netbackup is a data backup software, it is mainly used for data backup, not high-availability. Symantec's high-availability software is called VCS (Veritas Cluster Server)