[root@localhost ~]# ./storcli64 show ctrlcount ---查看raid數量 Status Code = 0 Status = Success Description = None Controller Count = 1 [root@localhost ~]#
[root@localhost ~]# ./storcli64 /c0 /v0 show ---查看raid結構,虛擬硬盤 Controller = 0 Status = Success Description = None Virtual Drives : ============== --------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name --------------------------------------------------------------- 0/0 RAID0 Optl RW Yes RWTD - ON 446.625 GB --------------------------------------------------------------- Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=Degraded Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReady|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 ~]#
[root@localhost ~]# ./storcli64 /c0 /eall /sall show ---查看物理硬盤 Controller = 0 Status = Success Description = Show Drive Information Succeeded. Drive Information : ================= ---------------------------------------------------------------------------- EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp ---------------------------------------------------------------------------- 8:0 11 JBOD - 3.637 TB SATA HDD N N 512B ST4000NM000A-2HZ100 U 8:1 9 JBOD - 3.637 TB SATA HDD N N 512B ST4000NM000A-2HZ100 U 8:12 21 JBOD - 446.625 GB SATA SSD N N 512B Maxtor Z1 SSD 480GB U 8:13 22 Onln 0 446.625 GB SATA SSD N N 512B Maxtor Z1 SSD 480GB U ---------------------------------------------------------------------------- EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info SeSz-Sector Size|Sp-Spun|U-Up|D-Down/PowerSave|T-Transition|F-Foreign UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded [root@localhost ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 3.7T 0 disk ├─sda1 8:1 0 200M 0 part ├─sda2 8:2 0 1G 0 part └─sda3 8:3 0 445.4G 0 part ├─klas-swap 252:2 0 4G 0 lvm └─klas-root 252:3 0 441.4G 0 lvm sdb 8:16 0 3.7T 0 disk ├─sdb1 8:17 0 1.9T 0 part ├─sdb2 8:18 0 1.3T 0 part └─sdb4 8:20 0 1.6T 0 part sdc 8:32 0 447.1G 0 disk sdd 8:48 0 446.6G 0 disk ├─sdd1 8:49 0 200M 0 part /boot/efi ├─sdd2 8:50 0 1G 0 part /boot └─sdd3 8:51 0 445.4G 0 part ├─klas00-root 252:0 0 441.4G 0 lvm / └─klas00-swap 252:1 0 4G 0 lvm [SWAP] sr0 11:0 1 1024M 0 rom sr1 11:1 1 1024M 0 rom sr2 11:2 1 1024M 0 rom sr3 11:3 1 1024M 0 rom [root@localhost ~]#
[root@localhost ~]# ./storcli64 show all Segmentation fault (core dumped) [root@localhost ~]# ./storcli64 /c0 show all Generating detailed summary of the adapter, it may take a while to complete. Controller = 0 Status = Failure Description = None Detailed Status : =============== ------------------------------------------------ Ctrl Status ErrCd ErrMsg ------------------------------------------------ 0 Failed 255 Failed to get Bus Information ------------------------------------------------ Basics : ====== Controller = 0 Model = AVAGO MegaRAID SAS 9361-8i 2GB Serial Number = SK84171618 Current Controller Date/Time = 09/05/2019, 09:28:34 Current System Date/time = 09/05/2019, 17:28:34 SAS Address = 500605b00ece47f0 PCI Address = NA Mfg Date = 10/12/18 Rework Date = 00/00/00 Revision No = 22002 Version : ======= Firmware Package Build = 24.21.0-0017 Firmware Version = 4.680.00-8274 CPLD Version = 26747-01A Bios Version = 6.36.00.1_4.19.08.00_0x06180202 HII Version = 03.25.05.03 Ctrl-R Version = 5.19-0601 Preboot CLI Version = 01.07-05:#%0000 NVDATA Version = 3.1705.00-0005 Boot Block Version = 3.07.00.00-0003 Driver Name = megaraid_sas Driver Version = 07.706.03.00-rc1 Bus : === Vendor Id = 0x1000 Device Id = 0x5D SubVendor Id = 0x1000 SubDevice Id = 0x9361 Host Interface = PCI-E Device Interface = SAS-12G Pending Images in Flash : ======================= Image name = No pending images Status : ====== Controller Status = Optimal Memory Correctable Errors = 0 Memory Uncorrectable Errors = 0 ECC Bucket Count = 0 Any Offline VD Cache Preserved = No BBU Status = NA PD Firmware Download in progress = No Lock Key Assigned = No Failed to get lock key on bootup = No Lock key has not been backed up = No Bios was not detected during boot = No Controller must be rebooted to complete security operation = No A rollback operation is in progress = No At least one PFK exists in NVRAM = Yes SSC Policy is WB = No Controller has booted into safe mode = No Current Personality = RAID-Mode Supported Adapter Operations : ============================ Rebuild Rate = Yes CC Rate = Yes BGI Rate = Yes Reconstruct Rate = Yes Patrol Read Rate = Yes Alarm Control = Yes Cluster Support = No BBU = Yes Spanning = Yes Dedicated Hot Spare = Yes Revertible Hot Spares = Yes Foreign Config Import = Yes Self Diagnostic = Yes Allow Mixed Redundancy on Array = No Global Hot Spares = Yes Deny SCSI Passthrough = No Deny SMP Passthrough = No Deny STP Passthrough = No Support more than 8 Phys = Yes FW and Event Time in GMT = No Support Enhanced Foreign Import = Yes Support Enclosure Enumeration = Yes Support Allowed Operations = Yes Abort CC on Error = Yes Support Multipath = Yes Support Odd & Even Drive count in RAID1E = No Support Security = No Support Config Page Model = Yes Support the OCE without adding drives = Yes Support EKM = No Snapshot Enabled = No Support PFK = Yes Support PI = Yes Support LDPI Type1 = No Support LDPI Type2 = No Support LDPI Type3 = No Support Ld BBM Info = No Support Shield State = Yes Block SSD Write Disk Cache Change = Yes Support Suspend Resume BG ops = Yes Support Emergency Spares = Yes Support Set Link Speed = Yes Support Boot Time PFK Change = No Support JBOD = Yes Disable Online PFK Change = No Support Perf Tuning = Yes Support SSD PatrolRead = Yes Real Time Scheduler = Yes Support Reset Now = Yes Support Emulated Drives = Yes Headless Mode = Yes Dedicated HotSpares Limited = No Point In Time Progress = Yes Extended LD = Yes Boot Volume Supported = No Support Uneven span = No Support Config Auto Balance = No Support Maintenance Mode = No Support Diagnostic results = Yes Support Ext Enclosure = Yes Support Sesmonitoring = Yes Support SecurityonJBOD = Yes Support ForceFlash = Yes Support DisableImmediateIO = Yes Support LargeIOSupport = Yes Support DrvActivityLEDSetting = Yes Support FlushWriteVerify = Yes Support CPLDUpdate = Yes Support ForceTo512e = Yes Support discardCacheDuringLDDelete = Yes Support JBOD Write cache = No Support Large QD Support = No Support Ctrl Info Extended = No Support IButton less = No Support AES Encryption Algorithm = No Support Encrypted MFC = No Supported PD Operations : ======================= Force Online = Yes Force Offline = Yes Force Rebuild = Yes Deny Force Failed = No Deny Force Good/Bad = No Deny Missing Replace = No Deny Clear = No Deny Locate = No Support Power State = Yes Set Power State For Cfg = No Support T10 Power State = No Support Temperature = Yes NCQ = Yes Support Max Rate SATA = No Support Degraded Media = No Support Parallel FW Update = Yes Support Drive Crypto Erase = Yes Supported VD Operations : ======================= Read Policy = Yes Write Policy = Yes IO Policy = Yes Access Policy = Yes Disk Cache Policy = Yes Reconstruction = Yes Deny Locate = No Deny CC = No Allow Ctrl Encryption = No Enable LDBBM = Yes Support FastPath = Yes Performance Metrics = Yes Power Savings = No Support Powersave Max With Cache = No Support Breakmirror = Yes Support SSC WriteBack = No Support SSC Association = No Support VD Hide = Yes Support VD Cachebypass = Yes Support VD discardCacheDuringLDDelete = Yes Advanced Software Option : ======================== ---------------------------------------- Adv S/W Opt Time Remaining Mode ---------------------------------------- MegaRAID FastPath Unlimited - MegaRAID RAID6 Unlimited - MegaRAID RAID5 Unlimited - ---------------------------------------- Safe ID = NSHHBGAKBJNNVM68G96T5LJB8PDMFXGPPBM3Q9AZ HwCfg : ===== ChipRevision = C0 BatteryFRU = N/A Front End Port Count = 0 Backend Port Count = 8 BBU = Absent Alarm = On Serial Debugger = Present NVRAM Size = 32KB Flash Size = 16MB On Board Memory Size = 2048MB CacheVault Flash Size = NA TPM = Absent Upgrade Key = Absent On Board Expander = Absent Temperature Sensor for ROC = Present Temperature Sensor for Controller = Absent Upgradable CPLD = Present Current Size of CacheCade (GB) = 0 Current Size of FW Cache (MB) = 1715 ROC temperature(Degree Celsius) = 68 Policies : ======== Policies Table : ============== ------------------------------------------------ Policy Current Default ------------------------------------------------ Predictive Fail Poll Interval 300 sec Interrupt Throttle Active Count 16 Interrupt Throttle Completion 50 us Rebuild 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) = 4s Drive Coercion Mode = none Auto Rebuild = On Battery Warning = On ECC Bucket Size = 15 ECC Bucket Leak Rate (hrs) = 24 Restore HotSpare on Insertion = Off Expose Enclosure Devices = On Maintain PD Fail History = Off Reorder Host Requests = On Auto detect BackPlane = SGPIO/i2c SEP Load Balance Mode = Auto Security Key Assigned = Off Disable Online Controller Reset = Off Use drive activity for locate = Off Boot : ==== BIOS Enumerate VDs = 1 Stop BIOS on Error = Off Delay during POST = 0 Spin Down Mode = None Enable Ctrl-R = Yes Enable Web BIOS = No Enable PreBoot CLI = No Enable BIOS = Yes Max Drives to Spinup at One Time = 2 Maximum number of direct attached drives to spin up in 1 min = 10 Delay Among Spinup Groups (sec) = 12 Allow Boot with Preserved Cache = Off High Availability : ================= Topology Type = None Cluster Permitted = No Cluster Active = No Defaults : ======== Phy Polarity = 0 Phy PolaritySplit = 0 Strip Size = 256 KB Write Policy = WB Read Policy = RA Cache When BBU Bad = Off Cached IO = Off VD PowerSave Policy = Controller Defined Default spin down time (mins) = 30 Coercion Mode = None ZCR Config = Unknown Max Chained Enclosures = 16 Direct PD Mapping = No Restore Hot Spare on Insertion = No Expose Enclosure Devices = Yes Maintain PD Fail History = Yes Zero Based Enclosure Enumeration = No Disable Puncturing = No EnableLDBBM = Yes DisableHII = No Un-Certified Hard Disk Drives = Allow SMART Mode = Mode 6 Enable LED Header = Yes LED Show Drive Activity = Yes Dirty LED Shows Drive Activity = No EnableCrashDump = Yes Disable Online Controller Reset = No Treat Single span R1E as R10 = No Power Saving option = Enabled TTY Log In Flash = No Auto Enhanced Import = Yes BreakMirror RAID Support = Yes Disable Join Mirror = Yes Enable Shield State = Yes Time taken to detect CME = 60 sec Capabilities : ============ Supported Drives = SAS, SATA Boot Volume Supported = NO RAID 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 = Yes Mix in Enclosure = Allowed Mix of SAS/SATA of HDD type in VD = Allowed Mix of SAS/SATA of SSD type in VD = Allowed Mix of SSD/HDD in VD = Allowed SAS Disable = No Max Arms Per VD = 32 Max Spans Per VD = 8 Max Arrays = 128 Max VD per array = 16 Max Number of VDs = 64 Max Parallel Commands = 928 Max SGE Count = 60 Max Data Transfer Size = 8192 sectors Max Strips PerIO = 128 Max Configurable CacheCade Size(GB) = 0 Max Transportable VDs = 0 Min Strip Size = 64 KB Max Strip Size = 1.0 MB Scheduled Tasks : =============== Consistency Check Reoccurrence = 168 hrs Next Consistency check launch = 08/08/2020, 03:00:00 Patrol Read Reoccurrence = 168 hrs Next Patrol Read launch = 08/08/2020, 03:00:00 Battery learn Reoccurrence = NA Next Battery Learn = NA OEMID = AVAGO Drive Groups = 1 TOPOLOGY : ======== ----------------------------------------------------------------------------- DG Arr Row EID:Slot DID Type State BT Size PDC PI SED DS3 FSpace TR ----------------------------------------------------------------------------- 0 - - - - RAID0 Optl N 446.625 GB dflt N N none N N 0 0 - - - RAID0 Optl N 446.625 GB dflt N N none N N 0 0 0 8:13 22 DRIVE Onln N 446.625 GB dflt N N none - N ----------------------------------------------------------------------------- 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 Active PDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=Foreign DS3=Dimmer Switch 3|dflt=Default|Msng=Missing|FSpace=Free Space Present TR=Transport Ready Virtual Drives = 1 VD LIST : ======= --------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name --------------------------------------------------------------- 0/0 RAID0 Optl RW Yes RWTD - ON 446.625 GB --------------------------------------------------------------- Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=Degraded Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReady|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 Physical Drives = 4 PD LIST : ======= ---------------------------------------------------------------------------- EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp ---------------------------------------------------------------------------- 8:0 11 JBOD - 3.637 TB SATA HDD N N 512B ST4000NM000A-2HZ100 U 8:1 9 JBOD - 3.637 TB SATA HDD N N 512B ST4000NM000A-2HZ100 U 8:12 21 JBOD - 446.625 GB SATA SSD N N 512B Maxtor Z1 SSD 480GB U 8:13 22 Onln 0 446.625 GB SATA SSD N N 512B Maxtor Z1 SSD 480GB U ---------------------------------------------------------------------------- EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info SeSz-Sector Size|Sp-Spun|U-Up|D-Down/PowerSave|T-Transition|F-Foreign UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded [root@localhost ~]#
[root@localhost ~]# ./storcli64 /c0/vall show Controller = 0 Status = Success Description = None Virtual Drives : ============== --------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name --------------------------------------------------------------- 0/0 RAID0 Optl RW Yes RWTD - ON 446.625 GB --------------------------------------------------------------- Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=Degraded Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReady|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 ~]# ./storcli64 /c0/v0 show Controller = 0 Status = Success Description = None Virtual Drives : ============== --------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name --------------------------------------------------------------- 0/0 RAID0 Optl RW Yes RWTD - ON 446.625 GB --------------------------------------------------------------- Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=Degraded Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReady|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 ~]#
6、查看raid組詳細信息 查看系統里面有幾個raid組: [root@localhost storcli]# ./storcli64 /c0/vall show 【查看c0控制下的所有RAID信息】 Controller = 0 Status = Success Description = None Virtual Drives : ============== --------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name --------------------------------------------------------------- 0/0 RAID1 Optl RW Yes RaWBD R OFF 278.875 GB 1/1 RAID5 Optl RW Yes RaWBD R OFF 4.089 TB 2/2 RAID5 Optl RW Yes RaWBD R OFF 4.089 TB 【顯示系統有三個raid組】 --------------------------------------------------------------- Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded Optl=Optimal|RO=Read Only|RW=Read Write|B=Blocked|Consist=Consistent| Ra=Read Ahead Adaptive|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 查看V0 (虛擬磁盤0) raid的詳細信息 [root@localhost storcli]# ./storcli64 /c0/v0 show all Controller = 0 Status = Success Description = None /c0/v0 : ====== --------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name --------------------------------------------------------------- 0/0 RAID1 Optl RW Yes RaWBD R OFF 278.875 GB 【V0為RAID1】 --------------------------------------------------------------- Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded Optl=Optimal|RO=Read Only|RW=Read Write|B=Blocked|Consist=Consistent| Ra=Read Ahead Adaptive|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 PDs for VD 0 : ============ ------------------------------------------------------------------------- EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp ------------------------------------------------------------------------- 32:24 24 Onln 0 278.875 GB SAS HDD N N 512B ST9300603SS U 32:25 25 Onln 0 278.875 GB SAS HDD N N 512B ST9300605SS U 【可以看到24號和25號盤組成了raid1】 ------------------------------------------------------------------------- EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign VD0 Properties : ============== Strip Size = 64 KB Span Depth = 1 Number of Drives Per Span = 2 Disk Cache Policy = Disk's Default Encryption = None Data Protection = None Active Operations = None Exposed to OS = Yes Creation Date = 05-09-2012 Creation Time = 01:38:23 PM Emulation type = None
使用方式 #查詢硬件RAID卡信息 [root@localhost Linux]# cat /proc/scsi/scsi |more Attached devices: Host: scsi0 Channel: 02 Id: 00 Lun: 00 Vendor: IBM Model: ServeRAID M5210 Rev: 4.62 Type: Direct-Access ANSI SCSI revision: 05 #解壓安裝storcli unzip ibm_utl_sraidmr_storcli-1.07.07_linux_32-64.zip rpm -Uvh storcli-1.07.07-1.noarch.rpm #設置軟連接 ln -s /opt/MegaRAID/storcli/storcli64 /bin/storcli ln -s /opt/MegaRAID/storcli/storcli64 /sbin/storcli #Raid數量及當前狀態 [root@localhost Linux]# storcli show ctrlcount Status Code = 0 Status = Success Description = None Controller Count = 2 #查詢虛擬磁盤大小,raid結構等 [root@localhost Linux]# storcli /c0 /v0 show Controller = 0 Status = Success Description = None Virtual Drives : ============== ----------------------------------------------------------- DG/VD TYPE State Access Consist Cache sCC Size Name ----------------------------------------------------------- 0/0 RAID1 Optl RW Yes RWTD - 278.465 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 #可以看出此為RAID1,一個虛擬磁盤,大小為278.465 GB #查看control0的物理硬盤 [root@localhost Linux]# storcli /c0 /eall /sall show Controller = 0 Status = Success Description = Show Drive Information Succeeded. Drive Information : ================= ------------------------------------------------------------------------- EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp ------------------------------------------------------------------------- 252:16 8 Onln 0 278.465 GB SAS HDD N Y 512B ST300MP0035 X U 252:17 9 Onln 0 278.465 GB SAS HDD N Y 512B ST300MP0035 X U ------------------------------------------------------------------------- EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded CFShld-Configured shielded #可以看到總計有兩顆硬盤,每一顆大小278.465GB,是否在線等 #查看control1的物理硬盤 [root@localhost Linux]# storcli /c1 /eall /sall show Controller = 1 Status = Success Description = Show Drive Information Succeeded. Drive Information : ================= ------------------------------------------------------------------------ EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp ------------------------------------------------------------------------ 8:0 23 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:1 24 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:2 22 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:3 19 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:4 13 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:5 14 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:6 18 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:7 12 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:8 10 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:9 16 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:10 11 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:11 21 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:12 15 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U 8:13 9 JBOD - 1.0810 TB SAS HDD N Y 512B ST1200MM0018 X U ------------------------------------------------------------------------ EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded CFShld-Configured shielded #可以看到總計有兩顆硬盤,每一顆大小1.0810 TB,是否在線等 #設置硬盤狀態 storcli /c1/e8/s0 show all storcli /c1/e8/s0 start locate storcli /c1/e8/s0 set offline storcli /c1/e8/s0 set online storcli /c1/e8/s0 set jbod StorCLI Help #查看StorCLI幫助信息 [root@localhost Linux]# storcli -h Storage Command Line Tool Ver 1.07.07 Nov 15, 2013 (c)Copyright 2013, LSI Corporation, All Rights Reserved. storcli -v storcli -h| -help| ? storcli -h| -help| ? legacy storcli show storcli show all storcli show ctrlcount storcli /cx add vd r[0|1|5|6|00|10|50|60] [Size=<VD1_Sz>,<VD2_Sz>,..|all] [name=<VDNAME1>,..] drives=e:s|e:s-x|e:s-x,y,e:s-x,y,z [PDperArray=x][SED] [pdcache=on|off|default][pi][DimmerSwitch(ds)=default|automatic(auto)| none|maximum(max)|MaximumWithoutCaching(maxnocache)] [wt|wb|awb][nora|ra] [direct|cached] [cachevd] [Strip=<8|16|32|64|128|256|512|1024>] [AfterVd=X] [Spares = [e:]s|[e:]s-x|[e:]s-x,y] [force][ExclusiveAccess] storcli /cx add vd each r0 [name=<VDNAME1>,..] [drives=e:s|e:s-x|e:s-x,y] [SED] [pdcache=on|off|default][pi] [DimmerSwitch(ds)=default|automatic(auto)| none|maximum(max)|MaximumWithoutCaching(maxnocache)] [wt|wb|awb] [nora|ra] [direct|cached] [Strip=<8|16|32|64|128|256|512|1024>] [ExclusiveAccess] storcli /cx add VD cachecade|nytrocache r[aid][0,1,10, 1EC] drives = [e:]s|[e:]s-x|[e:]s-x,y [WT| WB] [assignvds = 0,1,2] [BOOTVOLSIZE=x] storcli /cx/