Você está na página 1de 7

===========================================

============================================
lsattr -R -l ent0 -a media_speed

If this command results in the following error


lsattr: 0514-528 The "media_speed" attribute does not exist in the
predefined
device configuration database.

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

To change the media speed, run:


chdev -P -l ent0 -a media_speed=100_Half_Duplex

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

============================================
============

Step1: Failover the services to the other node..


Step2: Smitty etherChannel -- > remove link aggregation (ent3)
or
ifconfig en3 down deatch
Step3: ifconfig ent0 down detach
Step4 : ifconfig ent1 down detach
Step5: chdev -l ent0 -a media_speed=XXX
Step6: chdev -l ent1 -a media_speed=xxx
Step7:ifconfig ent0 up
Step8: Ifconfig ent1 up
Step9: Smitty etherchannel-- >Add link aggregation
Step10:Failback services from the othernode to primary

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

How to put online/offline or move resource groups:


root@NodeA:~# clRGmove
How to list the resource groups:
root@NodeA:~# cllsgrp
How to create a large snapshot of the hacmp configuration:
root@NodeA:~# clsnapshotinfo
How to show short resource group information:
root@NodeA:~# cllsres
How to list the cluster manager state:
root@NodeA:~# lssrc -ls clstrmgrES
Cluster manager states:
ST_NOT_CONFIGURED Node never started
ST_INIT Node configured but down - not running
ST_STABLE Node up and running
ST_RP_RUNNING
ST_JOINING
ST_BARRIER
ST_CBARRIER
ST_VOTING
ST_RP_FAILED Node with event error
How to show heartbeat information:
root@NodeA:~# lssrc -ls topsvcs
How to check logs related to hacmp:
root@NodeA:~# odmget HACMPlogs
How to list all information from topology HACMP:
root@NodeA:~# lssrc -lstopsvcs
How to show all info about group:
root@NodeA:~# lssrc -ls grpsvcs
How to list the logs:
root@NodeA:~# cllistlogs
How to list the resources defined for all resource group:
root@NodeA:~# clshowres
How to show resource information by resource group:
root@NodeA:~# clshowres -g'RG'
How to show resource information by node:
root@NodeA:~# clshowres -n'NODE'
How to locate the resource groups and display status (-s):

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

How to list the details of network ether1:


root@NodeA:~# cllsnw -n ether1
How to show network ip/nonip interface information:
root@NodeA:~# cllsif
How to list the details of network adapter node1_service:
root@NodeA:~# cllsif -n node1_service
How to list the shared vgs which can be accessed by all nodes:
root@NodeA:~# cllsvg
How to list the shared vgs in resource group dbRG:
root@NodeA:~# cllsvg -g dbRG
How to list the shared lvs:
root@NodeA:~# cllslv
How to list the shared lvs in the resource group dbRG:
root@NodeA:~# cllslv -g dbRG
How to list the PVID of disks in the resource group appRG:
root@NodeA:~# cllsdisk -g appRG
How to list the shared file systems:
root@NodeA:~# cllsfs
How to list the shared file systems in the resource group sapRG:
root@NodeA:~# cllsfs -g sapRG
How to show info about all network modules:
root@NodeA:~# cllsnim
How to show info about ether network module:
root@NodeA:~# cllsnim -n ether
How to list the runtime parameters for the node node1:
root@NodeA:~# cllsparam -n node1
How to add a cluster definition with name dcm and id 3:
root@NodeA:~# claddclstr -i 3 -n dcm
How to create resource group sapRG with nodes n1,n2 in cascade:
root@NodeA:~# claddgrp -g sapRG -r cascading -n n1 n2
Creates an application server ser1 with startscript as /usr/start and stop script as /usr/stop:
root@NodeA:~# claddserv -s ser1 -b /usr/start -e /usr/stop
How to change cluster definitions name to dcmds and id to 2:
root@NodeA:~# clchclstr -i 2 -n dcmds
How to change the cluster security to enhanced:
root@NodeA:~# clchclstr -s enhanced
How to delete the resource group appRG and related resources:
root@NodeA:~# clrmgrp -g appRG

How to remove the node node69:


root@NodeA:~# clrmnode -n node69
How to remove the adapter named node69_svc:
root@NodeA:~# clrmnode -a node69_svc
How to remove all resources from resource group appRG:
root@NodeA:~# clrmres -g appRG
How to remove the application server app69:
root@NodeA:~# clrmserv app69
How to remove all applicaion servers:
root@NodeA:~# clrmserv ALL
How to list the nodes with active cluster manager processes from cluster manager on node
node1clgetaddr node1 returns a pingable address from node node1:
root@NodeA:~# clgetactivenodes -n node1
How to list the info about resource group sapRG:
root@NodeA:~# clgetgrp -g sapRG
How to list the participating nodes in the resource group sapRG:
root@NodeA:~# clgetgrp -g sapRG -f nodes
How to get the ip label associated to the resource group:
root@NodeA:~# clgetip sapRG
How to list the network for ip 192.168.100.2, netmask 255.255.255.0:
root@NodeA:~# clgetnet 192.168.100.2 255.255.255.0
How to list the VG of LV nodelv:
root@NodeA:~# clgetvg -l nodelv
How to add node5 to the cluster:
root@NodeA:~# clnodename -a node5
How to change the cluster node name node5 to node3:
root@NodeA:~# clnodename -o node5 -n node3

Você também pode gostar