Re: changing uuid of mdadm array

2022-10-21 Thread Dan Ritter
Tim Woodall wrote: > On Fri, 21 Oct 2022, Dan Ritter wrote: > > > Tim Woodall wrote: > > > On Wed, 19 Oct 2022, Lucas Castro wrote: > > > > > > > The array must be identified somehow, in mdadm, array is by uuid! > > > > > > > > > > And I have two disks, which have the same uuid but are not par

Re: changing uuid of mdadm array

2022-10-21 Thread Tim Woodall
On Fri, 21 Oct 2022, Dan Ritter wrote: Tim Woodall wrote: On Wed, 19 Oct 2022, Lucas Castro wrote: The array must be identified somehow, in mdadm, array is by uuid! And I have two disks, which have the same uuid but are not part of the same array. How do I tell mdadm that they aren't part

Re: changing uuid of mdadm array

2022-10-21 Thread Dan Ritter
Tim Woodall wrote: > On Wed, 19 Oct 2022, Lucas Castro wrote: > > > The array must be identified somehow, in mdadm, array is by uuid! > > > > And I have two disks, which have the same uuid but are not part of the > same array. > > How do I tell mdadm that they aren't part of the same array? >

Re: changing uuid of mdadm array

2022-10-21 Thread Tim Woodall
On Wed, 19 Oct 2022, Lucas Castro wrote: The array must be identified somehow, in mdadm, array is by uuid! And I have two disks, which have the same uuid but are not part of the same array. How do I tell mdadm that they aren't part of the same array? I can't believe I'm the only person who

Re: changing uuid of mdadm array

2022-10-19 Thread Lucas Castro
Em 10/10/2022 02:05, Tim Woodall escreveu: On Sun, 9 Oct 2022, Lucas Castro wrote: Every time you remove a device from raid, you indeed need to erase the superblock. mdadm use the superblock to identify its raid members, if you try to add a device to a raid block it'll fail because the d

Re: changing uuid of mdadm array

2022-10-09 Thread Tim Woodall
On Sun, 9 Oct 2022, Lucas Castro wrote: Every time you remove a device from raid, you indeed need to erase the superblock. mdadm use the superblock to identify its raid members, if you try to add a device to a raid block it'll fail because the device already contain a superblock identify a

Re: changing uuid of mdadm array

2022-10-09 Thread Lucas Castro
Em 09/10/2022 19:06, Tim Woodall escreveu: On Sun, 9 Oct 2022, Andy Smith wrote: but I couldn't find any way to change the uuid in the member without creating the array like this. I don't think there is a way without either using --create as you did or stopping the array and hand editing th

Re: changing uuid of mdadm array

2022-10-09 Thread Tim Woodall
On Sun, 9 Oct 2022, Andy Smith wrote: but I couldn't find any way to change the uuid in the member without creating the array like this. I don't think there is a way without either using --create as you did or stopping the array and hand editing the metadata of the device in question. Thanks

Re: changing uuid of mdadm array

2022-10-09 Thread Andy Smith
Hello, On Sun, Oct 09, 2022 at 07:15:02PM +0100, Tim Woodall wrote: > I wanted to change the uuid on a component of a md raid1 array. The same thing was asked on the linux-raid list last month (though for RAID-10) and didn't really get an answer: https://lore.kernel.org/linux-raid/2341a2a9-

changing uuid of mdadm array

2022-10-09 Thread Tim Woodall
I wanted to change the uuid on a component of a md raid1 array. I found the following worked and didn't delete any data: mdadm --create /dev/md1 --level=raid1 --force --raid-devices=1 /dev/sdb3 but I couldn't find any way to change the uuid in the member without creating the array like this. Th