Rebuild RAID 5 Array after new OS

I reinstalled the operating system of the homeserver. Therefore the old RAID 5 array needed to be rebuild.

root@homeserver:~# mdadm --create /dev/md0 --auto md --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: /dev/sdb1 appears to be part of a raid array:
       level=raid5 devices=3 ctime=Mon Sep 30 22:20:43 2019
mdadm: /dev/sdc1 appears to be part of a raid array:
       level=raid5 devices=3 ctime=Mon Sep 30 22:20:43 2019
mdadm: /dev/sdd1 appears to be part of a raid array:
       level=raid5 devices=3 ctime=Mon Sep 30 22:20:43 2019
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.
root@homeserver:~# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdd1[3] sdc1[1] sdb1[0]
      5860259840 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [UU_]
      [>....................]  recovery =  0.0% (332860/2930129920) finish=440.0min speed=110953K/sec
      bitmap: 22/22 pages [88KB], 65536KB chunk

unused devices: <none>
root@homeserver:~# mdadm --detail /dev/md0
/dev/md0:
        Version : 1.2
  Creation Time : Fri Oct 11 21:41:22 2019
     Raid Level : raid5
     Array Size : 5860259840 (5588.78 GiB 6000.91 GB)
  Used Dev Size : 2930129920 (2794.39 GiB 3000.45 GB)
   Raid Devices : 3
  Total Devices : 3
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Fri Oct 11 21:47:16 2019
          State : clean, degraded, recovering
 Active Devices : 2
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 512K

 Rebuild Status : 1% complete

           Name : homeserver:0  (local to host homeserver)
           UUID : 459e0e12:2c11847e:fff3c814:c00b3431
         Events : 72

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8       33        1      active sync   /dev/sdc1
       3       8       49        2      spare rebuilding   /dev/sdd1

Kommentar verfassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Scroll to Top