User Tools

Site Tools


managing_linux_software_raid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
managing_linux_software_raid [2008/08/27 10:10]
adam
managing_linux_software_raid [2008/09/12 12:09]
adam
Line 19: Line 19:
 Viewing the status of the array (the one shown here is repairing): Viewing the status of the array (the one shown here is repairing):
  
-[root@host ~]# cat /proc/mdstat  +  [root@host ~]# cat /proc/mdstat  
-Personalities : [raid1]  +  Personalities : [raid1]  
-md1 : active raid1 sdc1[2] sdd1[1] +  md1 : active raid1 sdc1[2] sdd1[1] 
-      142327744 blocks [2/1] [_U] +        142327744 blocks [2/1] [_U] 
-      [==========>..........]  recovery = 54.5% (77655168/142327744) finish=65.2min speed=16503K/sec +        [==========>..........]  recovery = 54.5% (77655168/142327744) finish=65.2min speed=16503K/sec 
-md0 : active raid1 sdb1[1] sda1[0] +  md0 : active raid1 sdb1[1] sda1[0] 
-      142327744 blocks [2/2] [UU] +        142327744 blocks [2/2] [UU] 
-       +         
-unused devices: <none>+  unused devices: <none>
  
 Showing status detail for a particular array: Showing status detail for a particular array:
  
   [root@host ~]# mdadm --detail /dev/md1   [root@host ~]# mdadm --detail /dev/md1
-/dev/md1: +  /dev/md1: 
-        Version : 00.90.01 +          Version : 00.90.01 
-  Creation Time : Sat Jan 13 08:24:54 2007 +    Creation Time : Mon Sep  8 09:27:41 2008 
-     Raid Level : raid1 +       Raid Level : raid1 
-     Array Size : 142327744 (135.73 GiB 145.74 GB) +       Array Size : 142327744 (135.73 GiB 145.74 GB) 
-    Device Size : 142327744 (135.73 GiB 145.74 GB) +      Device Size : 142327744 (135.73 GiB 145.74 GB) 
-   Raid Devices : 2 +     Raid Devices : 2 
-  Total Devices : 2 +    Total Devices : 2 
-Preferred Minor : 1 +  Preferred Minor : 1 
-    Persistence : Superblock is persistent +      Persistence : Superblock is persistent 
- +   
-    Update Time : Wed Aug 27 09:10:48 2008 +      Update Time : Fri Sep 12 12:07:18 2008 
-          State : clean, degraded, recovering +            State : clean 
- Active Devices : 1 +   Active Devices : 2 
-Working Devices : 2 +  Working Devices : 2 
- Failed Devices : 0 +   Failed Devices : 0 
-  Spare Devices : 1 +    Spare Devices : 0 
- +   
- +   
- Rebuild Status : 55% complete +      Number   Major   Minor   RaidDevice State 
- +         0             33             active sync   /dev/sdc1 
-    Number   Major   Minor   RaidDevice State +         1       8       49             active sync   /dev/sdd1 
-             0        0       -1      removed +             UUID : 4f4ab348:d8fe0303:1a07dcc9:ff9ba005 
-             8       49             active sync   /dev/sdd1 +           Events : 0.190631
-       2       8       33             spare   /dev/sdc1 +
-           UUID : cb59fcb5:d61a134b:3e799237:ab0c3b4f +
-         Events : 0.25582871+
  
 View the Detail of a Particular Disk in an Array: View the Detail of a Particular Disk in an Array:
  
-[root@host ~]# mdadm --examine /dev/sdd1 +  [root@host ~]# mdadm --examine /dev/sdd1 
-/dev/sdd1: +  /dev/sdd1: 
-          Magic : a92b4efc +            Magic : a92b4efc 
-        Version : 00.90.00 +          Version : 00.90.00 
-           UUID : cb59fcb5:d61a134b:3e799237:ab0c3b4f +             UUID : 4f4ab348:d8fe0303:1a07dcc9:ff9ba005 
-  Creation Time : Sat Jan 13 08:24:54 2007 +    Creation Time : Mon Sep  8 09:27:41 2008 
-     Raid Level : raid1 +       Raid Level : raid1 
-    Device Size : 142327744 (135.73 GiB 145.74 GB) +      Device Size : 142327744 (135.73 GiB 145.74 GB) 
-   Raid Devices : 2 +     Raid Devices : 2 
-  Total Devices : 2 +    Total Devices : 2 
-Preferred Minor : 1 +  Preferred Minor : 1 
- +   
-    Update Time : Wed Aug 27 09:20:10 2008 +      Update Time : Fri Sep 12 12:05:33 2008 
-          State : clean +            State : clean 
- Active Devices : 1 +   Active Devices : 2 
-Working Devices : 2 +  Working Devices : 2 
- Failed Devices : 0 +   Failed Devices : 0 
-  Spare Devices : 1 +    Spare Devices : 0 
-       Checksum : ce0b5011 - correct +         Checksum : 852842d6 - correct 
-         Events : 0.25583249 +           Events : 0.190583 
- +   
- +   
-      Number   Major   Minor   RaidDevice State +        Number   Major   Minor   RaidDevice State 
-this                 49        1      active sync   /dev/sdd1 +  this                 49        1      active sync   /dev/sdd1 
-   0           0        0        0      removed +     0                 33             active sync   /dev/sdc1 
-             8       49             active sync   /dev/sdd1 +     1           8       49             active sync   /dev/sdd1
-   2           8       33             spare   /dev/sdc1 +
  
 ==== Other Articles on Linux Software RAID ==== ==== Other Articles on Linux Software RAID ====
managing_linux_software_raid.txt · Last modified: 2016/11/25 22:38 (external edit)