On Sat, 11 Jan 2025, Greg Wooledge wrote: > On Sat, Jan 11, 2025 at 13:10:51 +0100, Roger Price wrote: > > On Sat, 11 Jan 2025, Michel Verdier wrote: > > > > > If I remember well you have to first set the device as faulty with --fail > > > before --remove could be accepted. > > > > No luck : > > > > root@titan ~ mdadm --fail /dev/md4 --remove /dev/sdb7 > > mdadm: hot remove failed for /dev/sdb7: Device or resource busy > > Is it mounted? Is it being used as swap?
No it's not mounted - I ran umount /dev/md4. It's not being used as swap. rprice@titan ~ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT ... └─sdb7 8:23 0 20G 0 part └─md124 9:124 0 20G 0 raid1 I tried commenting out the entry for md4 in /etc/mdadm/mdadm.conf . I then ran update-initramfs -u as instructed in the mdadm.conf file. I then rebooted, but md4 reappeared as /dev/md124. Roger