欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

玩欧卡就用莱仕达V99方向盘欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 9635|回复: 0
收起左侧

Dell服务器MegaCli命令只返回Exit Code: 0x00问题分析

[复制链接]
oppo 发表于 2015-1-13 18:36 | 显示全部楼层 |阅读模式
原文:http://my.oschina.net/guol/blog/169108
今天同事给我说一台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工具
解压后看到支持的系统还是蛮多的啊

  我是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包

?
1

2

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




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

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

?
1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

[size=1em]MegaCLI Error Messages

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





联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-12-26 22:57 , Processed in 0.054388 second(s), 8 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表