32:25 25 Onln 0 278.875 GB SAS HDD N N 512B ST9300605SS 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
BBU_Info :
========
Model State RetentionTime Temp Mode MfgDate Next Learn
BBU Optimal 0 hour(s) 30C 0 2011/07/18 None
4、获取enclosure信息
硬盘大多是附在enclosure上不是直接附在controller上。
显示所有的enclosure信息,但是系统中只有一个enclosure ,EID:32.
[root@localhost storcli]# ./storcli64 /c0/eall show
Controller = 0
Status = Success
Description = None
Properties :
==========
EID State Slots PD PS Fans TSs Alms SIM Port# ProdID VendorSpecific
32 OK 26 14 0 0 0 0 0 Unavailable BP12G+EXP
EID-Enclosure Device ID |PD-Physical drive count |PS-Power Supply count|
TSs-Temperature sensor count |Alms-Alarm count |SIM-SIM Count
获取单个enclosure ,e32详细信息
[root@localhost storcli]# ./storcli64 /c0/e32 show all
Controller = 0
Status = Success
Description = None
Enclosure /c0/e32 :
==================
Information :
===========
Device ID = 32
Position = 1
Connector Name = Unavailable
Enclosure Type = SES
Status = OK
FRU Part Number = N/A
Enclosure Serial Number = N/A
ESM Serial Number = N/A
Enclosure Zoning Mode = N/A
Partner Device ID = 65535
Inquiry Data :
============
Vendor Identification = DP
Product Identification = BP12G+EXP
Product Revision Level = 1.07
Properties :
==========
EID State Slots PD PS Fans TSs Alms SIM Port# ProdID VendorSpecific
32 OK 26 14 0 0 0 0 0 Unavailable BP12G+EXP
EID-Enclosure Device ID |PD-Physical drive count |PS-Power Supply count|
TSs-Temperature sensor count |Alms-Alarm count |SIM-SIM Count
5、显示物理磁盘信息
语法:storcli64 /cx/eall/sall show 显示所有物理磁盘信息
[root@localhost storcli]# ./storcli64 /c0/e32/sall show 【
显示e32上的所有物理硬盘】
[root@localhost storcli]# ./storcli64 /c0/eall/sall show【
显示所有enclosure下的所有物理硬盘】
Controller = 0
Status = Success
Description = Show Drive Information Succeeded.
Drive Information :
=================
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp
32:0 0 Onln 1 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:1 1 Onln 1 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:2 2 Onln 1 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:3 3 Onln 1 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:4 4 Onln 1 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:5 5 Onln 1 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:6 6 Onln 2 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:7 7 Onln 2 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:8 8 Onln 2 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:9 9 Onln 2 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:10 10 Onln 2 837.75 GB SAS HDD N N 512B WD9001BKHG U
32:11 11 Onln 2 837.75 GB SAS HDD N N 512B WD9001BKHG U
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
EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare【表示有热备盘,DHS专有热备,GHS全局热备】
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
从上面信息,可以看出:
- 只有一个控制器,id 为 0
- EID,Enclosure Device ID :32
- Slot Number,能看到 0,1,2,3,4,5,6,7,8,9,10,11,24,25
- DG:disk group,0,1,2
- size:容量,磁盘容量
- intf:接口,SAS
- Med:介质,ssd 或 hdd
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
7、磁盘状态设置
storcli64 /cx/ex/sx set good/offline/online/missing 设置某块磁盘的状态
good 空闲
online/offline 成员盘上下线
missing 设置磁盘为missing状态
磁盘热备
storcli64 /cx/ex/sx add hotsparedrive dgs=x 设置模块磁盘为diskgroup x 的热备盘
storcli64 /cx/ex/sx add hotsparedrive 设置全局热备
storcli64 /cx/ex/sx delete hotsparedrive
磁盘rebuild
storcli64 /cx/ex/sx show rebuild 查看rebild
storcli64 /cx/ex/sx start rebuild
storcli64 /cx/ex/sx stop rebuild
磁盘点灯
storcli64 /cx/ex/sx start locate
storcli64 /cx/ex/sx stop locate
磁盘擦除
快速擦除:
storcli64 /cx/ex/sx set good
storcli64 /cx/fall del|delete [securityKey = xxx]
完全擦除:
storcli /cx[/ex]/sx secureerase [force]
storcli /cx[/ex]/sx start erase [simple| normal| thorough | standard| threepass | crypto]
storcli /cx[/ex]/sx stop erase
storcli /cx[/ex]/sx show erase
8、获取rebuild速率
[root@localhost storcli]# ./storcli64 /c0 show rebuildrate
Controller = 0
Status = Success
Description = None
Controller Properties :
=====================
Ctrl_Prop Value
Rebuildrate 30%
storcli64 /c0 set rebuildrate=60 设置rebuild速率
9、清除缓存
清除raid卡,物理磁盘cache
storcli64 /c0 flushcache
转载于:https://www.cnblogs.com/liuxing0007/p/10912444.html
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数软件测试工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年软件测试全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上软件测试开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加V获取:vip1024b (备注软件测试)
一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
https://www.cnblogs.com/liuxing0007/p/10912444.html
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数软件测试工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年软件测试全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
[外链图片转存中…(img-JHf7DJcu-1712976395850)]
[外链图片转存中…(img-gjTjJvYn-1712976395851)]
[外链图片转存中…(img-ujzLcxcA-1712976395852)]
[外链图片转存中…(img-HkOKaqGX-1712976395853)]
[外链图片转存中…(img-CHkQPze3-1712976395853)]
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上软件测试开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加V获取:vip1024b (备注软件测试)
[外链图片转存中…(img-lBxo7o0L-1712976395854)]
一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!