博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Dell服务器MegaCli命令只返回Exit Code: 0x00问题分析
阅读量:6120 次
发布时间:2019-06-21

本文共 5140 字,大约阅读时间需要 17 分钟。

  hot3.png

    今天同事给我说一台dell的服务器做了raid后,使用MegaCli看不到raid信息,上去看了一下确实不返回任何raid信息,但是确实机器上做了raid。

   这就奇怪了,然后把MegaCli升级到最新版,还是同样的结果

    公司用的基本上都是dell系列的服务器,之前机器的raid信息都是MegaCli获取的,这几情况就有点怪异了。因为之前遇到过raid卡版本导致的其他问题,所以这次也怀疑是不是raid卡版本导致的问题,所以打算看看系统raid卡的版本信息

    没有找到raid信息,不过看了一下SCSI控制器的信息,根据SAS1068E上网一查,得出SAS1068E的raid卡是SAS 6i/R。

    为啥SAS 6i/R的raid信息用MegaCli64命令就获取不到呢,SAS 6/iR 只支持2块硬盘做raid0或者raid1。现在返回去看看MegaCli64工具,MegaCli64工具虽然非常好用,功能也很多,不仅能查看RAID卡信息,而且还能设置RAID卡,但是它却不支持SAS 6/iR的RAID卡,Dell好多1U型号的服务器默认的RAID控制器都是SAS 6i/R ,而对于这款控制器MegaCli64是不能使用的。那为什么MegaCli64不支持SAS 6i/R呢,因为megacli是为PERC控制器设计的(它使用的是大家熟悉的megaraid驱动),但是SAS 6i/R控制器针对的是mpt*类型的驱动,所以MegaCli64取不出raid信息。不过想在命令行模式下想管理SAS 6i/R,可以使用Lsiutil这个工具。

下载lsiutil工具

 链接:http://www.lsi.com/downloads/Public/Obsolete/Obsolete%20Common%20Files/LSIUtil_1.62.zip

解压后看到支持的系统还是蛮多的啊

  我是linux 64位的系统,在linux目录下直接拷贝lsiutil.x86_64到目标机器上,修改为可执行权限。下面我们来看看lsiutil.x86_64怎么用,lsiutil.x86_64有两种模式,一种是交互式的,一种是命令行模式:

lsiutil.x86_64 交互式

lsiutil.x86_64 命令行式

  可以看到lsiutil.x86_64也是可以查看raid信息的。帮助文档如下:

  

如果你是debian/ubuntu系统,则可以下载相应的deb包

wget 'http://hwraid.le-vert.net/debian/pool-wheezy/lsiutil_1.60-1_amd64.deb'dpkg -i lsiutil_1.60-1_amd64.deb

关于次问题的官方解释如下:

下面附上MegaCli64的返回状态码信息

MegaCLI Error Messages0x00 Command completed successfully 0x01 Invalid command 0x02 DCMD opcode is invalid 0x03 Input parameters are invalid 0x04 Invalid sequence number 0x05 Abort isn't possible for the requested command 0x06 Application 'host' code not found0x07 Application already in use - try later0x08 Application not initialized0x09 Given array index is invalid0x0a Unable to add missing drive to array, as row has no empty slots0x0b Some of the CFG resources conflict with each other or the current config0x0c Invalid device ID / select-timeout0x0d Drive is too small for requested operation0x0e Flash memory allocation failed0x0f Flash download already in progress0x10 Flash operation failed0x11 Flash image was bad0x12 Downloaded flash image is incomplete0x13 Flash OPEN was not done0x14 Flash sequence is not active0x15 Flush command failed0x16 Specified application doesn't have host-resident code0x17 LD operation not possibe - CC is in progress0x18 LD initialization in progress0x19 LBA is out of range0x1a Maximum LDs are already configured0x1b LD is not OPTIMAL0x1c LD Rebuild is in progress0x1d LD is undergoing reconstruction0x1e LD RAID level is wrong for requested operation0x1f Too many spares assigned0x20 Scratch memory not available - try command again later0x21 Error writing MFC data to SEEPROM0x22 Required HW is missing (i.e. Alarm or BBU)0x23 Item not found0x24 LD drives are not within an enclosure0x25 PD CLEAR operation is in progress0x26 Unable to use SATA(SAS) drive to replace SAS(SATA)0x27 Patrol Read is disabled0x28 Given row index is invalid0x2d SCSI command done, but non-GOOD status was received - see mf.hdr.extStatus for SCSI_STATUS0x2e IO request for MFI_CMD_OP_PD_SCSI failed - see extStatus for DM error0x2f Matches SCSI RESERVATION_CONFLICT0x30 One or more of the flush operations failed0x31 FW real-time currently not set0x32 Command issues while FW in wrong state (i.e. GET RECON when op not active)0x33 LD is not OFFLINE - IO not possible0x34 Peer controller rejected request (possibly due to resource conflict)0x35 Unable to inform peer of communication changes (retry might be appropriate)0x36 LD reservation already in progress0x37 I2C errors were detected0x38 PCI errors occurred during XOR/DMA operation0x39 Diagnostics failed - see event log for details0x3a Unable to process command as boot messages are pending0x3b Returned in case if foreign configurations are imcomplete0x3d Returned in case if a command is tried on unsupported hardware0x3e CC scheduling is disabled0x3f PD CopyBack operation is in progress0x40 Selected more than one PD per array0x41 Microcode update operation failed0x42 Unable to process command as drive security feature is not enabled0x43 Controller already has a lock key0x44 Lock key cannot be backed-up0x45 Lock key backup cannot be verified0x46 Lock key from backup failed verification0x47 Rekey operation not allowed, unless controller already has a lock key0x48 Lock key is not valid, cannot authenticate0x49 Lock key from escrow cannot be used0x4a Lock key backup (pass-phrase) is required0x4b Secure LD exist0x4c LD secure operation is not allowed0x4d Reprovisioning is not allowed0x4e Drive security type (FDE or non-FDE) is not appropriate for requested operation0x4f LD encryption type is not supported0x50 Cannot mix FDE and non-FDE drives in same array0x51 Cannot mix secure and unsecured LD in same array0x52 Secret key not allowed0x53 Physical device errors were detected0x54 Controller has LD cache pinned0x55 Requested operation is already in progress0x56 Another power state set operation is in progress0x57 Power state of device is not correct0x58 No PD is available for patrol read0x59 Controller resert is required0x5a No EKM boot agent detected0x5b No space on the snapshot repositiry VD0x5c For consistency SET PiTs, some PiT creations might fail and some succeed0xFF Invalid status - used for polling command completion

转载于:https://my.oschina.net/guol/blog/169108

你可能感兴趣的文章
类斐波那契数列的奇妙性质
查看>>
配置设置[Django]引入模版之后报错Requested setting TEMPLATE_DEBUG, but settings are not configured....
查看>>
下一步工作分配
查看>>
Response. AppendHeader使用大全及文件下载.net函数使用注意点(转载)
查看>>
Wait Functions
查看>>
代码描述10313 - Pay the Price
查看>>
jQuery最佳实践
查看>>
centos64i386下apache 403没有权限访问。
查看>>
vb sendmessage 详解1
查看>>
jquery用法大全
查看>>
Groonga 3.0.8 发布,全文搜索引擎
查看>>
PC-BSD 9.2 发布,基于 FreeBSD 9.2
查看>>
网卡驱动程序之框架(一)
查看>>
css斜线
查看>>
Windows phone 8 学习笔记(3) 通信
查看>>
重新想象 Windows 8 Store Apps (18) - 绘图: Shape, Path, Stroke, Brush
查看>>
Revit API找到风管穿过的墙(当前文档和链接文档)
查看>>
Scroll Depth – 衡量页面滚动的 Google 分析插件
查看>>
Windows 8.1 应用再出发 - 视图状态的更新
查看>>
自己制作交叉编译工具链
查看>>