User Tools

Site Tools


linux:centos:software-raid1-setup

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
linux:centos:software-raid1-setup [2020/04/22 20:59] – [Replace a failed hard disk in the raid configuration] odeftalinux:centos:software-raid1-setup [2023/07/26 16:06] (current) – [Re-add a good hard disk (after cable disconnection for example)] odefta
Line 120: Line 120:
 mdadm --add /dev/md0 /dev/sdb mdadm --add /dev/md0 /dev/sdb
 </code> </code>
 +
 +==== Re-add a good hard disk (after cable disconnection for example) ====
 +
 +After reinserting the hard disk, it may be mounted now on a different device letter.\\ Ckeck it by running:
 +
 +<code>
 +fdisk -l
 +</code>
 +
 +Output:
 +<code>
 +...
 +Disk /dev/sdd: 4000.8 GB, 4000787029504 bytes, 7814037167 sectors
 +Units = sectors of 1 * 512 = 512 bytes
 +Sector size (logical/physical): 512 bytes / 4096 bytes
 +I/O size (minimum/optimal): 4096 bytes / 4096 bytes
 +</code>
 +
 +After identifying it, re-add it to the raid array with:
 +
 +<code>
 +mdadm --manage /dev/md0 --add /dev/sdd
 +</code>
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
  
  
linux/centos/software-raid1-setup.1587578367.txt.gz · Last modified: 2023/07/04 19:36 (external edit)