RedHat Cluster Administration

Aus SchnallIchNet
(Weitergeleitet von Cman tool)
Wechseln zu: Navigation, Suche

tools

  1. clustat
  2. cman_tool
  3. clusvcadm


cluster infos/status

clustat

overall state of cluster

# clustat

Cluster Status for CLUSTER-NAME @ Mon Jan 30 08:39:16 2012
Member Status: Quorate

 Member Name                                        ID   Status
 ------ ----                                        ---- ------
 HOSTNAME1                                              1 Online, Local, rgmanager
 HOSTNAME2                                              2 Online, rgmanager
 /dev/mapper/432ee8aa18bd56f0fa73827aa7067388ep1        0 Online, Quorum Disk

 Service Name                              Owner (Last)                              State
 ------- ----                              ----- ------                              -----
 service:SERVICENAME                       HOSTNAME2                                 started


cman_tool state

host-specific state

# cman_tool status

Version: 6.2.0
Config Version: 11
Cluster Name: CLUSTER-NAME
Cluster Id: 57524
Cluster Member: Yes
Cluster Generation: 256
Membership state: Cluster-Member
Nodes: 2
Expected votes: 1
Quorum device votes: 1
Total votes: 3
Quorum: 1
Active subsystems: 10
Flags: 2node Dirty
Ports Bound: 0 11 177
Node name: HOSTNAME (of host running cman_tool command)
Node ID: 1
Multicast addresses: MULTICAST-IP-OF-HOST
Node addresses: UNICAST-IP-OF-HOST


cman_tool nodes info

# cman_tool nodes

Node  Sts   Inc   Joined               Name
   0   M      0   2012-01-27 19:27:56  /dev/mapper/432ee8aa18bd56f0fa73827aa7067388ep1
   1   M    240   2012-01-27 19:27:27  HOSTNAME1
   2   M    256   2012-01-27 19:55:31  HOSTNAME2


cman_tool services

list services

# cman_tool services

type             level name       id       state
fence            0     default    00000000 none
[1 2]
dlm              1     clvmd      00000000 none
[1 2]
dlm              1     rgmanager  00040001 none
[1 2]


clusvcadm cluster management

manage services: start / stop / restart / relocate


restart

-R <service> restarts service

# clusvcadm -R service:SERVICENAME


stop

-s <service> stops service

# clusvcadm -s service:SERVICENAME


disable

-d <service> stops AND disables the service

# clusvcadm -e service:SERVICENAME


enable/start

-e <service> enables AND starts the service
there is no option to ONLY start the service...

# clusvcadm -e service:SERVICENAME


relocate

-m <member> When used in conjunction with either the -e or -r options, this specifies the
preferred target member on which to start the service.

# clusvcadm -r service:SERVICENAME -m HOSTNAME2
# clusvcadm -e service:SERVICENAME -m HOSTNAME2