HACMP |
| Commandes | Description |
HACMP réagit à ses événements : • node failure • network adapter failure • network failure |
| ressource group = @IP + VG + FS + script AR application |
cascading = notion de priorité, les ressources retournent sur le nœud prioritaire rotating = pas de priorité, pas de réintégration des données concurent = tous les nœuds fonctionnent simultanément cascading without failback = toujours une notion de priorité mais pas de réintégration automatique des ressources cascading with inactive takeover = cascading groups with mutual takeover arrêt HACMP en mode forcé = arrêt HACMP transparent pour les utilisateurs, les processus HACMP sont arrêtés mais les ressources groups restent disponibles
|
C-SPOC DARE | Cluster Single Point Of Failure Réplication dynamique de la configuration sur tous les noeuds distants |
| Pré requis HACMP | fileset RSCT |
smitty clstop puis shutdown mode graceful | arrêt de HACMP sans bascule |
smitty clstop, puis shutdown mode takeover | arrêt & bascule
|
| smitty clstart | démarrage de hacmp (attention, acquiert les groupes si le nœud sur lequel hacmp est démarré est en priority override) |
| smit cl_resgrp_move.select | déplacer les groupes de ressources (menu) |
| clfindres ou clRGinfo | affiche la localisation & l’état des resssources |
| tailout | tail –f sur la log hacmp (ex : /var/adm/hacmp/hacmp.out) |
| lslpp -h clust* | connaître la version de HACMP installée |
| cllsif | affiche l’adresse de service d’un cluster |
| clRGinfo [-s] | [-p] [-t] [resgroup1] [resgroup2]... | Displays the status and location of a given resource group in the cluster configuration
|
| clfindres [-s] [resgroup1] [resgroup2]... | Finds a given resource group or groups in a cluster configuration Note: In HACMP 5.1, when you run clfindres, it calls clRGinfo |
| cllscf | Lists complete cluster topology information |
| cllsdisk {-g ResourceGroup} | Lists PVIDs of accessible disks in a specified resource chain |
| cllsfs {-g resource_group} [-n] | Lists shared filesystems contained in a resource group |
| -n | Lists the nodes that share the filesystem in the resource group |
| cllslv [-g resource_group] [-n] [-v] | Lists the names of logical volumes accessible by nodes in a specified resource chain |
| -n | Lists the nodes in the resource group |
-v
| Lists only those logical volumes that belong to volume groups that are currently varied on
|
| # cllslv -g grp5 -n –v | Displays the nodes and those logical volumes that belong to currently varied-on volume groups in resource group grp5 |
| cllsgrp | Lists names of all resource groups configured in the cluster |
| cllsres [-g group] [-c] [-s] [-f field] [-d odmdir] [-q query] | Sorts HACMP for AIX ODM resource data by name and arguments |
| -c | Specifies a colon output format |
| -s | Used with the -c flag, specifies native language instead of English |
-f
| field Specifies the field in object to list. Fields are the resource group name, the type of resource group (cascading, concurrent, or rotating), and participating nodes |
| -d | odmdir Specifies an alternate ODM directory |
| -q | query Specifies search criteria for ODM retrieve. See the odmget man page for information on search criteria |
| # cllsres | Lists resource data for all resource groups |
| # cllsres -g grp1 | Lists resource data for resource group grp1 |
| cllsvg {-g resource_group} [-n] | List shared volume groups in a specified resource chain |
| -n | nodes Specifies all nodes participating in a resource group |
| # cllsvg -g grp1 | Lists all shared volume groups in resource group grp1 |
| clshowres [-g group] [-n nodename] [-d odmdir] | Shows resource group information for a cluster or a node |
| # clshowres | Lists all the resource group information for the cluster |
| # clshowres -n toto | Lists the resource group information for node toto |
| clstat [-c cluster ID | -n cluster name] [-i] [-r seconds] [-a] [-o] | Cluster Status Monitor (ASCII mode) |
| -a | Runs clstat in ASCII mode |
| -c | id Displays cluster information only about the cluster with the specified ID. If the specified cluster is not available, clstat continues looking for the cluster until the cluster is found or the program is canceled May not be specified if the -n option is used |
| -n | name Displays cluster information only about the cluster with the specified name |
| -r | tenths-of-seconds The interval at which the clstat utility updates the display. For the graphical interface, this value is interpreted in tenths of seconds. By default, clstat updates the display every 0.10 seconds |
| cltopinfo [-c] [-i] [-n] [-w] | Shows complete topology information: The cluster name, total number of networks and nodes configured in the cluster. Displays all the configured networks for each node. Displays all the configured interfaces for each network. also displays all the resource groups defined |
| -c | Shows the cluster name and the security mode (Standard or Enhanced) |
| -i | Shows all interfaces configured in the cluster. The information includes the interface label, the network it's attached to (if appropriate), the IP address, netmask, nodename and the device name |
| -n | Shows all the nodes configured in the cluster. For each node, lists all the networks defined. For each network, lists all the interfaces defined |
| -w | Shows all the networks configured in the cluster. For each network, lists all the nodes attached to that network. For each node, lists all the interfaces defined |