当前位置:文档之家› 浪潮LSI RAID命令行使用工具

浪潮LSI RAID命令行使用工具

浪潮LSI RAID命令行使用工具(storcli)浪潮互联网行业部技术中心2013-08目录一、Storcli工具的获取 (3)二、安装storcli工具 (3)2.1 Centos、redhat类系统的安装 (3)2.2 Ubuntu类系统的安装 (3)三、查看磁盘相关 (4)3.1 定位某块磁盘,闪烁或停止闪烁 (4)3.2 查看磁盘基本信息 (5)3.3 查看磁盘详细信息 (5)四、RAID相关 (8)4.1 查看raid卡与raid的详细信息 (8)4.2 查看蜂鸣器的状态 (16)4.3 暂时关闭蜂鸣器的鸣叫 (16)4.4 始终关闭蜂鸣器的鸣叫 (17)4.5 删除raid (17)4.6 创建raid (18)4.6.1 创建为单独的raid0/每个硬盘 (19)4.6.2 创建raid5,做2个vd (21)4.6.3 创建raid10,做1个vd (23)4.6.4 创建raid10,做2个vd (24)4.7 维护raid (25)4.7.1 拔盘后,raid的状态 (25)4.7.2 插入原盘后,raid的状态 (28)4.7.3 改变插入硬盘状态 (30)4.7.4 初始化该硬盘 (31)4.7.5 查看初始化进度 (31)4.7.6 查看rebuild进度 (32)4.7.7 查看raid的vd策略 (33)4.7.8 修改raid的vd写策略 (33)4.7.9 修改raid的vd读策略 (34)4.7.10 拔出硬盘后,raid重新识别foreign (36)五、查看日志 (42)5.1 在线查看日志 (42)5.2 在线查看日志,抽取关键词 (43)5.3 存储raid日志到文件 (44)六、附录 (44)6.1 系统下帮助文件的获取 (44)6.2 相关在线文档的获取 (47)一、Storcli工具的获取Storcli软件工具的下载其中最新更便利的storcli工具的下载地址是:/downloads/Public/MegaRAID%20Common%20Files/1.04.07_StorCLI.zip)二、安装storcli工具2.1 Centos、redhat类系统的安装[root@localhost home]# rpm -ivh storcli-1.04.07-1.noarch.rpmPreparing... ########################################### [100%] 1:storcli ########################################### [100%][root@localhost MegaRAID]# cd /opt/MegaRAID/storcli/[root@localhost storcli]# ll[root@localhost storcli]# lsinstall.log libstorelibir-2.so libstorelibir-2.so.14.07-0 storcli642.2 Ubuntu类系统的安装$ sudo dpkg -i storcli_1.04.07_all.debSelecting previously unselected package storcli.(Reading database ... 48848 files and directories currently installed.)Unpacking storcli (from storcli_1.04.07_all.deb) ...Setting up storcli (1.04.07) ...#验证安装$ dpkg -l storcliDesired=Unknown/Install/Remove/Purge/Hold| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)||/ Name Version Description+++-==================-==================-====================================== ==============ii storcli 1.04.07 Storage Command Line Tool, manages storage controlle三、查看磁盘相关3.1 定位某块磁盘,闪烁或停止闪烁[root@localhost storcli]# ./storcli64 /c0/e252/s0 showController = 0Status = SuccessDescription = Show Drive Information Succeeded.Drive Information :=================-------------------------------------------------------------------------EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp-------------------------------------------------------------------------252:0 11 Onln 0 278.937 GB SAS HDD N N 512B HUS156030VLS600 U-------------------------------------------------------------------------EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroupDHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global HotspareUBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-InterfaceMed-Media Type|SED-Self Encryptive Drive|PI-Protection InfoSeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-ForeignUGUnsp-Unsupported[root@localhost storcli]# ./storcli64 /c0/e252/s0 start locateController = 0Status = SuccessDescription = Start Drive Locate Succeeded.[root@localhost storcli]# ./storcli64 /c0/e252/s0 stop locateController = 0Status = SuccessDescription = Stop Drive Locate Succeeded.3.2 查看磁盘基本信息[root@localhost storcli]# ./storcli64 /c0 /e252 /s0 showController = 0Status = SuccessDescription = Show Drive Information Succeeded.Drive Information :=================-------------------------------------------------------------------------EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp-------------------------------------------------------------------------252:0 11 Onln 0 278.937 GB SAS HDD N N 512B HUS156030VLS600 U -------------------------------------------------------------------------EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroupDHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global HotspareUBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-InterfaceMed-Media Type|SED-Self Encryptive Drive|PI-Protection InfoSeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-ForeignUGUnsp-Unsupported3.3 查看磁盘详细信息[root@localhost storcli]# ./storcli64 /c0 /e252 /s0 show allController = 0Status = SuccessDescription = Show Drive Information Succeeded.Drive /c0/e252/s0 :=================-------------------------------------------------------------------------EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp-------------------------------------------------------------------------252:0 11 Onln 0 278.937 GB SAS HDD N N 512B HUS156030VLS600 U -------------------------------------------------------------------------EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroupDHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global HotspareUBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-InterfaceMed-Media Type|SED-Self Encryptive Drive|PI-Protection InfoSeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-ForeignUGUnsp-UnsupportedDrive /c0/e252/s0 - Detailed Information :========================================Drive /c0/e252/s0 State :=======================Shield Counter = 0Media Error Count = 0Other Error Count = 0Drive Temperature = 36C (96.80 F)Predictive Failure Count = 0S.M.A.R.T alert flagged by drive = NoDrive /c0/e252/s0 Device attributes :===================================SN = CVWGRVWNWWN = 5000CCA041532A2BFirmware Revision = A510Raw size = 279.460 GB [0x22eec130 Sectors]Coerced size = 278.937 GB [0x22de0000 Sectors]Non Coerced size = 278.960 GB [0x22dec130 Sectors]Device Speed = 6.0Gb/sLink Speed = 6.0Gb/sSector Size = 512BDrive /c0/e252/s0 Policies/Settings :===================================Drive position = DriveGroup:0, Span:0, Row:0 Enclosure position = 0Connected Port Number = 1(path0)Sequence Number = 4Commissioned Spare = NoEmergency Spare = NoLast Predictive Failure Event Sequence Number = 0 Successful diagnostics completion on = N/ASED Capable = NoSED Enabled = NoSecured = NoLocked = NoNeeds EKM Attention = NoPI Eligible = NoCertified = NoWide Port Capable = NoPort Information :================-----------------------------------------Port Status Linkspeed SAS address-----------------------------------------0 Active 6.0Gb/s 0x5000cca041532a291 Active Unknown 0x0-----------------------------------------Inquiry Data =00 00 06 12 9f 01 10 02 48 49 54 41 43 48 49 20 48 55 53 31 35 36 30 33 30 56 4c 53 36 30 30 20 41 35 31 30 43 56 57 47 52 56 57 4e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 43 6f 70 79 72 69 67 68 74 20 48 69 74 61 63 68 69 20 43 6f 72 70 2e 20 32 30 30 33 2e 20 41 6c四、RAID相关4.1 查看raid卡与raid的详细信息[root@localhost storcli]# ./storcli64 /c0 show all Controller = 0Status = SuccessDescription = NoneBasics :======Controller = 0Model = LSI MegaRAID ROMBSerial Number =Current Controller Date/Time = 08/12/2013, 02:19:37 Current System Date/time = 08/11/2013, 22:19:37SAS Address = 56c92bf000041903Mfg Date = 00/00/00Rework Date = 00/00/00Revision No =Version :=======Firmware Package Build = 12.9.0-0037Firmware Version = 2.90.03-0933Bios Version = 3.18.00_4.09.05.00_0x0416A000 NVDATA Version = 2.06.03-0010Boot Block Version = 2.02.00.00-0000Bootloader Version = 01.250.04.219Driver Name = megaraid_sasDriver Version = 00.00.05.34-rc1Bus :===Vendor Id = 0x1000Device Id = 0x79SubVendor Id = 0x1BD4SubDevice Id = 0x2Host Interface = PCIEDevice Interface = SAS-6GBus Number = 3Device Number = 0Function Number = 0Pending Images in Flash :=======================Image name = No pending imagesStatus :======Controller Status = OKMemory Correctable Errors = 0Memory Uncorrectable Errors = 0ECC Bucket Count = 0Any Offline VD Cache Preserved = NoBBU Status = NASupport PD Firmware Download = NoLock Key Assigned = NoFailed to get lock key on bootup = NoLock key has not been backed up = NoBios was not detected during boot = NoController must be rebooted to complete security operation = No A rollback operation is in progress = NoAt least one PFK exists in NVRAM = NoSSC Policy is WB = NoController has booted into safe mode = NoSupported Adapter Operations :============================Rebuild Rate = YesCC Rate = YesBGI Rate = YesReconstruct Rate = YesPatrol Read Rate = YesAlarm Control = YesCluster Support = NoBBU = YesSpanning = YesDedicated Hot Spare = YesRevertible Hot Spares = YesForeign Config Import = YesSelf Diagnostic = YesAllow Mixed Redundancy on Array = No Global Hot Spares = YesDeny SCSI Passthrough = NoDeny SMP Passthrough = NoDeny STP Passthrough = NoSupport more than 8 Phys = YesFW and Event Time in GMT = NoSupport Enhanced Foreign Import = Yes Support Enclosure Enumeration = Yes Support Allowed Operations = YesAbort CC on Error = YesSupport Multipath = YesSupport Odd & Even Drive count in RAID1E = No Support Security = NoSupport Config Page Model = YesSupport the OCE without adding drives = Yes support EKM = NoSnapshot Enabled = NoSupport PFK = NoSupport PI = NoSupport Ld BBM Info = NoSupport Shield State = NoBlock SSD Write Disk Cache Change = No Support Suspend Resume BG ops = No Support Emergency Spares = NoSupport Set Link Speed = NoSupport Boot Time PFK Change = NoSupport JBOD = NoDisable Online PFK Change = NoSupport Perf Tuning = NoSupport SSD PatrolRead = NoReal Time Scheduler = NoSupport Reset Now = NoSupport Emulated Drives = NoHeadless Mode = NoDedicated HotSpares Limited = NoPoint In Time Progress = NoSupported PD Operations :=======================Force Online = YesForce Offline = YesForce Rebuild = YesDeny Force Failed = NoDeny Force Good/Bad = NoDeny Missing Replace = NoDeny Clear = NoDeny Locate = NoSupport Power State = YesSet Power State For Cfg = NoSupport T10 Power State = NoSupport Temperature = NoSupported VD Operations :=======================Read Policy = YesWrite Policy = YesIO Policy = YesAccess Policy = YesDisk Cache Policy = Yes Reconstruction = YesDeny Locate = NoDeny CC = NoAllow Ctrl Encryption = NoEnable LDBBM = YesSupport FastPath = NoPerformance Metrics = YesPower Savings = NoSupport Powersave Max With Cache = No Support Breakmirror = NoSupport SSC WriteBack = NoSupport SSC Association = NoHwCfg :=====ChipRevision =BatteryFRU = N/AFront End Port Count = 0Backend Port Count = 8BBU = AbsentAlarm = OnSerial Debugger = PresentNVRAM Size = 32KBFlash Size = 16MBOn Board Memory Size = 512MBOn Board Expander = AbsentTemperature Sensor for ROC = Absent Temperature Sensor for Controller = Absent Current Size of CacheCade (GB) = 0Current Size of FW Cache (MB) = 431Policies :========Policies Table :==============------------------------------------------------Policy Current Default ------------------------------------------------Predictive Fail Poll Interval 300 secInterrupt Throttle Active Count 16Interrupt Throttle Completion 50 usRebuild Rate 30 % 30% PR Rate 30 % 30% BGI Rate 30 % 30% Check Consistency Rate 30 % 30% Reconstruction Rate 30 % 30% Cache Flush Interval 4s------------------------------------------------Flush Time(Default) = 4sDrive Coercion Mode = noneAuto Rebuild = OnBattery Warning = OnECC Bucket Size = 15ECC Bucket Leak Rate (hrs) = 24Restore HotSpare on Insertion = OffExpose Enclosure Devices = OnMaintain PD Fail History = OnReorder Host Requests = OnAuto detect BackPlane = SGPIO/i2c SEPLoad Balance Mode = AutoSecurity Key Assigned = OffDisable Online Controller Reset = OffUse drive activity for locate = OffBoot :====BIOS Enumerate VDs = 1Stop BIOS on Error = OffDelay during POST = 0Spin Down Mode = NoneEnable Ctrl-R = YesEnable Web BIOS = YesEnable PreBoot CLI = YesEnable BIOS = YesMax Drives to Spinup at One Time = 4Maximum number of direct attached drives to spin up in 1 min = 0 Delay Among Spinup Groups (sec) = 2Allow Boot with Preserved Cache = OnDefaults :========Phy Polarity = 0Phy PolaritySplit = 0Strip Size = 64kBWrite Policy = WBRead Policy = AdaptiveCache When BBU Bad = OffCached IO = OffVD PowerSave Policy = Controller DefinedDefault spin down time (mins) = 30Coercion Mode = NoneZCR Config = UnknownMax Chained Enclosures = 16Direct PD Mapping = NoRestore Hot Spare on Insertion = NoExpose Enclosure Devices = YesMaintain PD Fail History = YesZero Based Enclosure Enumeration = NoDisable Puncturing = NoEnableLDBBM = NoUn-Certified Hard Disk Drives = AllowSMART Mode = Mode 6Enable LED Header = YesLED Show Drive Activity = YesDirty LED Shows Drive Activity = NoEnableCrashDump = NoDisable Online Controller Reset = NoTreat Single span R1E as R10 = NoPower Saving option = EnabledTTY Log In Flash = NoAuto Enhanced Import = NoBreakMirror RAID Support = NoDisable Join Mirror = NoEnable Shield State = NoTime taken to detect CME = 60 secCapabilities :============Supported Drives = SAS, SATABoot Volume Supported = NORAID Level Supported = RAID0, RAID1, RAID5, RAID6, RAID00, RAID10, RAID50, RAID60, PRL 11, PRL 11 with spanning, SRL 3 supported,PRL11-RLQ0 DDF layout with no span, PRL11-RLQ0 DDF layout with span Enable JBOD = NoMix in Enclosure = AllowedMix of SAS/SATA of HDD type in VD = AllowedMix of SAS/SATA of SSD type in VD = Not AllowedMix of SSD/HDD in VD = Not AllowedSAS Disable = NoMax Arms Per VD = 32Max Spans Per VD = 8Max Arrays = 128Max VD per array = 16Max Number of VDs = 64Max Parallel Commands = 1008Max SGE Count = 60Max Data Transfer Size = 8192 sectorsMax Strips PerIO = 42Max Configurable CacheCade Size = 0Min Strip Size = 8 KBMax Strip Size = 1.0 MBScheduled Tasks :===============Consistency Check Reoccurrence = 168 hrsNext Consistency check launch = 03/08/2014, 02:00:00Patrol Read Reoccurrence = 168 hrsNext Patrol Read launch = 08/10/2013, 02:00:00Battery learn Reoccurrence = NANext Battery Learn = NAOEMID = LSIDrive Groups = 1TOPOLOGY :========--------------------------------------------------------------------------DG Arr Row EID:Slot DID Type State BT Size PDC PI SED DS3 FSpace--------------------------------------------------------------------------0 - - - - RAID6 Optl N 557.875 GB dflt N N dflt N0 0 - - - RAID6 Optl N 557.875 GB dflt N N dflt N0 0 0 252:0 11 DRIVE Onln Y 278.937 GB dflt N N dflt -0 0 1 252:1 10 DRIVE Onln Y 278.937 GB dflt N N dflt -0 0 2 252:2 9 DRIVE Onln Y 278.937 GB dflt N N dflt -0 0 3 252:3 8 DRIVE Onln Y 278.937 GB dflt N N dflt ---------------------------------------------------------------------------DG=Disk Group Index|Arr=Array Index|Row=Row Index|EID=Enclosure Device IDDID=Device ID|Type=Drive Type|Onln=Online|Rbld=Rebuild|Dgrd=DegradedPdgd=Partially degraded|Offln=Offline|BT=Background Task ActivePDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=ForeignDS3=Dimmer Switch 3|dflt=Default|Msng=Missing|FSpace=Free Space Present Virtual Drives = 1VD LIST :=======-----------------------------------------------------------DG/VD TYPE State Access Consist Cache sCC Size Name-----------------------------------------------------------0/0 RAID6 Optl RW No RWTD - 557.875 GB-----------------------------------------------------------Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded Optl=Optimal|RO=Read Only|RW=Read Write|B=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled Check ConsistencyPhysical Drives = 4PD LIST :=======-------------------------------------------------------------------------EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp-------------------------------------------------------------------------252:0 11 Onln 0 278.937 GB SAS HDD N N 512B HUS156030VLS600 U 252:1 10 Onln 0 278.937 GB SAS HDD N N 512B HUS156030VLS600 U 252:2 9 Onln 0 278.937 GB SAS HDD N N 512B HUS156030VLS600 U 252:3 8 Onln 0 278.937 GB SAS HDD N N 512B HUS156030VLS600 U -------------------------------------------------------------------------EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroupDHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global HotspareUBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-InterfaceMed-Media Type|SED-Self Encryptive Drive|PI-Protection InfoSeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-ForeignUGUnsp-Unsupported4.2 查看蜂鸣器的状态[root@localhost storcli]# ./storcli64 /c0 show alarmController = 0Status = SuccessDescription = NoneController Properties :=====================----------------Ctrl_Prop Value----------------Alarm ON----------------4.3 暂时关闭蜂鸣器的鸣叫[root@localhost storcli]# ./storcli64 /c0 set alarm=silenceController = 0Status = SuccessDescription = NoneController Properties :=====================------------------Ctrl_Prop Value------------------Alarm SILENCE------------------4.4 始终关闭蜂鸣器的鸣叫[root@localhost storcli]# ./storcli64 /c0 set alarm=off Controller = 0Status = SuccessDescription = NoneController Properties :=====================----------------Ctrl_Prop Value----------------Alarm OFF----------------4.5 删除raid[root@localhost storcli]# ./storcli64 /c0 /v0 showController = 0Status = SuccessDescription = NoneVirtual Drives :==============-----------------------------------------------------------DG/VD TYPE State Access Consist Cache sCC Size Name-----------------------------------------------------------0/0 RAID6 Optl RW No RWTD - 557.875 GB-----------------------------------------------------------Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded Optl=Optimal|RO=Read Only|RW=Read Write|B=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled Check Consistency[root@localhost storcli]# ./storcli64 /c0 /v0 delController = 0Status = SuccessDescription = Delete VD succeeded[root@localhost storcli]# ./storcli64 /c0 /v0 showController = 0Status = SuccessDescription = No VDs have been configured4.6 创建raid[root@localhost storcli]# ./storcli64 /c0 showController = 0Status = SuccessDescription = NoneProduct Name = LSI MegaRAID ROMBSerial Number =SAS Address = 56c92bf000041903Mfg. Date = 00/00/00System Time = 08/11/2013 22:58:55Controller Time = 08/12/2013 02:58:56FW Package Build = 12.9.0-0037BIOS Version = 3.18.00_4.09.05.00_0x0416A000FW Version = 2.90.03-0933Driver Name = megaraid_sasDriver Version = 00.00.05.34-rc1Controller Bus Type = N/APCI Slot = N/APCI Bus Number = 3PCI Device Number = 0PCI Function Number = 0Physical Drives = 4PD LIST :=======-------------------------------------------------------------------------EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp-------------------------------------------------------------------------252:0 11 UGood - 278.937 GB SAS HDD N N 512B HUS156030VLS600 U 252:1 10 UGood - 278.937 GB SAS HDD N N 512B HUS156030VLS600 U 252:2 9 UGood - 278.937 GB SAS HDD N N 512B HUS156030VLS600 U 252:3 8 UGood - 278.937 GB SAS HDD N N 512B HUS156030VLS600 U -------------------------------------------------------------------------EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroupDHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global HotspareUBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-InterfaceMed-Media Type|SED-Self Encryptive Drive|PI-Protection InfoSeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-ForeignUGUnsp-Unsupported4.6.1 创建为单独的raid0/每个硬盘[root@localhost storcli]# ./storcli64 /c0 add vd each type=raid0 drives=252:0,1,2,3 Controller = 0Status = SuccessDescription = Add VD Succeeded[root@localhost storcli]# ./storcli64 /c0 showController = 0Status = SuccessDescription = NoneProduct Name = LSI MegaRAID ROMBSerial Number =SAS Address = 56c92bf000041903Mfg. Date = 00/00/00System Time = 08/11/2013 23:27:39Controller Time = 08/12/2013 03:27:39FW Package Build = 12.9.0-0037BIOS Version = 3.18.00_4.09.05.00_0x0416A000FW Version = 2.90.03-0933Driver Name = megaraid_sasDriver Version = 00.00.05.34-rc1Controller Bus Type = N/APCI Slot = N/APCI Bus Number = 3PCI Device Number = 0PCI Function Number = 0Drive Groups = 4TOPOLOGY :========--------------------------------------------------------------------------DG Arr Row EID:Slot DID Type State BT Size PDC PI SED DS3 FSpace --------------------------------------------------------------------------0 - - - - RAID0 Optl N 278.937 GB dflt N N dflt N0 0 - - - RAID0 Optl N 278.937 GB dflt N N dflt N0 0 0 252:0 11 DRIVE Onln N 278.937 GB dflt N N dflt -1 - - - - RAID0 Optl N 278.937 GB dflt N N dflt N1 0 - - - RAID0 Optl N 278.937 GB dflt N N dflt N1 0 0 252:1 10 DRIVE Onln N 278.937 GB dflt N N dflt -2 - - - - RAID0 Optl N 278.937 GB dflt N N dflt N2 0 - - - RAID0 Optl N 278.937 GB dflt N N dflt N2 0 0 252:2 9 DRIVE Onln N 278.937 GB dflt N N dflt -3 - - - - RAID0 Optl N 278.937 GB dflt N N dflt N3 0 - - - RAID0 Optl N 278.937 GB dflt N N dflt N3 0 0 252:3 8 DRIVE Onln N 278.937 GB dflt N N dflt ---------------------------------------------------------------------------DG=Disk Group Index|Arr=Array Index|Row=Row Index|EID=Enclosure Device ID DID=Device ID|Type=Drive Type|Onln=Online|Rbld=Rebuild|Dgrd=Degraded Pdgd=Partially degraded|Offln=Offline|BT=Background Task ActivePDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=ForeignDS3=Dimmer Switch 3|dflt=Default|Msng=Missing|FSpace=Free Space Present Virtual Drives = 4VD LIST :=======-----------------------------------------------------------DG/VD TYPE State Access Consist Cache sCC Size Name-----------------------------------------------------------0/0 RAID0 Optl RW Yes RWTD - 278.937 GB1/1 RAID0 Optl RW Yes RWTD - 278.937 GB2/2 RAID0 Optl RW Yes RWTD - 278.937 GB3/3 RAID0 Optl RW Yes RWTD - 278.937 GB-----------------------------------------------------------Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded Optl=Optimal|RO=Read Only|RW=Read Write|B=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled Check ConsistencyPhysical Drives = 4PD LIST :=======-------------------------------------------------------------------------EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp-------------------------------------------------------------------------252:0 11 Onln 0 278.937 GB SAS HDD N N 512B HUS156030VLS600 U 252:1 10 Onln 1 278.937 GB SAS HDD N N 512B HUS156030VLS600 U 252:2 9 Onln 2 278.937 GB SAS HDD N N 512B HUS156030VLS600 U 252:3 8 Onln 3 278.937 GB SAS HDD N N 512B HUS156030VLS600 U -------------------------------------------------------------------------EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroupDHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global HotspareUBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-InterfaceMed-Media Type|SED-Self Encryptive Drive|PI-Protection InfoSeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-ForeignUGUnsp-Unsupported4.6.2 创建raid5,做2个vd注意:不能同时创建第一个vd=n容量,第二个vd剩余容量,需分批创建[root@localhost storcli]# ./storcli64 /c0 add vd type=raid5 size=100gb name=spider1 drives=252:0-3 wb raController = 0Status = SuccessDescription = Add VD Succeeded[root@localhost storcli]# ./storcli64 /c0 /vall showController = 0Status = SuccessDescription = NoneVirtual Drives :==============-------------------------------------------------------------DG/VD TYPE State Access Consist Cache sCC Size Name-------------------------------------------------------------0/0 RAID5 Optl RW No RWTD - 99.999 GB spider1-------------------------------------------------------------Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=DegradedOptl=Optimal|RO=Read Only|RW=Read Write|B=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=ScheduledCheck Consistency[root@localhost storcli]# ./storcli64 /c0 add vd type=raid5 size=all name=spider2 drives=252:0-3 wb ra#Controller = 0Status = SuccessDescription = Add VD Succeeded[root@localhost storcli]# ./storcli64 /c0 /vall showController = 0Status = SuccessDescription = NoneVirtual Drives :==============--------------------------------------------------------------DG/VD TYPE State Access Consist Cache sCC Size Name--------------------------------------------------------------0/0 RAID5 Optl RW No RWTD - 99.999 GB spider10/1 RAID5 Optl RW No RWTD - 736.812 GB spider2--------------------------------------------------------------Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=DegradedOptl=Optimal|RO=Read Only|RW=Read Write|B=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=ScheduledCheck Consistency[root@localhost storcli]# ./storcli64 /c0 add vd type=raid10 size=100gb,all name=spider1,spider2 drives=252:0-3 wb ra cached nocachebadbbu4.6.3 创建raid10,做1个vd[root@localhost storcli]#./storcli64 /c0 add vd type=raid10 size=all name=spider drives=252:0-3 cached wb ra cachedbadbbu pdperarray=2# pdperarray这个参数很关键,没有这个参数,是创建不成功的。

相关主题