Changes

Jump to navigation Jump to search
no edit summary
Line 18: Line 18:       −
  [root@sme8-64-dev ~]# cat /proc/mdstat
+
  [root@ ~]#'''cat /proc/mdstat'''
 
  Personalities : [raid1]  
 
  Personalities : [raid1]  
 
  md1 : active raid1 sdb1[1] sda1[0]
 
  md1 : active raid1 sdb1[1] sda1[0]
Line 49: Line 49:  
At this point the disk is idle.
 
At this point the disk is idle.
 
   
 
   
  [root@sme8-64-dev ~]# cat /proc/mdstat
+
  [root@ ~]# '''cat /proc/mdstat'''
 
  Personalities : [raid1]  
 
  Personalities : [raid1]  
 
  md1 : active raid1 sda1[0]
 
  md1 : active raid1 sda1[0]
Line 63: Line 63:  
For all the details available by SMART on the disk
 
For all the details available by SMART on the disk
   −
  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).
   −
  smartctl -t short /dev/sdb #short test
+
  [root@ ~]#'''smartctl -t short /dev/sdb''' #short test
  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:
   −
  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.}}
   −
  sfdisk -d /dev/sda > sfdisk_sda.output
+
  [root@ ~]#sfdisk -d /dev/sda > sfdisk_sda.output
  sfdisk /dev/sdb < sfdisk_sda.output
+
  [root@ ~]#sfdisk /dev/sdb < sfdisk_sda.output
    
If you want to reintegrate the same disk without replacing it, go to the next step.
 
If you want to reintegrate the same disk without replacing it, go to the next step.

Navigation menu