In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-10-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
The use of smartctl command line.
Command line instructions:
At present, all the servers we use have lsi raid cards. When using smartctl when the disk is SAS disk, you need to add:
Smartctl-d megaraid,$deviceid / dev/$diskname
When using smartctl when the disk is SATA disk, you need to add:
Smartctl-d sat+megaraid,$deviceid / dev/$diskname
You can use the raid card tool to view the disk interface type
Megacli-cfgdsply-aall | grep'PD TYPE'
If you do not use a raid card, you do not need to add the-d parameter.
Command line return value
After the execution of smartctl is finished, you can start from $? Shell variable to get the return value, if the disk is completely normal, the return value is 0, otherwise set the corresponding bit bit according to the error type.
The description of each bit is as follows:
Bit 0: Command line did not parse. Bit 1: Device open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode (see-n option above). Bit 2: Some SMART or other ATA command to the disk failed, or there was a checksum error in a SMART data structure (see-b option above). Bit 3: SMART status check returned "DISK FAILING". Bit 4: We found prefail Attributes
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.