Changing media spped in aix

Embed Size (px)

Citation preview

  • 7/25/2019 Changing media spped in aix

    1/7

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

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

    lsattr -R -l ent0 -a media_speedIf this command results in the following error

    lsattr: 0514-528 The "media_speed" attribute does not exist in the

    predefineddevie onfi!uration database

    then the Ethernet card is a 10Mbps card that will only do 10Mbps/halfduplex

    If you do have a 100Mbps card the lsattrcommand will return somethingli!e this"

    10_#alf_$uplex10_%ull_$uplex100_#alf_$uplex100_%ull_$uplex

    &uto_'e!otiation

    #hese are the media speeds the card will understand$ #o see the cardscurrent media speed setting you can run

    lsattr -(# -l ent0 -a media_speed

    #o change the media speed run"

    hdev -) -l ent0 -a media_speed*100_#alf_$uplex

    #he value for media_speedcan be any of the values listed by the lsattr -Rcommand above$ #he change does not ta!e e%ect until you reboot themachine$

    If you select a value other thanAuto_Negotiationthe switch port themachine is connected to must have the same con&guration$ If the switchand the machine do not match you may get no networ! connectivity orpoor performance$

    '' (eturns )river statisticsroot*monster"+' netstat ,v - egrep .E#E(E#-Media2.E#E(E# 3#4#I3#I53 ent02 "Media 3peed 3elected" 100 Mbps 6ull )uplexMedia 3peed (unning" 100 Mbps 6ull )uplex

    root*monster"+' entstat ,d ent0 - egrep .E#E(E#-Media2.E#E(E# 3#4#I3#I53 ent02 "Media 3peed 3elected" 100 Mbps 6ull )uplexMedia 3peed (unning" 100 Mbps 6ull )uplex

    mailto:root@monstermailto:root@monstermailto:root@monstermailto:root@monster
  • 7/25/2019 Changing media spped in aix

    2/7

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

    3tep1" 6ailover the services to the other node$$3tep7" 3mitty ether5hannel ,, 8 remove lin! aggregation ent92orifcon&g en9 down deatch3tep9" ifcon&g ent0 down detach3tep: " ifcon&g ent1 down detach3tep;" chdev ,l ent0 ,a media" chdev ,l ent1 ,a media

  • 7/25/2019 Changing media spped in aix

    3/7

    1asic 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

  • 7/25/2019 Changing media spped in aix

    4/7

    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 errorHow 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):

  • 7/25/2019 Changing media spped in aix

    5/7

    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

  • 7/25/2019 Changing media spped in aix

    6/7

    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

  • 7/25/2019 Changing media spped in aix

    7/7

    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.0How 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