La lista de comandos basicos son:
ADMINISTRACIÓN DEL QUÓRUM (Para evitar la inconsistencia de los datos)
- Agregar un dispositivo quórum SCSI # clquorum add device
- Agregar un dispositivo quórum NAS # clquorum add -t netapp_nas -p filer=nasdevicename,lun_id=IDnumdevice\Nasdevice
- Agregar un servidor al quórum # clquorum add -t quorumserver -p qshost=IPaddress, port=portnumber \quorumservername
- Quitar un dispositivo del quórum # clquorum remove device
Ejemplos:
root@bxxx1 # cldev list -v | grep d14
d14 bxxx3:/dev/rdsk/c5t60060E800565B100000065B100000113d0
d14 bxxx2:/dev/rdsk/c4t60060E800565B100000065B100000113d0
d14 bxxx1:/dev/rdsk/c4t60060E800565B100000065B100000113d0
d14 bxxx6:/dev/rdsk/c4t60060E800565B100000065B100000113d0
root@bxxx1 # clquorum list -v -> clquorum show + (vemos más información)
Quorum Type
------ ----
d14 shared_disk
bxxx1 node -> servidor
bxxx2 node -> servidor
bxxx3 node -> servidor
bxxx6 node -> servidor
Quorum Type
------ ----
d14 shared_disk
bxxx1 node -> servidor
bxxx2 node -> servidor
bxxx3 node -> servidor
bxxx6 node -> servidor
root@bxxx1 # clquorum status d14
=== Cluster Quorum ===
--- Quorum Votes by Device (current status) ---
Device Name Present Possible Status
----------- ------- -------- ------
d14 3 3 Online
=== Cluster Quorum ===
--- Quorum Votes by Device (current status) ---
Device Name Present Possible Status
----------- ------- -------- ------
d14 3 3 Online
ADMINISTRACIÓN DEL INTERCONECT (Para el heartbeat)
- Añadir/Borrar interconnect:
#clinterconnect add/remove node1:ce0
#clinterconnect add/remove node1:ce1
- Como lo tenemos switcheado tendremos que:
#clinterconnect add switch0
#clinterconnect add node1:ce0,switch0
#clinterconnect add switch1
#clinterconnect add node1:ce1,switch1
- Hemos configurado el interconect, ahora tenemos que activarlo:
#clinterconnect enable node1:ce0,switch0@1
#clinterconnect enable node1:ce1, switch0@2
Lo hariamos por cada nodo, lo normal propagar la configuración:
#claccess allow -h node2
- Para listar las interconect:
root@bxxx1 # clinterconnect status
=== Cluster Transport Paths ===
Endpoint1 Endpoint2 Status
--------- --------- ------
bxxx1:nxge2028007 bxxx2:nxge2028007 Path online
bxxx1:nxge2028007 bxxx6:nxge2028003 Path online
bxxx1:nxge2029000 bxxx2:nxge2029000 Path online
bxxx1:nxge2029000 bxxx6:nxge2029007 Path online
bxxx1:nxge2028007 bxxx3:nxge2028003 Path online
bxxx1:nxge2029000 bxxx3:nxge2029007 Path online
bxxx2:nxge2029000 bxxx6:nxge2029007 Path online
bxxx2:nxge2028007 bxxx3:nxge2028003 Path online
bxxx2:nxge2029000 bxxx3:nxge2029007 Path online
bxxx2:nxge2028007 bxxx6:nxge2028003 Path online
bxxx3:nxge2029007 bxxx6:nxge2029007 Path online
bxxx3:nxge2028003 bxxx6:nxge2028003 Path online
root@bxxx1 # clinterconnect show
=== Transport Cables ===
Transport Cable: bxxx1:nxge2029000,switch1@1
Endpoint1: bxxx1:nxge2029000
Endpoint2: switch1@1
State: Enabled
Transport Cable: bxxx1:nxge2028007,switch2@1
Endpoint1: bxxx1:nxge2028007
Endpoint2: switch2@1
State: Enabled
Transport Cable: bxxx2:nxge2029000,switch1@2
Endpoint1: bxxx2:nxge2029000
Endpoint2: switch1@2
State: Enabled
Transport Cable: bxxx2:nxge2028007,switch2@2
Endpoint1: bxxx2:nxge2028007
Endpoint2: switch2@2
State: Enabled
Transport Cable: bxxx3:nxge2029007,switch1@3
Endpoint1: bxxx3:nxge2029007
Endpoint2: switch1@3
State: Enabled
Transport Cable: bxxx3:nxge2028003,switch2@3
Endpoint1: bxxx3:nxge2028003
Endpoint2: switch2@3
State: Enabled
Transport Cable: bof-sapci6:nxge2029007,switch1@6
Endpoint1: bof-sapci6:nxge2029007
Endpoint2: switch1@6
State: Enabled
Transport Cable: bxxx6:nxge2028003,switch2@6
Endpoint1: bxxx6:nxge2028003
Endpoint2: switch2@6
State: Enabled
=== Transport Switches ===
Transport Switch: switch1
State: Enabled
Type: switch
Port Names: 1 2 3 6
Port State(1): Enabled
Port State(2): Enabled
Port State(3): Enabled
Port State(6): Enabled
Transport Switch: switch2
State: Enabled
Type: switch
Port Names: 1 2 3 6
Port State(1): Enabled
Port State(2): Enabled
Port State(3): Enabled
Port State(6): Enabled
--- Transport Adapters for bof-sapci1 ---
Transport Adapter: nxge2029000
State: Enabled
Transport Type: dlpi
device_name: nxge
device_instance: 0
lazy_free: 1
dlpi_heartbeat_timeout: 10000
dlpi_heartbeat_quantum: 1000
nw_bandwidth: 80
bandwidth: 70
vlan_id: 2029
ip_address: x.x.x.x
netmask: 255.255.255.128
Port Names: 0
Port State(0): Enabled
Transport Adapter: nxge2028007
State: Enabled
Transport Type: dlpi
device_name: nxge
device_instance: 7
lazy_free: 1
dlpi_heartbeat_timeout: 10000
dlpi_heartbeat_quantum: 1000
nw_bandwidth: 80
bandwidth: 70
vlan_id: 2028
ip_address: x.x.x.x
netmask: 255.255.255.128
Port Names: 0
Port State(0): Enabled
--- Transport Adapters for bof-sapci2 ---
Transport Adapter: nxge2029000
State: Enabled
Transport Type: dlpi
device_name: nxge
device_instance: 0
vlan_id: 2029
lazy_free: 1
dlpi_heartbeat_timeout: 10000
dlpi_heartbeat_quantum: 1000
nw_bandwidth: 80
bandwidth: 70
ip_address: x.x.x.x
netmask: 255.255.255.128
Port Names: 0
Port State(0): Enabled
Transport Adapter: nxge2028007
State: Enabled
Transport Type: dlpi
device_name: nxge
device_instance: 7
vlan_id: 2028
lazy_free: 1
dlpi_heartbeat_timeout: 10000
dlpi_heartbeat_quantum: 1000
nw_bandwidth: 80
bandwidth: 70
ip_address: x.x.x.x
netmask: 255.255.255.128
Port Names: 0
Port State(0): Enabled
--- Transport Adapters for bof-sapci3 ---
Transport Adapter: nxge2029007
State: Enabled
Transport Type: dlpi
device_name: nxge
device_instance: 7
vlan_id: 2029
lazy_free: 1
dlpi_heartbeat_timeout: 10000
dlpi_heartbeat_quantum: 1000
nw_bandwidth: 80
bandwidth: 70
ip_address: x.x.x.x
netmask: 255.255.255.128
Port Names: 0
Port State(0): Enabled
Transport Adapter: nxge2028003
State: Enabled
Transport Type: dlpi
device_name: nxge
device_instance: 3
vlan_id: 2028
lazy_free: 1
dlpi_heartbeat_timeout: 10000
dlpi_heartbeat_quantum: 1000
nw_bandwidth: 80
bandwidth: 70
ip_address: x.x.x.x
netmask: 255.255.255.128
Port Names: 0
Port State(0): Enabled
--- Transport Adapters for bof-sapci6 ---
Transport Adapter: nxge2029007
State: Enabled
Transport Type: dlpi
device_name: nxge
device_instance: 7
vlan_id: 2029
lazy_free: 1
dlpi_heartbeat_timeout: 10000
dlpi_heartbeat_quantum: 1000
nw_bandwidth: 80
bandwidth: 70
ip_address: x.x.x.x
netmask: 255.255.255.128
Port Names: 0
Port State(0): Enabled
Transport Adapter: nxge2028003
State: Enabled
Transport Type: dlpi
device_name: nxge
device_instance: 3
vlan_id: 2028
lazy_free: 1
dlpi_heartbeat_timeout: 10000
dlpi_heartbeat_quantum: 1000
nw_bandwidth: 80
bandwidth: 70
ip_address: x.x.x.x
netmask: 255.255.255.128
Port Names: 0
Port State(0): Enabled
ADMINISTRACIÓN DE LOS TIPOS DE RECURSOS
· Registrar un tipo de recurso # clresourcetype register type
· Quitar un tipo de recurso # clresourcetype unregister type
Ejemplos:
root@bxxx1 # clresourcetype list
SUNW.LogicalHostname:3 -> ip de servicio
SUNW.SharedAddress:2 ->
SUNW.HAStoragePlus:8 -> replicación de grupo de recurso
SUNW.nfs:3.2
SUNW.sap_ci_v2
SUNW.sap_as_v2
SUNW.sapenq
SUNW.sapscs:2
SUNW.sapwebas:5
SUNW.gds:6
root@bxxx1 # clresourcetype show SUNW.LogicalHostname:3
=== Registered Resource Types ===
Resource Type: SUNW.LogicalHostname:3
RT_description: Logical Hostname Resource Type
RT_version: 3
API_version: 2
RT_basedir: /usr/cluster/lib/rgm/rt/hafoip
Single_instance: False
Proxy: False
Init_nodes: All potential masters
Installed_nodes: <All>
Failover: True
Pkglist: SUNWscu
RT_system: True
Global_zone: True
Ver Sun Cluster 3.2(2).
No hay comentarios:
Publicar un comentario