raid:mdadm:check_the_raid_status
This is an old revision of the document!
RAID - mdadm - Check the RAID status
cat /proc/mdstat
returns:
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] md4 : active raid1 sdi3[0] 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] bitmap: 21/59 pages [84KB], 65536KB chunk 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] 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] 530112 blocks super 1.0 [2/2] [UU] bitmap: 0/1 pages [0KB], 65536KB chunk md13 : active raid1 sdd4[38] sdf4[0] sde4[32] sda4[34] sdb4[33] sdc4[35] sdh4[36] sdg4[37] 458880 blocks super 1.0 [33/8] [UUUUUUUU_________________________] bitmap: 1/1 pages [4KB], 65536KB chunk md9 : active raid1 sdd1[38] sdf1[0] sde1[32] sda1[34] sdb1[33] sdc1[35] sdh1[36] sdg1[37] 530048 blocks super 1.0 [32/8] [UUUUUUUU________________________] bitmap: 1/1 pages [4KB], 65536KB chunk unused devices: <none>
NOTE: The values returned are:
- F: The drive has failed.
- U: The drive is used and working fine.
- _: The drive is unused.
mdadm --detail /dev/md1
returns:
/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 Intent Bitmap : Internal Update Time : Tue Sep 14 00:02:02 2021 State : active Active Devices : 8 Working Devices : 8 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 64K Name : 1 UUID : 85d45e53:913fde8a:55ba7e06:ee932838 Events : 16304341 Number Major Minor RaidDevice State 0 8 83 0 active sync /dev/sdf3 1 8 67 1 active sync /dev/sde3 3 8 3 2 active sync /dev/sda3 2 8 19 3 active sync /dev/sdb3 4 8 35 4 active sync /dev/sdc3 5 8 115 5 active sync /dev/sdh3 6 8 99 6 active sync /dev/sdg3 7 8 51 7 active sync /dev/sdd3
raid/mdadm/check_the_raid_status.1631574465.txt.gz · Last modified: 2021/09/13 23:07 by peter