What are those AIX fcstat error numbers all about?

From: https://www.ibm.com/developerworks/community/blogs/cgaix/entry/Using_the_AIX_VIOS_fcstat_command?lang=zh_cn

What are those AIX fcstat error numbers all about?
cggibbo | 2016年11月17日 | 标签: fcstat errno gibson chris vios aix | 1 条评论 | 6,140 次访问

When troubleshooting Fibre Channel adapter issues on AIX (or VIOS), I often use the fcstat command to assist me in the process. The command may display error numbers similar to the following:

$ fcstat fcs0

Error opening device: /dev/fscsi0
errno: 00000045

The error number (errno) displayed can (in some cases) be used to identify the root cause of a problem. In the example above, the error number is 45. This number is in hex. If we convert this to decimal, the number is 69. Now, if we look for 69 in the /usr/include/errno.h file (on AIX), we discover that this error number relates to a “Network is down” event.

fcstat fcs0

Error opening device: /dev/fscsi0
errno: 00000045

echo “ibase=16; 45”|bc

69

grep 69 /usr/include/errno.h

#define ENETDOWN 69 /* Network is down */

The AIX error report (errpt or errlog on VIOS) also tells me that there’s some type of link error. This helps me focus my investigation toward the most likely problem area. In this case, I suspect either a physical link or cable problem between my FC adapter and the SAN switch.

IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
7BFEEA1F 1116121816 T H fcs0 LINK ERROR

errpt -aN fcs0 | grep -p Desc


Description
LINK ERROR

We can use the same process for other errors displayed by the fcstat command. For example:

fcstat fcs0

Error opening device: /dev/fscsi0
errno: 00000046

echo “ibase=16; 46”|bc

70

grep 70 /usr/include/errno.h

#define ENETUNREACH 70 /* Network is unreachable */

This particular error may direct us to the solution outlined in the following tech note:

Fibre channel workspace takes over 2 minutes to load but returns no data
http://www-01.ibm.com/support/docview.wss?uid=swg21600064

fcstat Command (AIX 6.1)
http://www.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds2/fcstat.htm

fcstat Command (AIX 7.1)
http://www.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.cmds2/fcstat.htm

fcstat Command (AIX 7.2)
http://www.ibm.com/support/knowledgecenter/ssw_aix_72/com.ibm.aix.cmds2/fcstat.htm

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值