public inbox for linux-raid@vger.kernel.org
 help / color / mirror / Atom feed
* Unable to set group_thread_cnt using mdadm.conf
@ 2025-10-17 14:07 Franco Martelli
  2025-10-20 14:40 ` Xiao Ni
  0 siblings, 1 reply; 5+ messages in thread
From: Franco Martelli @ 2025-10-17 14:07 UTC (permalink / raw)
  To: linux-raid; +Cc: xni, ncroxon, mtkaczyk

Hello,

I've a RAID5 array on Debian 13:

~$ cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [linear] [raid0] [raid1] [raid10]
md0 : active raid5 sda1[0] sdc1[2] sdd1[3](S) sdb1[1]
       1953258496 blocks super 1.2 level 5, 512k chunk, algorithm 2 
[3/3] [UUU]

unused devices: <none>

~# mdadm --version
mdadm - v4.4 - 2024-11-07 - Debian 4.4-11

the issue is that I can't set group_thread_cnt if I use the syntax 
described in mdadm.conf(5) man-page:

…
SYSFS name=/dev/md/raid5 group_thread_cnt=4 sync_speed_max=1000000
SYSFS uuid=bead5eb6:31c17a27:da120ba2:7dfda40d group_thread_cnt=4 
sync_speed_max=1000000

my "mdadm.conf" is:

~$ grep -v '^#' /etc/mdadm/mdadm.conf


HOMEHOST <system>

MAILADDR root

ARRAY /dev/md/0  metadata=1.2 UUID=8bdf78b9:4cad434c:3a30392d:8463c7e0
    spares=1


SYSFS name=/dev/md/0 group_thread_cnt=8
SYSFS uuid=8bdf78b9:4cad434c:3a30392d:8463c7e0 sync_speed_max=1000000


after I makes changes to the file "mdadm.conf" I rebuild the initramfs 
image file and reboot. The thing that seems strange to me is that the 
other item I set (sync_speed_max) is changed accordingly, only 
"group_thread_cnt" fails to set (it's always ==0):

~$ cat /sys/block/md0/md/group_thread_cnt
0
~$ cat /sys/block/md0/md/sync_speed_max
1000000 (system)

Why "sync_speed_max" is set while "group_thread_cnt" it is not? Any clue?

Thanks in advance, kind regards.
--
Franco Martelli

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Unable to set group_thread_cnt using mdadm.conf
@ 2025-10-14 19:53 Franco Martelli
  0 siblings, 0 replies; 5+ messages in thread
From: Franco Martelli @ 2025-10-14 19:53 UTC (permalink / raw)
  To: linux-raid

Hello,

I've a RAID5 array on Debian 13:

~$ cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [linear] [raid0] [raid1] [raid10]
md0 : active raid5 sda1[0] sdc1[2] sdd1[3](S) sdb1[1]
       1953258496 blocks super 1.2 level 5, 512k chunk, algorithm 2 
[3/3] [UUU]

unused devices: <none>

~# mdadm --version
mdadm - v4.4 - 2024-11-07 - Debian 4.4-11

the issue is that I can't set group_thread_cnt if I use the syntax 
described in mdadm.conf(5) man-page:

…
SYSFS name=/dev/md/raid5 group_thread_cnt=4 sync_speed_max=1000000
SYSFS uuid=bead5eb6:31c17a27:da120ba2:7dfda40d group_thread_cnt=4 
sync_speed_max=1000000

my "mdadm.conf" is:

~$ cat /etc/mdadm/mdadm.conf | grep -v "#"


HOMEHOST <system>

MAILADDR root

ARRAY /dev/md/0  metadata=1.2 UUID=8bdf78b9:4cad434c:3a30392d:8463c7e0
    spares=1


SYSFS name=/dev/md/0 group_thread_cnt=8
SYSFS uuid=8bdf78b9:4cad434c:3a30392d:8463c7e0 sync_speed_max=1000000


after I makes changes to the file I rebuild the initramfs image file and 
reboot. The thing that seems strange to me is that the other item I set 
(sync_speed_max) is changed accordingly, only "group_thread_cnt" fails 
to set (it's always =0).
Why "sync_speed_max" is set while "group_thread_cnt" it is not? Any clue?

Thanks in advance, kind regards.
--
Franco Martelli


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

end of thread, other threads:[~2025-10-21  0:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-17 14:07 Unable to set group_thread_cnt using mdadm.conf Franco Martelli
2025-10-20 14:40 ` Xiao Ni
2025-10-20 19:22   ` Franco Martelli
2025-10-21  0:33     ` Xiao Ni
  -- strict thread matches above, loose matches on Subject: below --
2025-10-14 19:53 Franco Martelli

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