Dell伺服器MegaCli命令只返回Exit Code: 0x00問題分析

來源:互聯網
上載者:User

標籤:

今天同事給我說一台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 Messages0x00 Command completed successfully0x01 Invalid command0x02 DCMD opcode is invalid0x03 Input parameters are invalid0x04 Invalid sequence number0x05 Abort isn‘t possible for the requested command0x06 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
 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問題分析

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.