Tags

aix HMC VIOS gpfs AIX6.1 hdlm LPAR dlnkmgr mmcrnsd Clusterware Multibos chuser mmadddisk CRS Filesystem IBM AIX Lun Nim Oracle RAC OracleRac chdev find oprocd oracle /etc/security/limits /etc/syslog.conf Css DLPAR Grid HBA Hitachi HitachiHDLM IVM Io Npiv Oracle Clusterware Parallel File System Rac SAS SSH San Wwpn chfs chpasswd chps crfs crsd evmd extendvg histsize instfix lsdev lspath mksysb mkvdev mmcrfs mmlsnsd mmmount mmrpldisk mmsdrfs multibos -R ocssd pwdadm rmdev swap syslog upgrade %iused /etc/hosts /etc/resolv.conf 2.1.22 3.4.0.1 ADMIN HP Admin HPUX Aix Movies Aix TCP stack Aix Videos Tutorial Aix command Aix hottest Aix tips Aix tutorial Aixpert Backing Up Vios Backup Ethernet Burleson Certified Creatingapair DNS DinamicLinkManager Ethernet adapter in aix Free Education GPFSV3.1 Gpfs 3.2 HACMP HEA HP UX HP administracion HP administration HPUX HSNM2Cli HitachiArrayStorage HitachiReplicationAMS2100 IP Ipvirtuales Ive LHEA Lmon Mandamientos TI Migrar vSphere 4.1 a 5.1 Mirroring Missing paths N_port Id Next Vios Npiv configuration Npiv setup Ntp Offline Online Operating system Oracle Rac 11g OracleCluster OracleGridControl PATH PasswordExpired Performance PermitRootLogin Power Vm ProfessionalCertification RAC 10 RMC RSCT Rbac Re-balancing Replacegpfsdisk Rid RoleBasedAccessControl Rsync SNMGuiinstallation SSD SSD in AIX SSP Setuid Solid State Drive Storage Striping System System ADministrator skill SystemAdministration SystemAdministrator TCPIP TL Telnet Tips Unix Update TL Update Vios VULNERABILITY Vio Server Vios Command Vios New Vip Wwn Zoning actualizar la HMC aix 6.1 alt_disk_install altadisponibilidad archive a directory auluref aurgref authentication auunitadd backgroundprocess backup backup vios bash boot boot problems bootinfo -r bootlis bootlist bosboot cd/dvd cdrom cfgmgr cfgsvc chlv chvg chvg -g rootvg clonar connection crsctl daemon datafile default paging deletingapair diag dlnkmgrview-lu du -kx el340 to el350 emctl errlog error paths errpt evm faq hmc fijar password fileset filesets filesystem root full find / -xdev forced-commands-only fsck ftp ftp aix unsuccessful_login_count getupgfiles gpfs 3.4.0.0 gpfs 3.4.0.1 gpfs 3.4.0.7 grow your rootvg hd6 hitachistorage hmc reports hmc update ifconfig importvg inetd.conf install gpfs installp inutoc jfs kdb kern lck ldap leasblocksalgoritmforloadbalancing linux lmd lms loadbalancing log logger loopmount lpar hmcshutdown lpar information lparstat lparstat -i lsmap lsnim lspartition lsps -a lsrsrc -l lssrc lssw lsvg rootvg maintenance mode memory micro-partitioning migration gpfs mirrovg mkdev mkfs mklv mkps mkramdisk mkvt mmchconfig mmchconfig 6027-1371 mmchdisk mmchfs mmdelcluster-a mmdelfs mmdelnsd mmfs.log.latest mmgetstate mmlsdisk mmlsfs mmlsnsd-F mmlspv mmrestripefs mmumount mount mount iso image multibos -RX multibos -Xac multibos -sX name news num_cmd_elems ons oracle vs sqlserver oslevel -s paginación paging paging space parent passwd passwords paths pendingioblock performanceproblems perl preguntas procesosbackground ps -ef racg racgimon ram disk re-synchonizeapair realmem repair filesystem resource allocated restore restore vios restoringtheprimaryvolumefromasecondaryvolume resume rmcdomainstatus rmpath rmuser rmvdev rootvg rootvg backup rotate server sharedprocessor shrink skill TI smit update_all snapshot snmp snmpdv3 splittingapair spot sqlserver srvctl srvctl modify database ssh with forced commands sshd_config start startrac startsnmen.bat startsrc stop stoprac sudo suspend svmon swapvg syslog.conf syslogd syslogd.conf tar tutorial aix tutorial hmc umask update network hmc updhmc upgrade firmware upgrade nodes in gpfs upgrade steps user v7000 videos online aix viosbr virtual ethernet virtualizacion de FC vlan vmware xargs xdev xntpd

miércoles, 26 de marzo de 2014

Nice and easy way to check if all paths are consistent and available

POSTED ON 21/06/2012 BY CHRISTOPHE

mpio : nice and easy way to check if all paths are consistent and available

Sometimes on a server which had some fiber channel difficulties,  I always check if there are some missing or failed paths by issuing this command (sometimes the numbers are not equal, and we have to reconfigure missing paths) :

root@lpar:/root# lspath | awk '{print $1,$NF}' |sort |uniq -c
18 Enabled fscsi0
6 Enabled fscsi1
12 Failed fscsi1
If there are some failed paths, maybe you should try to re-enable them (quick and painless, can’t do no harm)  with this one-liner :

root@lpar:/root# lspath|grep Failed | awk '{print "chpath -l "$2" -s enable -p "$3}'|ksh
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
root@lpar:/root# lspath | awk '{print $1" " $NF}' |sort |uniq -c
 18 Enabled fscsi0
 18 Enabled fscsi1
And voilà, the failed paths are back online :)

You can also delete some paths before re-discovering them if you have some « missing » or « defined » paths :

lspath -F "name:connection:parent:path_status:status" | egrep "Defined|Missing" | awk -F : '{print "rmpath -l "$1" -p "$3" -w "$2" -d"}' | ksh

Source: http://nixys.fr/blog/?p=176

lunes, 10 de marzo de 2014

*Nix Veda: AIX errpt error output explained - Dissecting errp...

*Nix Veda: AIX errpt error output explained - Dissecting errp...:  errpt - The errpt command generates an error report from entries in an error log   # errpt 982C78BF   0224093211 T S mir0           DISP...