With spinning disks let us again assume that the disk is /dev/sda you can run a short or a long test as follows: #smartctl -t short -a /dev/sda (This is a short self test) To see the overall health you can check the ‘Wear_leveling_count’ line, this starts at 100 and reduces down to 0, again this is simply a vendor estimate of the % of the remaining life of the disk if you are getting filesystem issues and slow performance then the disk may be at the end of its best days. You are then looking for any specific errors logged at the end which will be very obvious and titled as errors, if you find these please copy and paste them into a ticket for us to review. #smartctl -t long -a /dev/sda (This is a long self test) With SSD’s you can use the regular smart tests, assuming that the disk is /dev/sda you can run a short or a long test as follows: #smartctl -t short -a /dev/sda (This is a short self test) It is however VERY important to keep in mind that you can be at 100% and still see no issues with the disk, this is simply a vendor estimate of the % of the remaining life of the disk if you are getting filesystem issues and slow performance then the disk may be at the end of its best days. The closer to 100% you get the more your disk is close to the end of its predicted life. Now we know the disk is nvme0 we can check its health: Node SN Model Namespace Usage Format FW Rev You will see a list of NVMe disks: # nvme list If you do not have this installed use your package manager to install ‘nvme-cli’, you will also need ‘smartmontools’ It is a good idea to do regular checks of your server disks, however with a number of disk types now, Spinning HDD’s SSD’s and NVMe disks there are different ways to check them, this guide is intended to give you indications only it is not black and white between good and bad disks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |