Escolar Documentos
Profissional Documentos
Cultura Documentos
============================================
lsattr -R -l ent0 -a media_speed
then the Ethernet card is a 10Mbps card that will only do 10Mbps/half
duplex
If you do have a 100Mbps card, the lsattr command will return something
like this:
10_Half_Duplex
10_Full_Duplex
100_Half_Duplex
100_Full_Duplex
Auto_Negotiation
These are the media speeds the card will understand. To see the cards
current media speed setting you can run
lsattr -EH -l ent0 -a media_speed
The value for media_speed can be any of the values listed by the lsattr -R
command above. The change does not take effect until you reboot the
machine.
If you select a value other than Auto_Negotiation the switch port the
machine is connected to must have the same configuration. If the switch
and the machine do not match you may get no network connectivity or
poor performance.
## Returns Driver statistics
root@monster:~# netstat -v | egrep "(ETHERNET|Media)"
ETHERNET STATISTICS (ent0) :
Media Speed Selected: 100 Mbps Full Duplex
Media Speed Running: 100 Mbps Full Duplex
root@monster:~# entstat -d ent0 | egrep "(ETHERNET|Media)"
ETHERNET STATISTICS (ent0) :
Media Speed Selected: 100 Mbps Full Duplex
Media Speed Running: 100 Mbps Full Duplex
============================================
============
Convert VG to Big VG
========================
smitty vg
Set Characteristics of a Volume Group
Change a Volume Group
slect the vg
Change to big VG format? YES
HACMP
1)
With Hacmp, you ned to be careful since the timestamp on the VG changes so
if unable to change the VG thru C-SPOC, then you will have to bring down
cluster and verify and sync _THIS iS IF ONLY THE CHANGE DOESN"T GET
PROPOGATD TO BOTH NODES THRU C-SPOC.
Now to change the vg to Big VG. I prefer Scalable instead of Big VG
smitty cl_admin
HACMP Logical Volume Management
Shared Volume Groups
Set Characteristics of a Shared Volume Group
Change/Show characteristics of a Shared Volume Group
Change to big VG format? YES
2)
Stop HACMP services and do a manual varyonvg. Convert it to BIG Vg.
On node1: varyonvg -b -u vgx
On node2: importvg -L vgx hdiskx
On node1: varyoffvg vgx
After this do a offline cluster sync and correct errors interactively.
Now you are good to start the cluster services
Basic HACMP
How to start cluster daemons (options in that order: clstrmgr, clsmuxpd, broadcast message,
clinfo, cllockd):
root@NodeA:~# clstart -m -s -b -i -l
How to show cluster state and substate (depends on clinfo):
root@NodeA:~# clstat
SNMP-based tool to show cluster state:
root@NodeA:~# cldump
Similar to cldump, perl script to show cluster state:
root@NodeA:~# cldisp
How to list the local view of the cluster topology:
root@NodeA:~# cltopinfo
How to list the local view of the cluster subsystems:
root@NodeA:~# clshowsrv -a
How to show all necessary info about HACMP:
root@NodeA:~# clshowsrv -v
How to show HACMP version:
root@NodeA:~# lslpp -L | grep cluster.es.server.rte
How to verify the HACMP configuration:
root@NodeA:~# /usr/es/sbin/cluster/diag/clconfig -v -O
How to list app servers configured including start/stop scripts:
root@NodeA:~# cllsserv
How to locate the resource groups and display their status:
root@NodeA:~# clRGinfo -v
How to rotate some of the log files:
root@NodeA:~# clcycle
A cluster ping program with more arguments:
root@NodeA:~# cl_ping
Cluster rsh program that take cluster node names as argument:
root@NodeA:~# clrsh
How to find out the name of the local node:
root@NodeA:~# get_local_nodename
How to check the HACMP ODM:
root@NodeA:~# clconfig
root@NodeA:~# clfindres
How to list interface name/interface device name/netmask associated with a specified ip
label / ip address of a specific node:
root@NodeA:~# clgetif
Cluster verification utility:
root@NodeA:~# clverify
How to list cluster topology information:
root@NodeA:~# cllscf
X utility for cluster configuration:
root@NodeA:~# xclconfig
X utility for hacmp management:
root@NodeA:~# xhacmpm
X utility for cluster status:
root@NodeA:~# xclstat
How to force shutdown cluster immediately without releasing resources:
root@NodeA:~# clstop -f -N
How to do graceful shutdown immediately with no takeover:
root@NodeA:~# clstop -g -N
How to do graceful shutdown immediately with takeover:
root@NodeA:~# clstop -gr -N
How to sync the cluster topology:
root@NodeA:~# cldare -t
How to do the mock sync of topology:
root@NodeA:~# cldare -t -f
How to sync the cluster resources:
root@NodeA:~# cldare -r
How to do the mock sync of resources:
root@NodeA:~# cldare -r -f
How to list the name and security level of the cluster:
root@NodeA:~# cllsclstr
How to list the info about the cluster nodes:
root@NodeA:~# cllsnode
How to list info about node69:
root@NodeA:~# cllsnode -i node69
How to list the PVID of the shared hard disk for resource group dataRG:
root@NodeA:~# cllsdisk -g dataRG
How to list all cluster networks:
root@NodeA:~# cllsnw