User Tools

Site Tools


raid:mdadm:check_the_raid_status

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raid:mdadm:check_the_raid_status [2021/09/13 23:00] peterraid:mdadm:check_the_raid_status [2021/09/14 08:41] (current) peter
Line 9: Line 9:
 <code bash> <code bash>
 Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]  Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] 
-md4 : active raid1 sdi3[0] +md0 : active raid6 sdf3[0] sdd3[7] sdg3[6] sdh3[5] sdc3[4] sdb3[2] sda3[3] sde3[1]
-      23432007232 blocks super 1.0 [1/1] [U] +
-       +
-md3 : active raid1 sdk3[0] +
-      23432007232 blocks super 1.0 [1/1] [U] +
-       +
-md1 : active raid6 sdf3[0] sdd3[7] sdg3[6] sdh3[5] sdc3[4] sdb3[2] sda3[3] sde3[1]+
       46824429696 blocks super 1.0 level 6, 64k chunk, algorithm 2 [8/8] [UUUUUUUU]       46824429696 blocks super 1.0 level 6, 64k chunk, algorithm 2 [8/8] [UUUUUUUU]
       bitmap: 21/59 pages [84KB], 65536KB chunk       bitmap: 21/59 pages [84KB], 65536KB chunk
 +</code>
 +
 +<WRAP info>
 +**NOTE:**
 +
 +  * **Personalities**:  What RAID levels the kernel currently supports.
 +    * This can be changed by either changing the raid modules or recompiling the kernel.
 +    * Possible personalities include: [raid0] [raid1] [raid4] [raid5] [raid6] [linear] [multipath] [faulty] 
 +      * **[faulty]** is a diagnostic personality; it does not mean there is a problem with the array.
 +
 +  * **md0**:  The device is /dev/md0.
 +  * **active**:  The RAID is active and started.
 +    * An inactive array is usually faulty. Stopped arrays are not visible here.
 +  * **raid6**:  The type of RAID array and the component devices are:
 +    * **sdf3[0]** is device 0.
 +    * **sdd3[7]** is device 7.
 +    * **sdg3[6]** is device 6.
 +    * **sdh3[5]** is device 5.
 +    * **sdc3[4]** is device 4.
 +    * **sdb3[2]** is device 2.
 +    * **sda3[3]** is device 3.
 +    * **sde3[1]** is device 1.
 +      * The order in which the devices appear in this line means nothing.
 +  * **46824429696 blocks**:  The usable size of the array in blocks.
 +  * **super 1.0**:  The array uses a 1.0 [[https://raid.wiki.kernel.org/index.php/RAID_superblock_formats|superblock]].
 +  * **level 6**:  Confirms this is a level 6 array.
 +  * **64k chunk**:  Has a chunk size of 64k.
 +    * This is the size for 'chunks' and is only relevant to raid levels that involve striping (1,4,5,6,10).
 +    * The address space of the array is conceptually divided into chunks and consecutive chunks are striped onto neighboring devices. 
 +  * **algorithm 2**:  Uses algorithm 2.
 +  * **[8/8]**:  The first number is the number of a complete raid devices as defined.  The second number is how many devices are in use.
 +  * **[UUUUUUUU]**:  The status of each device.
 +    * **F**:  The drive has failed.
 +    * **U**:  The drive is used and working fine.
 +    * **_**:  The drive is down.
 +
 +</WRAP>
 +
 +
 +----
 +
 +<code bash>
 +mdadm --detail /dev/md1
 +</code>
 +
 +returns:
 +
 +<code bash>
 +/dev/md1:
 +        Version : 1.0
 +  Creation Time : Tue Mar  6 17:46:54 2018
 +     Raid Level : raid6
 +     Array Size : 46824429696 (44655.26 GiB 47948.22 GB)
 +  Used Dev Size : 7804071616 (7442.54 GiB 7991.37 GB)
 +   Raid Devices : 8
 +  Total Devices : 8
 +    Persistence : Superblock is persistent
  
-md322 active raid1 sdc5[7](S) sdd5[6](S) sda5[5](S) sdb5[4](S) sdg5[3](S) sdh5[2](S) sde5[1] sdf5[0] +  Intent Bitmap Internal
-      7235136 blocks super 1.0 [2/2] [UU] +
-      bitmap: 0/1 pages [0KB], 65536KB chunk+
  
-md256 : active raid1 sdc2[7](S) sdd2[6](S) sda2[5](S) sdb2[4](S) sdg2[3](S) sdh2[2](S) sde2[1] sdf2[0] +    Update Time : Tue Sep 14 00:02:02 2021 
-      530112 blocks super 1.[2/2] [UU] +          State : active  
-      bitmap: 0/1 pages [0KB], 65536KB chunk+ Active Devices : 8 
 +Working Devices : 8 
 + Failed Devices : 
 +  Spare Devices : 0
  
-md13 active raid1 sdd4[38] sdf4[0] sde4[32] sda4[34] sdb4[33] sdc4[35] sdh4[36] sdg4[37] +         Layout left-symmetric 
-      458880 blocks super 1.0 [33/8] [UUUUUUUU_________________________] +     Chunk Size 64K
-      bitmap1/1 pages [4KB], 65536KB chunk+
  
-md9 active raid1 sdd1[38] sdf1[0] sde1[32] sda1[34] sdb1[33] sdc1[35] sdh1[36] sdg1[37] +           Name : 1 
-      530048 blocks super 1.0 [32/8] [UUUUUUUU________________________] +           UUID 85d45e53:913fde8a:55ba7e06:ee932838 
-      bitmap1/1 pages [4KB], 65536KB chunk+         Events : 16304341
  
-unused devices: <none>+    Number   Major   Minor   RaidDevice State 
 +                   83        0      active sync   /dev/sdf3 
 +                   67        1      active sync   /dev/sde3 
 +                    3        2      active sync   /dev/sda3 
 +                   19        3      active sync   /dev/sdb3 
 +                   35        4      active sync   /dev/sdc3 
 +                  115        5      active sync   /dev/sdh3 
 +                   99        6      active sync   /dev/sdg3 
 +                   51        7      active sync   /dev/sdd3
 </code> </code>
  
 +----
  
raid/mdadm/check_the_raid_status.1631574009.txt.gz · Last modified: 2021/09/13 23:00 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki