MegaCli使用方法

[[email protected] ~]# MegaCli -PDList -Aall  查看磁盘使用情况

Enclosure Device ID: 32

Slot Number: 0

Enclosure position: 0

Device Id: 0

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 931.512 GB [0x74706db0 Sectors]

Non Coerced Size: 931.012 GB [0x74606db0 Sectors]

Coerced Size: 931.0 GB [0x74600000 Sectors]

Firmware state: Online, Spun Up   在线

Enclosure Device ID: 32

Slot Number: 1

Enclosure position: 0

Device Id: 1

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 931.512 GB [0x74706db0 Sectors]

Non Coerced Size: 931.012 GB [0x74606db0 Sectors]

Coerced Size: 931.0 GB [0x74600000 Sectors]

Firmware state: Online, Spun Up

SAS Address(0): 0x5000c500586e6559

Enclosure Device ID: 32

Slot Number: 2

Enclosure position: 0

Device Id: 2

Sequence Number: 3

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 1.819 TB [0xe8e088b0 Sectors]

Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]

Coerced Size: 1.818 TB [0xe8d00000 Sectors]

Firmware state: Unconfigured(good), Spun Up

Enclosure Device ID: 32

Slot Number: 3

Enclosure position: 0

Device Id: 3

Sequence Number: 3

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 1.819 TB [0xe8e088b0 Sectors]

Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]

Coerced Size: 1.818 TB [0xe8d00000 Sectors]

Firmware state: Unconfigured(good), Spun Up

做raid0

[[email protected] ~]# MegaCli -CfgLdAdd -r0[32:2,32:3] WB Direct -a0

Adapter 0: Created VD 1

Adapter 0: Configured the Adapter!!

Exit Code: 0x00

查看raid

[[email protected] ~]# MegaCli -LdPdInfo -aALL

Adapter #0

Number of Virtual Disks: 2

Virtual Drive: 0 (Target Id: 0)  包括slot 0,1,插槽1和2

Name                :

RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0

Size                : 931.0 GB

State               : Optimal

Strip Size          : 64 KB

Number Of Drives    : 2

Span Depth          : 1

Default Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU

Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU

Access Policy       : Read/Write

Disk Cache Policy   : Disk‘s Default

Encryption Type     : None

Default Power Savings Policy: Controller Defined

Current Power Savings Policy: None

Can spin up in 1 minute: Yes

LD has drives that support T10 power conditions: Yes

LD‘s IO profile supports MAX power savings with cached writes: No

Bad Blocks Exist: No

Number of Spans: 1

Span: 0 - Number of PDs: 2

PD: 0 Information

Enclosure Device ID: 32

Slot Number: 0

Enclosure position: 0

Device Id: 0

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 931.512 GB [0x74706db0 Sectors]

Non Coerced Size: 931.012 GB [0x74606db0 Sectors]

Coerced Size: 931.0 GB [0x74600000 Sectors]

Firmware state: Online, Spun Up

SAS Address(0): 0x5000c500586e2169

SAS Address(1): 0x0

Connected Port Number: 0(path0)

Inquiry Data: SEAGATE ST1000NM0023    GS0DZ1W1SRX0

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive Temperature :37C (98.60 F)

PD: 1 Information

Enclosure Device ID: 32

Slot Number: 1

Enclosure position: 0

Device Id: 1

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 931.512 GB [0x74706db0 Sectors]

Non Coerced Size: 931.012 GB [0x74606db0 Sectors]

Coerced Size: 931.0 GB [0x74600000 Sectors]

Firmware state: Online, Spun Up

SAS Address(0): 0x5000c500586e6559

SAS Address(1): 0x0

Connected Port Number: 1(path0)

Inquiry Data: SEAGATE ST1000NM0023    GS0DZ1W1SQS1

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive Temperature :38C (100.40 F)

Virtual Drive: 1 (Target Id: 1)  第二块raid0

Name                :

RAID Level          : Primary-0, Secondary-0, RAID Level Qualifier-0

Size                : 3.637 TB

State               : Optimal

Strip Size          : 64 KB

Number Of Drives    : 2

Span Depth          : 1

Default Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU

Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU

Access Policy       : Read/Write

Disk Cache Policy   : Disk‘s Default

Encryption Type     : None

Default Power Savings Policy: Controller Defined

Current Power Savings Policy: None

Can spin up in 1 minute: Yes

LD has drives that support T10 power conditions: No

LD‘s IO profile supports MAX power savings with cached writes: No

Bad Blocks Exist: No

Number of Spans: 1

Span: 0 - Number of PDs: 2

PD: 0 Information

Enclosure Device ID: 32

Slot Number: 2

Enclosure position: 0

Device Id: 2

Sequence Number: 4

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 1.819 TB [0xe8e088b0 Sectors]

Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]

Coerced Size: 1.818 TB [0xe8d00000 Sectors]

Firmware state: Online, Spun Up

SAS Address(0): 0x5000c50055f63469

SAS Address(1): 0x0

Connected Port Number: 2(path0)

Inquiry Data: SEAGATE ST32000645SS    RS12Z1K0ESPZ

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive Temperature :42C (107.60 F)

PD: 1 Information

Enclosure Device ID: 32

Slot Number: 3

Enclosure position: 0

Device Id: 3

Sequence Number: 4

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 1.819 TB [0xe8e088b0 Sectors]

Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]

Coerced Size: 1.818 TB [0xe8d00000 Sectors]

Firmware state: Online, Spun Up

SAS Address(0): 0x5000c50055f60145

SAS Address(1): 0x0

Connected Port Number: 3(path0)

Inquiry Data: SEAGATE ST32000645SS    RS12Z1K0ETDN

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive Temperature :44C (111.20 F)

Exit Code: 0x00

删除raid0

[[email protected] ~]# MegaCli  -cfglddel  -L1 -a0

Adapter 0: Deleted Virtual Drive-1(target id-1)

Exit Code: 0x00

L指的是删除vm组1 ,a0是控制卡

时间: 2025-01-13 03:48:47

MegaCli使用方法的相关文章

使用MegaCli和Smartctl获取普通磁盘

设备名称: [[email protected] shell]# cat /proc/scsi/scsi Attached devices:Host: scsi0 Channel: 02 Id: 00 Lun: 00  Vendor: DELL     Model: PERC 5/i         Rev: 1.03  Type:   Direct-Access                    ANSI SCSI revision: 05[[email protected] shell]

MegaCli监控RAID磁盘健康信息

首先有必要先介绍一下有关RAID卡的使用,有关Cache问题也有个人理解:生产系统上的物理机磁盘配置大多都是RAID5,之前会经常性的遇到磁盘IO在某个时间极度的跟不上节奏,稍微写入量,磁盘utils就能够飙到80%多:最后发现是RAID卡的模式改变导致的性能影响:一般RAID卡的电池都会进行充放电的操作来进行电池的保护,一般时间在90天进行一次充放电,放电时间不一(没有验证过这个,感觉有1-2小时).RAID卡电池放电时有默认策略会关闭RAID模式“Write Back”使用“Write th

megacli 查看Raid卡和硬盘信息

megacli的安装 通过如下链接 http://down.51cto.com/data/2042596 或者 http://pan.baidu.com/s/1eQ2FeHc 下载至windows本地桌面,然后在linux命令行用命令:rz -be ,在弹出的窗口中选择刚才下载的压缩包(注意不要勾选已ASCII码方式传送文件) tar xf megacli-8.02.21-1-mdv2012.0.x86_64.rpm.tar rpm -ivh megacli-8.02.21-1-mdv2012.

Unity 崩溃问题解决方法——之一

友情提示:工作随记,不喜勿喷 注意:文艺青年可以略过,暴力青年欢迎采纳 Library文件夹 Unity每次编译都会生成这个东西,不用担心丢失的问题.所以,干掉他! 选中 + Delete   或者  选中 + Shift  + Delete 网上看了很多方法,就觉得这个简单,粗暴,是我喜欢的类型. 优点:上面说了 缺点:如果工程过大,重新编译时间会比较长.(但是对于查Log日志来说,相对快点)

Java TM 已被阻止,因为它已过时需要更新的解决方法

公司的堡垒机需要通过浏览器登陆,且该堡垒机的网站需要Java的支持,最近通过浏览器登陆之后总是提示"java TM 已被阻止,因为它已过时需要更新的解决方法"导致登陆之后不能操作, 但是操作系统中确实已经安装了比较新的JDK,安装的JDK版本是jdk-7u67-windows-i586,因为太烦人,所以决定搞清楚报错的原因,一劳永逸,彻底解决这个问题 准备工作:安装JDK,安装版本jdk-7u67-windows-i586.exe,因为机器的Eclipse还依赖64位的JDK,所以另安

win7 64位系统 PB连接oracle数据库出现“oracle library oci.dll could not be loaded”问题的解决方法

今天与大家分享一个自己的学习笔记,希望能给遇到同样问题的人带来帮助. 不知道大家在win7 64位系统下用 PB连接oracle数据库时,是否遇到过“oracle library oci.dll could not be loaded”问题. 今天,在win7 64位系统下用 PB连接oracle数据库时,一直出现上述错误,在百度上找了很久,都没有找到一个完整的解决方案,咨询了很多人,(他们都说是我的PB和oracle没装好,但我装的时候没出现任何问题,一切都很顺利,而且PB和oracle都能正

C#与数据库访问技术总结(八)之ExecuteNonQuery方法

ExecuteNonQuery方法 ExecuteNonQuery方法主要用来更新数据. 通常使用它来执行Update.Insert和Delete语句. 该方法返回值意义如下: 对于Update.Insert和Delete语句,返回值为该命令所影响的行数. 对于所有其他类型的语句,返回值为-1. Command对象通过ExecuteNonQuery方法更新数据库的过程非常简单,需要进行的步骤如下: (1)创建数据库连接. (2)创建Command对象,并指定一个SQL Insert.Update

android开发之onCreate( )方法详解

onCreate( )方法是android应用程序中最常见的方法之一,那么,我们在使用onCreate()方法的时候应该注意哪些问题呢? 先看看Google Android Developers官网上的解释: onCreate(Bundle) is where you initialize your activity. Most importantly, here you will usually call setContentView(int) with a layout resource d

MAC平台下Xcode配置使用OpenCV的具体方法 (2016最新)

1.序言: 1.1 背景 本人小白一枚,不过因为最近在从事机器视觉方面的工作,所以接触到OpenCV. 因为工作需求,本人要在MAC端使用OpenCV实现一些视觉功能,配置环境成了最大的阻碍,网上查了很多相关资料和博客,都因为版本环境问题屡试屡败,不过经历重重尝试,笔者最终还是配置成功并运行了自己的源码.当然成功的关键还是因为笔者站在了巨人的肩膀上,借鉴了很多网上的教程,为了不误导大家配置的过程,参考文章的地址统一放在文章里,望各位大大看见之后能够理解,废话不说进入正题. 1.2 环境说明 如果