0% found this document useful (0 votes)
216 views2 pages

AIX For System Administrators - Adapters

A host bus adapter (HBA) allows physical connectivity to storage. There are fibre channel HBAs and SCSI HBAs. The lsattr command can be used to view and configure HBA settings like the number of queued commands, error recovery policy, and maximum transfer size. HBAs can be hot-plug replaced using tools like the PCI Hot Plug Manager in diag without downtime after removing device configurations.

Uploaded by

danielvp21
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
216 views2 pages

AIX For System Administrators - Adapters

A host bus adapter (HBA) allows physical connectivity to storage. There are fibre channel HBAs and SCSI HBAs. The lsattr command can be used to view and configure HBA settings like the number of queued commands, error recovery policy, and maximum transfer size. HBAs can be hot-plug replaced using tools like the PCI Hot Plug Manager in diag without downtime after removing device configurations.

Uploaded by

danielvp21
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Adapter

ConnectorcanbePCI:
FCHBAFibreChannelHostBusAdapter
fcsxhardwareadapter,
fscsixfcscsiprotocoldevice(logicaldevice)(scsiprotocoloverthefcprotocol)

fcstatfcsXfiberchannelstatisticsreport

S CS IHBAS CS IHostBusAdapter
sisscsiaXSCSIADAPTER(internaldisksareconnectedtothis)
lsdevC|grepsisscsialistthescsiadapters
lsdevCsscsiHliststhescsideviceswithlocationcode

AhostbusadapterisaphysicalFibreChanneladapterthatcanbeassignedtoalogicalpartition.

ADAPTERS ETTINGS :
root@aix21:/#lsattrElfscsi0
attachswitchHowthisadapterisCONNECTEDFalse<showsactualconnectionprotocol(None,switch,allehet)
dyntrknoDynamicTrackingofFCDevicesTrue<dynamicallyfollowsSANchanges
fc_err_recovdelayed_failFCFabricEventErrorRECOVERYPolicyTrue<3.delayed_failorfast_fail
scsi_id0x133300AdapterSCSIIDFalse
sw_fc_class3FCClassforFabricTrue
root@aix21:/#lsattrElfcs0
bus_intr_lvl305BusinterruptlevelFalse
bus_io_addr0xffc00BusI/OaddressFalse
bus_mem_addr0xfffbf000BusmemoryaddressFalse
init_linkalINITLinkflagsTrue<alorpt2pt
intr_priority3InterruptpriorityFalse
lg_term_dma0x800000LongtermDM ATrue<deafault0x200000,max.0x8000000
max_xfer_size0x100000M aximumTransferSizeTrue<defaultis100000,max1000000
num_cmd_elems200M aximumnumberofCOM M ANDStoqueuetotheadapterTrue<default200,maxis1024or2048
pref_alpa0x1PreferredAL_PATrue
sw_fc_class2FCClassforFabricTrue

attach:(setstheFiberChanneltopology)
none:ifnocablehasbeenpluggedin
al:alldevicesareinalooporring,similartotokenringnetworking.Thefailureofonedevicecausesabreakinthering.
switch:alldevicesorloopsofdevicesareconnectedtoFibreChannelswitches,similarconceptuallytomodernEthernetimplementations
dyntrk:
http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.prftungd/doc/prftungd/fast_fail_dynamic_interaction.htm
Ifitisonyes,itenablesdynamicchangingoffibrechannelcableconnectionsonswitchportsorstorageports.
WehavechangedfewStoragePortstoanotherSwitchlastsaturday==>thatmeans,thattheHardwarePathchangedfortheseservers,
wheretheOption"dyntrk"issettono.>reconfigureyourdisks
fc_err_recov:
http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.prftungd/doc/prftungd/fast_fail_dynamic_interaction.htm
delayed_fail:waitssometimebeforeacting.
fast_failisusefulwheremultipathingsoftwareisused.Thiswouldsupportfasterfailovertoalternatepaths
init_link:
fromonlinehelp:"DonotchangethisattributeunlessdirectedbyIBM support."
al:arbitraredloop:firsttriesal,thenpt2pt,ifnotsuccesthenlinkremainsdown
pt2pt:triespt2pt,ifnotsuccesthenlinkremainsdown
lg_term_dma:
itcontrolstheDM Amemoryresourcethatanadapterdrivercanuse.
Ifyouhaveadualportadapterthemaximumvalueisdividedbetweentheadapterports.
max_xfer_size:
controlsthemaximumtransfersize.Youcanincreasethisvaluetoimproveperformance.
Differentstoragesmightneeddifferentvaluestoutilizetheperformance
num_cmd_elems:
M aximumnumberofcommandstobequeuedtotheadapter.
Whenalargenumberofsupportedstoragedevicesareconfigured,youcanincreasethistoimproveperformance.
ifqueue_depth=16(hdiskorpowerpath)andwehave10disks,num_cmd_elementshouldbeminimum160

HOTPLUGadapterreplacement:
0.lsslotcpci(checkiftheadapterhotpluggable)
1.pathsarebetterinoffline(C)state:dlnkmgrofflinehba01.01

itcanbedonewith"smittympio"aswell:
>M PIOM anagement>M PIOPathM anagement>RemovePaths>DisablePathsunderaParent

2.rmdevRlfcs1<(R:unconfiguresthedeviceanditschildren,l:specifiesthelogicaldevice)
3.adapterreplacement:
diag>taskselection>hotplugtask>PCIHotPlugM anager>Replace/Remove...
Afterstartingit,adapterwillblink.
Duringreplacementweshouldleavethismenupointinopen,afterreplacementwecanclosethismenupointindiag(enter)
(Ifthismenuoptionisinopenstate,itwilllocktheadapterandconfiguringitisnotpossible,soshouldbeclosed.)
4.cfgmgr,thenewdevicewillcomeupwithnewWWN(lscfgvplfcsX,lsattrElfscsiX)
5.mailtostorageteam,formappingthestoragetothenewWWN
6.Anothercfgmgrwillbringupthenewdisks
7.putadaptertoonlinestate:dlnkmgronlinehba01.01

AdapterreplacementwithS DDdynamically(hotplug):
datapathqueryadapter<identifytheadaptertobereplaced
datapathremoveadapterX<Xistheadapternumbertoberemoved("selectcounts"showsI/Ostillrunningonotheradapt.)
rmdevdlfcsXR<removefcs0andallofitschilddevices(lsdevCcdisk,shouldnotshowanydevice)
diag>taskselection>hotplugtask>PCIHotPlugManager>Replace/Remove...
(fromcommandline:lscfgvplfcs0|grepAdapter>drslotRcpcisP1I8<P1I8istheslotlocation)
gototheESSspecialisttoupdatetheWWNofthenewadapter(thezoneinformationofthefabricswitchmustbeupdated)
cfgmgr<checkwithlsdevCcadapter,lsdevCcdisk
addpaths<configurethenewadapteranditschilddevicestoSDD

AdapterparameterchangewithS DD:
lsattrElfcsX,lsattrElfscsiX<checkingtheneededsettings(num_cmd_elements,fc_err_recov,...)
rmdevdldpoR<removeSDDvpathdevices
rmdevlfcsXR<putfcadapteranditschildrendevicestoDefinedstate
chdevlfcsXanum_cmd_elems=1024
chdevlfscsiXafc_err_recov=fast_fail
cfgmgrlfcsX<configiurethefcadapter,childrendevicesandhdisks
cfallvpath<configureSDDvpathdevices(iftheywereremoved)

PCIDMA(DMA)error:
IftherearetoomanyFCadaptersandtoomanyLUNsattachedtotheadapter,thiswillleadtoissuesconfiguringtheLUNs.Errorswilllooklike:
LABEL:DMA_ERR
IDENTIFIER:00530EA6
ResourceName:PCIDMA
ResourceClass:NONE
ResourceType:NONE
Soifyougettheseerrors,you'llneedtochangethemax_xfer_sizebacktothedefaultvalue.AlsonotethatifyouarebootingfromSAN,ifyouencounterthiserror,youwon'tbeabletoboot,sobesureto
haveabackoutplanifyouplantochangethisandarebootingfromSAN.

You might also like