2 disk RAID1 need to replace a disk logging errors (use replace?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a 2 disk RAID1 and one of the disks is logging errors.  Array is still redundant.  I read the Wiki, this lists postings and the mdadm man page and I believe it’s advised to perform a “–-replace” rather than a “fail/remove” in order to preserve redundancy but would be happy if someone can confirm before I do it.

To replace sdb with a sdc I run the following for each mdx???


mdadm /dev/md0 --add /dev/sdc1 --replace /dev/sdb1 --with /dev/sdc1


--------------------

mdadm - v3.3 - 3rd September 2013


cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] 


md1 : active raid1 sda2[0] sdb2[2]
      14640128 blocks super 1.2 [2/2] [UU]
      
md0 : active raid1 sda1[0] sdb1[2]
      19514368 blocks super 1.2 [2/2] [UU]
      
md2 : active raid1 sdb3[2] sda3[0]
      454074368 blocks super 1.2 [2/2] [UU]
      bitmap: 1/4 pages [4KB], 65536KB chunk

Thanks,
Pete


--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux