Last call for input to mdadm-3.2.4
Hi all,
I hope to release mdadm-3.2.4 next week.
This is mostly a bugfix release though there are a few small features like "--prefer=" which guides the selection of the device names reported by --detail and --monitor.
It also now defaults /run/mdadm for runtime files rather than /dev/.mdadm or /var/run/mdadm.
I hope it will be just what I currently have in the 'master' branch of my git tree, plus changes to the version numbers. However if anyone has anything that they really want to go in *now* I'm open to contributions if they are important.
I'll then try to focus more on preparing for 3.3 which will include:
- badblock log support
- hot-replace support
- raid10 reshape
and maybe other stuff.
NeilBrown
Quoted 14 lines · NeilBrown
Hi all,
I hope to release mdadm-3.2.4 next week.This is mostly a bugfix release though there are a few small features like "--prefer=" which guides the selection of the device names reported by --detail and --monitor.
It also now defaults/run/mdadmfor runtime files rather than/dev/.mdadmor/var/run/mdadm.I hope it will be just what I currently have in the 'master' branch of my git tree, plus changes to the version numbers. However if anyone has anything that they really want to go in *now* I'm open to contributions if they are important.
Quoted 6 lines
I'll then try to focus more on preparing for 3.3 which will include:
- badblock log support
- hot-replace support
- raid10 reshapeand maybe other stuff.
Neil,
I just looked through my bug queue and I don't see anything that I am desperate to have resolved before 3.2.4, so I am happy to see 3.2.4 fly. Just did a giant bugfix backport for Fedora the last couple of days which I would have skipped if I knew 3.2.4 which this close :)
Thanks for the heads up!
Jes
mdadm-3.2.5 coming soon :-(
In reply to NeilBrownIt turns out that there is a nasty regression in 3.2.4. --add is even more broken than it was before. My testing doesn't test new mdadm against arrays created with old mdadm, and so missed it. I should probably find a way to improve on that.
So 3.2.4 isn't really a good idea so I'll be releasing 3.2.5 on Friday. I currently have 5 patches since 3.2.4. So it'll be a small but (hopefully) safe update.
If anyone knows of any other issues that have cropped up wit 3.2.4, please let me know.
Thanks,
NeilBrown
Re: mdadm-3.2.5 coming soon :-(
Quoted 5 lines
If anyone knows of any other issues that have cropped up wit 3.2.4, please let me know.
Thanks,
NeilBrown
Since mdadm-3.2.4 creating volumes using IMSM containers is impossible (segfaults), unless the kernel is 3.1.x or higher (for instance everything SEEMS to work in RHEL 7.0 Alpha and openSUSE 12.1). Full story from SLES 11 SP2 (kernel-3.0.13-0.27-default) with mdadm-3.2.4 :
$ mdadm --zero-superblock /dev/sd[cd] $ mdadm -C /dev/md/imsm0 -a md -e imsm -n 2 /dev/sd[cd] -R
[...]
$ tail /var/log/messages
May 15 17:16:10 gklab-128-174 kernel: [ 317.653470] md: bind<sdc>
May 15 17:16:10 gklab-128-174 kernel: [ 317.653519] md: bind<sdd>
May 15 17:16:11 gklab-128-174 udevd-work[5249]: '/sbin/mdadm
--detail --export /dev/md127' unexpected exit with status 0x000b
May 15 17:16:11 gklab-128-174 kernel: [ 317.701434] mdadm[5250]: segfault at 78 ip 0000000000450c4f sp 00007fff6c99ada0 error 4 in mdadm[400000+69000]
$ mdadm -C /dev/md/raid1_2disks -a md -l 1 --size 1500000 -n 2 /dev/sd[cd] -R -f
mdadm: cannot open device: 11:0
[...]
mdadm: cannot open device: 11:0
[...]
Segmentation fault
$ tail /var/log/messages
May 15 17:18:36 gklab-128-174 kernel: [ 463.291235] mdadm[5298]:
segfault at 78 ip 0000000000450c4f sp 00007fff8ad887e0 error 4 in mdadm[400000+69000]
Similiar story in RHEL 6.3 Beta, those errors don't happen with kernel >= 3.1.x though (or mdadm-3.2.3 :)).
Maciek N
Re: mdadm-3.2.5 coming soon :-(
Quoted 37 lines · On Tue, 15 May 2012 17:22:27 +0200 Maciej Naruszewicz…
Quoted 5 lines
If anyone knows of any other issues that have cropped up wit 3.2.4, please let me know.
Thanks,
NeilBrownSince mdadm-3.2.4 creating volumes using IMSM containers is impossible (segfaults), unless the kernel is 3.1.x or higher (for instance everything SEEMS to work in RHEL 7.0 Alpha and openSUSE 12.1). Full story from SLES 11 SP2 (kernel-3.0.13-0.27-default) with mdadm-3.2.4 :
$ mdadm --zero-superblock /dev/sd[cd] $ mdadm -C /dev/md/imsm0 -a md -e imsm -n 2 /dev/sd[cd] -R[...]$ tail /var/log/messagesMay 15 17:16:10 gklab-128-174 kernel: [ 317.653470] md: bind<sdc> May 15 17:16:10 gklab-128-174 kernel: [ 317.653519] md: bind<sdd> May 15 17:16:11 gklab-128-174 udevd-work[5249]: '/sbin/mdadm --detail --export /dev/md127' unexpected exit with status 0x000b May 15 17:16:11 gklab-128-174 kernel: [ 317.701434] mdadm[5250]:segfault at 78 ip
0000000000450c4fsp00007fff6c99ada0error 4 in mdadm[400000+69000]$ mdadm -C /dev/md/raid1_2disks -a md -l 1 --size 1500000 -n 2 /dev/sd[cd] -R -fmdadm: cannot open device: 11:0
[...]
mdadm: cannot open device: 11:0
[...]
Segmentation fault$ tail /var/log/messages
Quoted 8 lines
May 15 17:18:36 gklab-128-174 kernel: [ 463.291235] mdadm[5298]:segfault at 78 ip
0000000000450c4fsp00007fff8ad887e0error 4 in mdadm[400000+69000]Similiar story in RHEL 6.3 Beta, those errors don't happen with kernel
Quoted 1 line
= 3.1.x though (or mdadm-3.2.3 :)).
Maciek N
Could the difference be that fact that 3.2.4 default to using /run, which doens't exist on SLES11 and may on in RHEL 6.3?
If you compile with
make MAP_DIR=/var/run/mdadm
does it work better?
However I think this will fix the crash you are seeing.
mapfile.c +2 -0
@@ -404,6 +404,8 @@ void RebuildMap(void)if (ok !=0 )continue ; info = st->ss->container_content (st, subarray); +if (!info) +continue ;if (md->devnum >=0 ) path =map_dev (MD_MAJOR , md->devnum,0 );
Thanks,
NeilBrown
RE: mdadm-3.2.5 coming soon :-(
Quoted 87 lines
-----Original Message-----
From: NeilBrown [mailto:[email protected]]
Sent: Thursday, May 17, 2012 7:45 AM
To: Naruszewicz, Maciej
Cc: linux RAID; Jes Sorensen; Doug Ledford; Michael Tokarev; Williams, Dan J; Dorau, Lukasz; Clint Byrum; Danecki, Jacek; Patelczyk, Maciej; Tomczak, Marcin
Subject: Re: mdadm-3.2.5 coming soon :-(Quoted 7 lines · On Tue, 15 May 2012 17:22:27 +0200 Maciej Naruszewicz…
Quoted 5 lines
If anyone knows of any other issues that have cropped up wit 3.2.4, please let me know.
Thanks,
NeilBrownSince mdadm-3.2.4 creating volumes using IMSM containers is
impossible
Quoted 3 lines
(segfaults), unless the kernel is 3.1.x or higher (for instance everything SEEMS to work in RHEL 7.0 Alpha and openSUSE 12.1). Full story from SLES 11 SP2 (kernel-3.0.13-0.27-default) with mdadm-3.2.4
:
Quoted 9 lines
$ mdadm --zero-superblock /dev/sd[cd] $ mdadm -C /dev/md/imsm0 -a md -e imsm -n 2 /dev/sd[cd] -R[...]$ tail /var/log/messagesMay 15 17:16:10 gklab-128-174 kernel: [ 317.653470] md:bind<sdc>
Quoted 1 line
May 15 17:16:10 gklab-128-174 kernel: [ 317.653519] md:bind<sdd>
Quoted 3 lines
May 15 17:16:11 gklab-128-174 udevd-work[5249]: '/sbin/mdadm --detail --export /dev/md127' unexpected exit with status 0x000b May 15 17:16:11 gklab-128-174 kernel: [ 317.701434]mdadm[5250]:
Quoted 12 lines
segfault at 78 ip
0000000000450c4fsp00007fff6c99ada0error 4 in mdadm[400000+69000]$ mdadm -C /dev/md/raid1_2disks -a md -l 1 --size 1500000 -n 2 /dev/sd[cd] -R -fmdadm: cannot open device: 11:0
[...]
mdadm: cannot open device: 11:0
[...]
Segmentation faultQuoted 3 lines
$ tail /var/log/messagesMay 15 17:18:36 gklab-128-174 kernel: [ 463.291235]mdadm[5298]:
Quoted 4 lines
segfault at 78 ip
0000000000450c4fsp00007fff8ad887e0error 4 in mdadm[400000+69000]Similiar story in RHEL 6.3 Beta, those errors don't happen with
kernel
Quoted 3 lines
Quoted 1 line
= 3.1.x though (or mdadm-3.2.3 :)).
Maciek N
Could the difference be that fact that 3.2.4 default to using /run, which doens't exist on SLES11 and may on in RHEL 6.3?
If you compile with
make MAP_DIR=/var/run/mdadm
does it work better?However I think this will fix the crash you are seeing.
mapfile.c +2
-0@@ -404,6 +404,8 @@ void RebuildMap(void)if (ok !=0 )continue ; info = st->ss->container_content (st, subarray); +if (!info) +continue ;if (md->devnum >=0 ) path =map_dev (MD_MAJOR , md->devnum,0 );
Quoted 2 lines
Thanks,
NeilBrown
Thanks Neil,
Yes, this prevents mdadm from segfault but there's still some strange behavior.
After command:
$ mdadm -C /dev/md/raid1_2disks -a md -l 1 --size 1500000 -n 2 /dev/sd[cd] -R -f
I can see message like (twice):
mdadm: cannot open device: 11:0
and in /proc/mdstat:
cat /proc/mdstat
Personalities : [raid1]
md125 : inactive sdb[1] sdc[0]
0 blocks super external:/md127/0
md126 : active (read-only) raid1 sdc[1] sdb[0]
1499136 blocks super external:/md127/0 [2/2] [UU]
resync=PENDINGmd127 : inactive sdc[1](S) sdb[0](S)
2210 blocks super external:imsm
unused devices: <none>
and there is no /dev/md directory.
We're investigating it.
maciej
RE: mdadm-3.2.5 coming soon :-(
Quoted 99 lines
-----Original Message-----
From: [email protected] [mailto:linux-raid- [email protected]] On Behalf Of Patelczyk, Maciej
Sent: Thursday, May 17, 2012 10:28 AM
To: NeilBrown; Naruszewicz, Maciej
Cc: linux RAID; Jes Sorensen; Doug Ledford; Michael Tokarev; Williams, Dan J; Dorau, Lukasz; Clint Byrum; Danecki, Jacek; Tomczak, Marcin
Subject: RE: mdadm-3.2.5 coming soon :-(Quoted 5 lines
-----Original Message-----
From: NeilBrown [mailto:[email protected]]
Sent: Thursday, May 17, 2012 7:45 AM
To: Naruszewicz, Maciej
Cc: linux RAID; Jes Sorensen; Doug Ledford; Michael Tokarev;Williams,
Quoted 7 lines
Dan J; Dorau, Lukasz; Clint Byrum; Danecki, Jacek; Patelczyk, Maciej; Tomczak, Marcin
Subject: Re: mdadm-3.2.5 coming soon :-(On Tue, 15 May 2012 17:22:27 +0200 Maciej Naruszewicz <[email protected]> wrote:
Quoted 11 lines
Quoted 7 lines
Quoted 5 lines
If anyone knows of any other issues that have cropped up wit 3.2.4, please let me know.
Thanks,
NeilBrownSince mdadm-3.2.4 creating volumes using IMSM containers is
impossible
Quoted 3 lines
(segfaults), unless the kernel is 3.1.x or higher (for instance everything SEEMS to work in RHEL 7.0 Alpha and openSUSE 12.1). Full story from SLES 11 SP2 (kernel-3.0.13-0.27-default) with mdadm-
3.2.4
Quoted 3 lines
:
Quoted 2 lines
$ mdadm --zero-superblock /dev/sd[cd] $ mdadm -C /dev/md/imsm0 -amd
Quoted 61 lines
Quoted 7 lines
-e imsm -n 2 /dev/sd[cd] -R
[...]$ tail /var/log/messagesMay 15 17:16:10 gklab-128-174 kernel: [ 317.653470] md:bind<sdc>
Quoted 1 line
May 15 17:16:10 gklab-128-174 kernel: [ 317.653519] md:bind<sdd>
Quoted 3 lines
May 15 17:16:11 gklab-128-174 udevd-work[5249]: '/sbin/mdadm --detail --export /dev/md127' unexpected exit with status 0x000b May 15 17:16:11 gklab-128-174 kernel: [ 317.701434]mdadm[5250]:
Quoted 12 lines
segfault at 78 ip
0000000000450c4fsp00007fff6c99ada0error 4 in mdadm[400000+69000]$ mdadm -C /dev/md/raid1_2disks -a md -l 1 --size 1500000 -n 2 /dev/sd[cd] -R -fmdadm: cannot open device: 11:0
[...]
mdadm: cannot open device: 11:0
[...]
Segmentation faultQuoted 3 lines
$ tail /var/log/messagesMay 15 17:18:36 gklab-128-174 kernel: [ 463.291235]mdadm[5298]:
Quoted 4 lines
segfault at 78 ip
0000000000450c4fsp00007fff8ad887e0error 4 in mdadm[400000+69000]Similiar story in RHEL 6.3 Beta, those errors don't happen with
kernel
Quoted 3 lines
Quoted 1 line
= 3.1.x though (or mdadm-3.2.3 :)).
Maciek N
Could the difference be that fact that 3.2.4 default to using /run, which doens't exist on SLES11 and may on in RHEL 6.3?
If you compile with
make MAP_DIR=/var/run/mdadm
does it work better?However I think this will fix the crash you are seeing.
mapfile.c +2
-0@@ -404,6 +404,8 @@ void RebuildMap(void)if (ok !=0 )continue ; info = st->ss->container_content (st, subarray); +if (!info) +continue ;if (md->devnum >=0 ) path =map_dev (MD_MAJOR , md->devnum,0 );
Quoted 7 lines
Quoted 2 lines
Thanks,
NeilBrownThanks Neil,
Yes, this prevents mdadm from segfault but there's still some strange behavior.
'mkdir /run' solves it even without fix above.
maciej
Re: mdadm-3.2.5 coming soon :-(
Quoted 1 line · Maciej
'mkdir /run' solves it even without fix above.
Great.
So if you compile with -DMAP_DIR=/var/run or as appropriate for the distro, then it should work.
Thanks,
NeilBrown