Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to query whether a disk is an SSD disk or a SAS disk according to osdid

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

In this issue, the editor will bring you about how to query whether the disk is an SSD disk or a SAS disk according to osdid. The article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.

Prerequisites:

1. Install the Megacli package for LSI

two。 Install the query tool lsscsi for scsi devices

Apt-get install lsscsi steps:

1. Find the drive letter according to osdid

Ceph-disk list | grep-A1-B1 osd.0 | egrep "^ / dev/sd*\ b" | cut-d':'- F1

two。 Find the target id of the device according to the drive letter

Lsscsi | grep / dev/sdd | awk'{print $1}'| cut-d':'- f3

3. Determine if the disk is a sas disk:

Execute the following command to return 2

. / MegaCli-LdPdInfo-aAll | grep-A 69 "Target Id: 3"\ | egrep'(PD Type: SAS | Media Type: Hard Disk Device)'| wc-l

4. Determine whether the disk is the ssd of the sata interface:

Execute the following command to return 2

. / MegaCli-LdPdInfo-aAll | grep-A 69 "Target Id: 6"\ | egrep'(PD Type: SATA | Media Type: Solid State Device)'| wc-l

The above is the editor for you to share how to query the disk according to osdid SSD disk or SAS disk, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report