Re: Hot swapping failed disk /dev/sda in RAID 1 array

2016-07-20 Thread Urs Thuermann
Peter Ludikovsky writes: > Ad 1: Yes, the SATA controller has to support Hot-Swap. You _can_ remove > the device nodes by running > # echo 1 > /sys/block//device/delete Thanks, I have now my RAID array fully working again. This is what I have done: 1. Like you suggested

Re: Hot swapping failed disk /dev/sda in RAID 1 array

2016-07-19 Thread Pascal Hambourg
Le 19/07/2016 à 16:01, Urs Thuermann a écrit : Shouldn't the device nodes and entries in /proc/partitions disappear when the drive is pulled? Or does the BIOS or the SATA controller have to support this? 2. Can I hotplug the new drive and rebuild the RAID array? As others replied,

Re: Hot swapping failed disk /dev/sda in RAID 1 array

2016-07-19 Thread Andy Smith
Hi Urs, On Tue, Jul 19, 2016 at 04:01:39PM +0200, Urs Thuermann wrote: > 2. Can I hotplug the new drive and rebuild the RAID array? It should work, if your SATA port supports hotplug. Plug the new drive in and see if the new device node appears. If it does then you're probably good to go. You

Re: Hot swapping failed disk /dev/sda in RAID 1 array

2016-07-19 Thread Peter Ludikovsky
Ad 1: Yes, the SATA controller has to support Hot-Swap. You _can_ remove the device nodes by running # echo 1 > /sys/block//device/delete Ad 2: Depends on the controller, see 1. It might recognize the new drive, or not. It might see the correct device, or not. Ad 3: As long as the second HDD is

Hot swapping failed disk /dev/sda in RAID 1 array

2016-07-19 Thread Urs Thuermann
In my RAID 1 array /dev/md0 consisting of two SATA drives /dev/sda1 and /dev/sdb1 the first drive /dev/sda has failed. I have called mdadm --fail and mdadm --remove on that drive and then pulled the cables and removed the drive. The RAID array continues to work fine but in degraded mode. I have