Changes

Jump to navigation Jump to search
no edit summary
Line 32: Line 32:  
[0]= number of the disk
 
[0]= number of the disk
   −
{{note box|as we can see the partition sdb2 is in default, we can see the flag: sdb2 [2] (F)
+
{{note box|As we can see the partition sdb2 is in default, we can see the flag: sdb2 [2] (F). We need to resynchronize the disk sdb to the existing array md2.}}
we need to resynchronize the disk sdb to the existing raid md2.}}
      
=== Fail and remove the disk, '''sdb''' in this case ===
 
=== Fail and remove the disk, '''sdb''' in this case ===
Line 60: Line 59:  
  unused devices: <none>
 
  unused devices: <none>
   −
{{note box|You'll have to determine if your disk can be reinstated at the array. In fact sometimes a raid can get out of sync after a power failure but also some outages times for physical disk itself. It is necessary to test the hard drive if this occurs repeatedly. For this we will use smartctl.}}
+
{{note box|You'll have to determine if your disk can be reinstated at the array. In fact sometimes a raid can get out of sync after a power failure but also some outages times for physical disk itself. It is necessary to test the hard drive if this occurs repeatedly. For this we will use '''smartctl'''.}}
    +
smartctl -a /dev/sdb  # For all the details available by SMART on the disk
 +
 +
At least two types of tests are possible, short (~ 1 min) and long (~ 10 min to 90 min).
 +
 +
smartctl -t short /dev/sdb #short test
 +
smartctl -t long  /dev/sdb #long test
 +
 +
to access the results / statistics for these tests:
 +
 +
smartctl -l selftest /dev/sdb
     

Navigation menu