Line 63: |
Line 63: |
| For all the details available by SMART on the disk | | For all the details available by SMART on the disk |
| | | |
− | [root@ ~]#'''smartctl -a /dev/sdb''' | + | [root@ ~]# '''smartctl -a /dev/sdb''' |
| | | |
| At least two types of tests are possible, short (~ 1 min) and long (~ 10 min to 90 min). | | At least two types of tests are possible, short (~ 1 min) and long (~ 10 min to 90 min). |
| | | |
− | [root@ ~]#'''smartctl -t short /dev/sdb''' #short test | + | [root@ ~]# '''smartctl -t short /dev/sdb''' #short test |
| [root@ ~]# '''smartctl -t long /dev/sdb''' #long test | | [root@ ~]# '''smartctl -t long /dev/sdb''' #long test |
| | | |
| to access the results / statistics for these tests: | | to access the results / statistics for these tests: |
| | | |
− | [root@ ~]#'''smartctl -l selftest /dev/sdb''' | + | [root@ ~]# '''smartctl -l selftest /dev/sdb''' |
| | | |
| {{Note box|if you need to change the disk due to physical failure found by the smartctl command, install a new disk of the same capacity (or more) and enter the following commands to recreate new partitions by copying them from healthy disk sda.}} | | {{Note box|if you need to change the disk due to physical failure found by the smartctl command, install a new disk of the same capacity (or more) and enter the following commands to recreate new partitions by copying them from healthy disk sda.}} |
| | | |
− | [root@ ~]#sfdisk -d /dev/sda > sfdisk_sda.output | + | [root@ ~]# '''sfdisk -d /dev/sda > sfdisk_sda.output''' |
− | [root@ ~]#sfdisk /dev/sdb < sfdisk_sda.output | + | [root@ ~]# '''sfdisk /dev/sdb < sfdisk_sda.output''' |
| | | |
| If you want to reinstate the same disk without replacing it, go to the next step. | | If you want to reinstate the same disk without replacing it, go to the next step. |