Linux RAID subsystem development
 help / color / mirror / Atom feed
* Unable to add journal device to RAID 6 array
@ 2022-05-06 10:42 James Stephenson
  2022-05-06 11:48 ` Guoqing Jiang
  0 siblings, 1 reply; 5+ messages in thread
From: James Stephenson @ 2022-05-06 10:42 UTC (permalink / raw)
  To: linux-raid

Hi,

First time using this (and indeed any) mailing list, so apologies if I
violate any etiquette I'm not aware of!

I'm trying to add a write-back journal device to an existing RAID 6
array, and it's proving difficult. Essentially I did this:

1. Put the array in read-only
2. Attempt to add a journal device to the array
3. md said no because the array has a bitmap
4. I tried to remove the bitmap, and it said no: 'md: couldn't update
array info. -16'
5. I rebooted
6. The array wouldn't start, and to my surprise was listed as having a
journal device. Here's what it looked like:
https://gist.github.com/jstephenson/1db2008c4243c2539d029f1f4706dc14
7. It was _very_ unhappy, and refused to do anything: 'md/raid:md126:
array cannot have both journal and bitmap'
8. The only thing I could do was to zero the superblock on the journal
device, and then fortunately everything assemble again nicely (with
bitmap still in place)

So, after a bit of messing around the array is back to where I
started—RAID 6 with internal bitmap. However, I still cannot remove
its bitmap.

1. sudo mdadm --grow /dev/md126 --bitmap=none
2. md: couldn't update array info. -16

I would greatly appreciate any thoughts on why this might be.

Kernel 5.10.106, mdadm 4.1

Thanks,

James

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-06 13:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-06 10:42 Unable to add journal device to RAID 6 array James Stephenson
2022-05-06 11:48 ` Guoqing Jiang
2022-05-06 11:55   ` James Stephenson
2022-05-06 12:05     ` Guoqing Jiang
2022-05-06 13:25       ` James Stephenson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox