In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.