Re: Removing an unwanted RAID 1 array

2025-01-12 Thread Roger Price
On Sat, 11 Jan 2025, Michael Stone wrote: > > root@titan ~ mdadm --misc /dev/md4 --stop > > This is incorrect syntax, and a no-op (so the array did not stop). You want > `mdadm --misc --stop /dev/md4`. The --misc is implied so you can just use > `mdadm --stop /dev/md4` I ran the command root@t

Re: Removing an unwanted RAID 1 array

2025-01-11 Thread Michael Stone
On Sat, Jan 11, 2025 at 12:11:39PM +0100, Roger Price wrote: I am unable to erase an unwanted RAID 1 array. Command cat /proc/mdstat reported md4 : active raid1 sdb7[0] 20970368 blocks super 1.0 [2/1] [U_] bitmap: 1/1 pages [4KB], 65536KB chunk I understand that the array has to b

Re: Removing an unwanted RAID 1 array

2025-01-11 Thread pocket
> Sent: Saturday, January 11, 2025 at 9:51 AM > From: "Roger Price" > To: "debian-user Mailing List" > Subject: Re: Removing an unwanted RAID 1 array > > On Sat, 11 Jan 2025, Greg Wooledge wrote: > > > On Sat, Jan 11, 2025 at 13:10:51 +010

Re: Removing an unwanted RAID 1 array

2025-01-11 Thread Roger Price
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 : >

Re: Removing an unwanted RAID 1 array

2025-01-11 Thread Greg Wooledge
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

Re: Removing an unwanted RAID 1 array

2025-01-11 Thread Roger Price
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 > But if

Re: Removing an unwanted RAID 1 array

2025-01-11 Thread Michel Verdier
On 2025-01-11, Roger Price wrote: > root@titan ~ umount /dev/md4 > root@titan ~ mdadm --misc /dev/md4 --stop > root@titan ~ mdadm --manage /dev/md4 --remove /dev/sdb7 > mdadm: hot remove failed for /dev/sdb7: Device or resource busy If I remember well you have to first set the device as fault

Removing an unwanted RAID 1 array

2025-01-11 Thread Roger Price
I am unable to erase an unwanted RAID 1 array. Command cat /proc/mdstat reported md4 : active raid1 sdb7[0] 20970368 blocks super 1.0 [2/1] [U_] bitmap: 1/1 pages [4KB], 65536KB chunk I understand that the array has to be inactive before it can be removed, so I stopped it, but