centos7.x安裝服務(wù)器查看硬件信息命令(如:硬盤、raid)
# ls MegaCli8.07.10.tar.gz
MegaCli8.07.10.tar.gz
# tar -zxf MegaCli8.07.10.tar.gz
# cd MegaCli8.07.10
#?ls
Linux ?WINDOWS
# cd Linux/
# ls
Lib_Utils-1.00-09.noarch.rpm ?MegaCli-8.02.21-1.noarch.rpm ?readme.txt ?Run-Linux-PERC.sh
# rpm -ivh *.rpm
# ln -s /opt/MegaRAID/MegaCli/MegaCli64 /usr/local/bin/
# MegaCli64 -PDList -aALL |egrep "PD Type|Size|Media Type"
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Media Type: Solid State Device
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Media Type: Solid State Device
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Media Type: Solid State Device
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Media Type: Solid State Device
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Media Type: Solid State Device
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Media Type: Solid State Device
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Media Type: Solid State Device
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Media Type: Solid State Device
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Media Type: Solid State Device
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Media Type: Solid State Device
#?MegaCli64 -PDList -aALL |egrep "PD Type|Size|Device"?????#查看硬盤的類型
Enclosure Device ID: 32
Device Id: 0
PD Type: SAS??????????#SAS硬盤
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Device Firmware Level: B01C
Device Speed: 12.0Gb/s
Media Type: Solid State Device
Enclosure Device ID: 32
Device Id: 1
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Device Firmware Level: B01C
Device Speed: 12.0Gb/s
Media Type: Solid State Device
Enclosure Device ID: 32
Device Id: 2
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Device Firmware Level: B01C
Device Speed: 12.0Gb/s
Media Type: Solid State Device
Enclosure Device ID: 32
Device Id: 3
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Device Firmware Level: B01C
Device Speed: 12.0Gb/s
Media Type: Solid State Device
Enclosure Device ID: 32
Device Id: 4
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Device Firmware Level: B01C
Device Speed: 12.0Gb/s
Media Type: Solid State Device
Enclosure Device ID: 32
Device Id: 5
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Device Firmware Level: B01C
Device Speed: 12.0Gb/s
Media Type: Solid State Device
Enclosure Device ID: 32
Device Id: 6
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Device Firmware Level: B01C
Device Speed: 12.0Gb/s
Media Type: Solid State Device
Enclosure Device ID: 32
Device Id: 7
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Device Firmware Level: B01C
Device Speed: 12.0Gb/s
Media Type: Solid State Device
Enclosure Device ID: 32
Device Id: 8
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Device Firmware Level: B01C
Device Speed: 12.0Gb/s
Media Type: Solid State Device
Enclosure Device ID: 32
Device Id: 9
PD Type: SAS
Raw Size: 1.455 TB [0xba4d4ab0 Sectors]
Non Coerced Size: 1.454 TB [0xba3d4ab0 Sectors]
Coerced Size: 1.454 TB [0xba3c0000 Sectors]
Device Firmware Level: B01C
Device Speed: 12.0Gb/s
Media Type: Solid State Device
1).查看一共幾塊物理硬盤:
# MegaCli64 -LdPdInfo -a0 -Nolog | grep -E "Virtual Drive:|Slot Number:" | xargs | sed -r 's/(Slot Number:)(\s[0-9]+)/\2,/g' | sed 's/(Target Id: .)/Physical Drives ids:/g' | sed 's/Virtual Drive:/\nVirtual Drive:/g'??#回車
Virtual Drive: 0 Physical Drives ids: ?0, ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9,
2).查看raid級(jí)別、磁盤單塊容量和總?cè)萘浚?/span>
# MegaCli64 -LDInfo -Lall -aALL??????????????????????????????????
Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name ???????????????:
RAID Level ?????????: Primary-5, Secondary-0, RAID Level Qualifier-3
Size ???????????????: 13.093 TB??#做成raid后的總磁盤容量
Parity Size ????????: 1.454 TB?????#單塊物理磁盤容量
State ??????????????: Optimal
Strip Size ?????????: 64 KB
Number Of Drives ???: 10
Span Depth ?????????: 1
Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current 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: No
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
Is VD Cached: No
Exit Code: 0x00
?
參考地址: MegaCli64查看磁盤_人生匆匆的博客-CSDN博客?
Linux服務(wù)器硬盤種類:
Linux中常用的硬盤類型及其特點(diǎn)簡介 (linux 硬盤類型)-數(shù)據(jù)庫運(yùn)維技術(shù)服務(wù)
Linux服務(wù)器硬盤種類:
1). SATA硬盤
SATA(Serial Advanced Technology Attachment)硬盤是一種串行接口硬盤,它代替了以前的Idea接口硬盤。SATA硬盤的更大特點(diǎn)是傳輸速度快,數(shù)據(jù)傳輸速度可以達(dá)到6GB/s。同時(shí),SATA硬盤的安裝和拆卸也非常方便,只需要通過SATA數(shù)據(jù)線和SATA電源線連接即可。
2). SCSI硬盤
SCSI(Small Computer System Interface)硬盤是一種高端硬盤,適用于需要大量數(shù)據(jù)傳輸?shù)膱龊?,如服?wù)器和工作站。SCSI硬盤的傳輸速度快,同時(shí)支持多個(gè)設(shè)備的并聯(lián)。此外,SCSI硬盤還有著較高的運(yùn)行穩(wěn)定性和可靠性。
3). SAS硬盤
SAS(Serial Attachted SCSI)硬盤是一種高性能的硬盤,它將SCSI接口與SATA接口相結(jié)合。SAS硬盤的傳輸速度快,同時(shí)還可支持多個(gè)設(shè)備的并聯(lián)。此外,SAS硬盤還有著較高的安全性和容錯(cuò)性,可以保證數(shù)據(jù)的安全性和完整性。
4). IDE硬盤
IDE(Integrated Drive Electronics)硬盤是一種傳輸速度較慢的硬盤,通常用于家庭和辦公環(huán)境中。與SATA硬盤不同,IDE硬盤需要通過IDE數(shù)據(jù)線和IDE電源線進(jìn)行連接。雖然IDE硬盤的傳輸速度較慢,但其價(jià)格相對(duì)較便宜,適合一般用戶使用。
5). SSD硬盤文章來源:http://www.zghlxwxcb.cn/news/detail-741564.html
SSD(Solid State Drive)硬盤是一種采用閃存芯片作為存儲(chǔ)介質(zhì)的硬盤,與機(jī)械硬盤相比,SSD硬盤的傳輸速度更快,能夠提供更高的讀寫性能。此外,SSD硬盤還有著較高的耐用性和可靠性,可以支持較長時(shí)間的使用。文章來源地址http://www.zghlxwxcb.cn/news/detail-741564.html
到了這里,關(guān)于centos7.x安裝服務(wù)器查看硬件信息命令(如:硬盤、raid)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!