今天同事给我说一台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工具

链接:

ftp://ftp.ntplx.net/pub/LSI/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信息的。帮助文档如下:

http://www.thomas-krenn.com/de/wikiDE/images/4/44/Lsi_userguide_2006_20130528.pdf

如果你是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

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

http://lists.us.dell.com/pipermail/linux-poweredge/2009-March/038758.html

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

MegaCLI Error Messages

0x00 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 found
0x07 Application already in use - try later
0x08 Application not initialized
0x09 Given array index is invalid
0x0a Unable to add missing drive to array, as row has no empty slots
0x0b Some of the CFG resources conflict with each other or the current config
0x0c Invalid device ID / select-timeout
0x0d Drive is too small for requested operation
0x0e Flash memory allocation failed
0x0f Flash download already in progress
0x10 Flash operation failed
0x11 Flash image was bad
0x12 Downloaded flash image is incomplete
0x13 Flash OPEN was not done
0x14 Flash sequence is not active
0x15 Flush command failed
0x16 Specified application doesn't have host-resident code
0x17 LD operation not possibe - CC is in progress
0x18 LD initialization in progress
0x19 LBA is out of range
0x1a Maximum LDs are already configured
0x1b LD is not OPTIMAL
0x1c LD Rebuild is in progress
0x1d LD is undergoing reconstruction
0x1e LD RAID level is wrong for requested operation
0x1f Too many spares assigned
0x20 Scratch memory not available - try command again later
0x21 Error writing MFC data to SEEPROM
0x22 Required HW is missing (i.e. Alarm or BBU)
0x23 Item not found
0x24 LD drives are not within an enclosure
0x25 PD CLEAR operation is in progress
0x26 Unable to use SATA(SAS) drive to replace SAS(SATA)
0x27 Patrol Read is disabled
0x28 Given row index is invalid
0x2d SCSI command done, but non-GOOD status was received - see mf.hdr.extStatus for SCSI_STATUS
0x2e IO request for MFI_CMD_OP_PD_SCSI failed - see extStatus for DM error
0x2f Matches SCSI RESERVATION_CONFLICT
0x30 One or more of the flush operations failed
0x31 FW real-time currently not set
0x32 Command issues while FW in wrong state (i.e. GET RECON when op not active)
0x33 LD is not OFFLINE - IO not possible
0x34 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 progress
0x37 I2C errors were detected
0x38 PCI errors occurred during XOR/DMA operation
0x39 Diagnostics failed - see event log for details
0x3a Unable to process command as boot messages are pending
0x3b Returned in case if foreign configurations are imcomplete
0x3d Returned in case if a command is tried on unsupported hardware
0x3e CC scheduling is disabled
0x3f PD CopyBack operation is in progress
0x40 Selected more than one PD per array
0x41 Microcode update operation failed
0x42 Unable to process command as drive security feature is not enabled
0x43 Controller already has a lock key
0x44 Lock key cannot be backed-up
0x45 Lock key backup cannot be verified
0x46 Lock key from backup failed verification
0x47 Rekey operation not allowed, unless controller already has a lock key
0x48 Lock key is not valid, cannot authenticate
0x49 Lock key from escrow cannot be used
0x4a Lock key backup (pass-phrase) is required
0x4b Secure LD exist
0x4c LD secure operation is not allowed
0x4d Reprovisioning is not allowed
0x4e Drive security type (FDE or non-FDE) is not appropriate for requested operation
0x4f LD encryption type is not supported
0x50 Cannot mix FDE and non-FDE drives in same array
0x51 Cannot mix secure and unsecured LD in same array
0x52 Secret key not allowed
0x53 Physical device errors were detected
0x54 Controller has LD cache pinned
0x55 Requested operation is already in progress
0x56 Another power state set operation is in progress
0x57 Power state of device is not correct
0x58 No PD is available for patrol read
0x59 Controller resert is required
0x5a No EKM boot agent detected
0x5b No space on the snapshot repositiry VD
0x5c For consistency SET PiTs, some PiT creations might fail and some succeed
0xFF Invalid status - used for polling command completion
 
http://www.codeweblog.com/dell%E6%9C%8D%E5%8A%A1%E5%99%A8megacli%E5%91%BD%E4%BB%A4%E5%8F%AA%E8%BF%94%E5%9B%9Eexit-code-0x00%E9%97%AE%E9%A2%98%E5%88%86%E6%9E%90/

Dell服务器MegaCli命令只返回Exit Code: 0x00问题分析的更多相关文章

  1. Dell服务器Raid卡电池策略调整

    DELL服务器的Riad卡都有可充电池的特性,这块可充电电池,在不使用时,也会有微弱的放电现象,当它的电量放电到低到一定程度时,Raid卡控制器就会对电池进行一次“放电”,将剩余的电量放掉,然后再进行 ...

  2. redis 从0 到 1 键值相关命令 服务器相关命令

    keys * 获取所有的key   忽略其数据类型 数据为空   返回(empty list or set) keys a* .*b 获取以a开头 或者 以b结尾的key 返回(empty list ...

  3. [NodeJS]exit code

    NodeJs 如何返回exit Code code =1; process.emit("exit ") process.reallyExit(code);

  4. Megacli查看Dell服务器Raid状态

    通常我们使用的DELL/HP/IBM三家的机架式PC级服务器阵列卡是从LSI的卡OEM出来的,DELL和IBM两家的阵列卡原生程度较高,没有做太多封装,可以用原厂提供的阵列卡管理工具进行监控:而HP的 ...

  5. Dell服务器R320在Centos6.5系统上安装MegaCli管理主板集成磁盘阵列卡

    折腾了两天啊,我的神啊,,终于可以安装了 针对Dell服务器的R320版本主板集成的磁盘阵列卡,需要下载MegaCli 8或更新版本 下载链接: http://pan.baidu.com/s/1mgB ...

  6. DELL服务器引导光盘图片及下载链接

    DELL服务器引导光盘图片及下载链接 所有的下载地址均是ftp开头的,下载时,请 拷贝下载地址,然后放到浏览器的地址栏进行下载! 各个下载地址汇总: http://search.dell.com/re ...

  7. Linux 下子线程 exit code 在主线程中的使用

    Linux线程函数原型是这样的: void* thread_fun(void* arg) 它的返回值是 空类型指针,入口参数也是 空类型指针.那么线程的 exit code 也应该是 void * 类 ...

  8. 应用程序出现挂死,.NET Runtime at IP 791F7E06 (79140000) with exit code 80131506.

    工具出现挂死问题 1.问题描述 工具出现挂死问题,巡检IIS发现以下异常日志 现网系统日志: 事件类型:    错误 事件来源:    .NET Runtime 描述: Application: Di ...

  9. LSI MegaCli 命令使用4

    Dell服务器常用管理命令总结准备新版本的 MegaCli-1.01.24-0.i386.rpm 会把程序安装在/opt下,可以自定义安装目录,例如:rpm --relocate /opt/=/usr ...

随机推荐

  1. QT事件过滤器(QT事件处理的5个层次:自己覆盖或过滤,父窗口过滤,Application过滤与通知)

    Qt事件模型一个真正强大的特色是一个QObject 的实例能够管理另一个QObject 实例的事件. 让我们试着设想已经有了一个CustomerInfoDialog的小部件.CustomerInfoD ...

  2. 几种交换两个数函数(swap函数)的写法和解析

    #include <iostream> using namespace std; /*值传递,局部变量a和b的值确实在调用swap0时变化了,当结束时,他们绳命周期结束*/ void sw ...

  3. 浅谈云计算之SAN扩展系统设计

    设计背景:不管是公有云还是私有云,为了提供服务的持续性(Business Continuity,BC)和数据的灾难恢复(Disaster Recovery,DR)都不可能只有一个数据中心(Data C ...

  4. 利用no_merge优化

    SQL> select a.unit3_code 机构编码, 2 a.unit3_name 机构名称, 3 a.dept1_code 部门编码, 4 a.dept1_name 部门名称, 5 a ...

  5. What does the number on the visual studio solution icon represent?

    The numbers correspond to the internal version numbers of various editions of Visual Studio http://e ...

  6. yarn的初步理解

    查考site: http://hadoop.apache.org/docs/r2.6.0/hadoop-yarn/hadoop-yarn-site/YARN.html yarn结构图如下: 1.yar ...

  7. [转]让程序在崩溃时体面的退出之CallStack

    原文地址:http://blog.csdn.net/starlee/article/details/6618849 在我的那篇<让程序在崩溃时体面的退出之Unhandled Exception& ...

  8. MVC 5 第二章 项目结构

    通过本章学习,你将了解到一个MVC 5应用程序的项目组成以及项目文件的相关信息,从而更好地架构设计出自己的项目结构. 单从MVC的字面意思我们便能够注意到M-模型, View-视图, Controll ...

  9. reloadData should be in main thread

    reloadData should be called in main thread, so if you call it in work thread, you should call it as ...

  10. [转]C++ map容器用法

    C++ map的基本操作和使用 原文地址:http://blog.sina.com.cn/s/blog_61533c9b0100fa7w.html Map是c++的一个标准容器,她提供了很好一对一的关 ...