megacli命令行创建raid

上传人:第*** 文档编号:32690418 上传时间:2018-02-12 格式:DOCX 页数:7 大小:86.87KB
返回 下载 相关 举报
megacli命令行创建raid_第1页
第1页 / 共7页
megacli命令行创建raid_第2页
第2页 / 共7页
megacli命令行创建raid_第3页
第3页 / 共7页
megacli命令行创建raid_第4页
第4页 / 共7页
megacli命令行创建raid_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《megacli命令行创建raid》由会员分享,可在线阅读,更多相关《megacli命令行创建raid(7页珍藏版)》请在金锄头文库上搜索。

1、一、主要属性如下: RAID Level :从下拉列表中选择可选的 RAID 级别。如 RAID0,RAID5 等。 Strip Size :条带化大小定义了 RAID 配置中每个硬盘的数据块的大小。建议选择默认大小。 Access Policy :选择数据访问的类型,主要包含:1) RW, 允许读写操作。这是默认值。2) Read Only(只读) , 允许只读操作。3) Blocked(禁止):不允许访问。 Read Policy :指定虚拟驱动器的读取机制,主要包含:1) Normal : 此选项禁用预读机制。这是默认值。2) Ahead: 此选项启动预读机制。允许控制器提前顺序读取所需

2、数据并且和其他数据一起存储在缓存中。这将提高顺序数据的读取速度,但是对读取随即数据的性能没有明显提升。3) Adaptive:此选项启动可选预读机制。当两个或以上硬盘数据读取操作发生在顺序扇区中时,就启动预读机制(Ahead) 。如果读取操作是随机的,控制器就会进入(Normal)默认模式。write Policy :指定虚拟驱动器的写操作机制,主要包含:1) WBack: 即 Write Back(回写)模式。2) WThru: 即 Write Through(直写)模式。这是默认设置。3) Bad BBU:如果控制器的没有电池(BBU)或电池(BBU )故障,但仍想使用回写模式(WBack

3、) ,则选用此选项。如果不选用此选项,当控制器检测到没有电池( BBU)或电池(BBU)损坏时,将自动切换至直写模式(WThru ) 。 IO Policy :此选项允许读取一个特定的虚拟驱动器( Virtual disk) 。不影响预读(read ahead)缓存。1) Direct :该模式下读取的数据不在缓存中缓冲。而且直接从缓存传输的主机。如果相同的数据被再次读取,则直接从缓存读取。这是默认值。2) Cached : 该模式下,所有读取的数据都要在缓存中缓冲。 Disk Cache Policy :指定驱动器缓存的机制。1) Enable :启动硬盘驱动器的缓存。2) Disable

4、:关闭硬盘驱动器的缓存。这是默认值。3) Unchanged :保持现有的驱动器缓存机制不做改变。 Disable BGI :指定后台初始化( Background initialization)状态:1) No :保持后台初始化启动。这是指新的配置设定会在后台进行初始化并且此时可以使用 WebBIOS 进行其他的设置。这是默认值。2) Yes :这项表示禁用后台初始化(Background initialization) 。 Select Size :指定虚拟驱动器(Virtual disk)的大小,以 MB 为单位。通常,这个值是该磁盘组 RAID 级别的最大容量。二、查看 RAID 信息

5、# /opt/MegaRAID/MegaCli/MegaCli64 -LdInfo -Lall -aALL Adapter 0 - Virtual Drive Information:Virtual Drive: 0 (Target Id: 0)Name :RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0Size : 558.406 GBSector Size : 512Is VD emulated : NoMirror Data : 558.406 GBState : OptimalStrip Size : 256 KBN

6、umber Of Drives : 2Span Depth : 1Default Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBUCurrent Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBUDefault Access Policy: Read/WriteCurrent Access Policy: Read/WriteDisk Cache Policy : EnabledEncryption Type : No

7、neBad Blocks Exist: NoPI type: No PIIs VD Cached: NoVirtual Drive: 1 (Target Id: 1)Name :RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3Size : 9.815 TBSector Size : 512Is VD emulated : NoParity Size : 1.089 TBState : OptimalStrip Size : 1.0 MBNumber Of Drives per span:10Span Depth : 2Def

8、ault Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBUCurrent Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBUDefault Access Policy: Read/WriteCurrent Access Policy: Read/WriteDisk Cache Policy : EnabledEncryption Type : NoneBad Blocks Exist: NoPI type: No PI

9、Is VD Cached: No此命令可以看到有多少个 raid 组,如果后续需要删除指定的 RAID 时需要用到,其中“Target Id:n” ,n 即为第 n 组 RAID ,本例中我要删除 ID 1 的 raid,三、删除 raid 50#/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdDel -L1 -a0删除命令中的 L1,就是“Target Id:1” ,a0 指第一个 raid 卡设备“Adapter 0”。删除后,如图可见 group1 已经被删除。三、命令行重建 raid1、查看磁盘的 Enclosure Device ID# /opt/Mega

10、RAID/MegaCli/MegaCli64 -pdlist -a0 |more2、创建 RAID 50 磁盘组。其中 20:2 中的 20 就是 Enclosure Device ID ,2 是 Slot Number。#/opt/MegaRAID/MegaCli/MegaCli64 -CfgSpanAdd -r50 -Array020:2,20:3,20:4,20:5,20:6,20:7,20:8,20:9,20:10,20:11 -Array120:12,20:13,20:14,20:15,20:16,20:17,20:18,20:19,20:20,20:21 -WB -RA -Cach

11、ed -CachedBadBBU strpsz1024 -a0命令执行成功后提示:发现问题:Disk Cache Policy: Disks Default 磁盘缓存策略为磁盘默认。原来使用 webraid 做的 raid50 的磁盘策略是:Disk Cache Policy : EnabledAdapter 0 - Virtual Drive Information:Virtual Drive: 0 (Target Id: 0)Name :RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0Size : 558.406 GBS

12、ector Size : 512Is VD emulated : NoMirror Data : 558.406 GBState : OptimalStrip Size : 256 KBNumber Of Drives : 2Span Depth : 1Default Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBUCurrent Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBUDefault Access Poli

13、cy: Read/WriteCurrent Access Policy: Read/WriteDisk Cache Policy : EnabledEncryption Type : NoneBad Blocks Exist: NoPI type: No PIIs VD Cached: NoVirtual Drive: 1 (Target Id: 1)Name :RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3Size : 9.815 TBSector Size : 512Is VD emulated : NoParity

14、Size : 1.089 TBState : OptimalStrip Size : 1.0 MBNumber Of Drives per span:10Span Depth : 2Default Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBUCurrent Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBUDefault Access Policy: Read/WriteCurrent Access Policy:

15、 Read/WriteDisk Cache Policy : Disks DefaultEncryption Type : NoneBad Blocks Exist: NoPI type: No PIIs VD Cached: NoExit Code: 0x00使用命令:#/opt/MegaRAID/MegaCli/MegaCli64 -CfgSpanAdd -r50 -Array020:2,20:3,20:4,20:5,20:6,20:7,20:8,20:9,20:10,20:11 -Array120:12,20:13,20:14,20:15,20:16,20:17,20:18,20:19,20:20,20:21 -WB -RA -Cached -Cache -Cac

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 职业教育

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号