linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Last call for input to mdadm-3.2.4
@ 2012-05-03  4:22 NeilBrown
  2012-05-03  9:18 ` Jes Sorensen
  2012-05-15 11:50 ` mdadm-3.2.5 coming soon :-( NeilBrown
  0 siblings, 2 replies; 8+ messages in thread
From: NeilBrown @ 2012-05-03  4:22 UTC (permalink / raw)
  To: linux RAID
  Cc: Jes Sorensen, Doug Ledford, Michael Tokarev, Dan Williams,
	Dorau, Lukasz, Czarnowska, Anna, Przemyslaw Czarnowski,
	Clint Byrum

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

* Re: Last call for input to mdadm-3.2.4
  2012-05-03  4:22 Last call for input to mdadm-3.2.4 NeilBrown
@ 2012-05-03  9:18 ` Jes Sorensen
  2012-05-15 11:50 ` mdadm-3.2.5 coming soon :-( NeilBrown
  1 sibling, 0 replies; 8+ messages in thread
From: Jes Sorensen @ 2012-05-03  9:18 UTC (permalink / raw)
  To: NeilBrown
  Cc: linux RAID, Doug Ledford, Michael Tokarev, Dan Williams,
	Dorau, Lukasz, Czarnowska, Anna, Przemyslaw Czarnowski,
	Clint Byrum

On 05/03/12 06:22, NeilBrown wrote:
> 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.

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


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

* mdadm-3.2.5 coming soon :-(
  2012-05-03  4:22 Last call for input to mdadm-3.2.4 NeilBrown
  2012-05-03  9:18 ` Jes Sorensen
@ 2012-05-15 11:50 ` NeilBrown
  2012-05-15 15:22   ` Maciej Naruszewicz
  1 sibling, 1 reply; 8+ messages in thread
From: NeilBrown @ 2012-05-15 11:50 UTC (permalink / raw)
  To: linux RAID
  Cc: Jes Sorensen, Doug Ledford, Michael Tokarev, Dan Williams,
	Dorau, Lukasz, Czarnowska, Anna, Przemyslaw Czarnowski,
	Clint Byrum

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]


It 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

* Re: mdadm-3.2.5 coming soon :-(
  2012-05-15 11:50 ` mdadm-3.2.5 coming soon :-( NeilBrown
@ 2012-05-15 15:22   ` Maciej Naruszewicz
  2012-05-17  5:44     ` NeilBrown
  0 siblings, 1 reply; 8+ messages in thread
From: Maciej Naruszewicz @ 2012-05-15 15:22 UTC (permalink / raw)
  To: NeilBrown
  Cc: linux RAID, Jes Sorensen, Doug Ledford, Michael Tokarev,
	Dan Williams, Dorau, Lukasz, Clint Byrum, Danecki, Jacek,
	Patelczyk, Maciej, Tomczak, Marcin

> 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

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

* Re: mdadm-3.2.5 coming soon :-(
  2012-05-15 15:22   ` Maciej Naruszewicz
@ 2012-05-17  5:44     ` NeilBrown
  2012-05-17  8:28       ` Patelczyk, Maciej
  0 siblings, 1 reply; 8+ messages in thread
From: NeilBrown @ 2012-05-17  5:44 UTC (permalink / raw)
  To: Maciej Naruszewicz
  Cc: linux RAID, Jes Sorensen, Doug Ledford, Michael Tokarev,
	Dan Williams, Dorau, Lukasz, Clint Byrum, Danecki, Jacek,
	Patelczyk, Maciej, Tomczak, Marcin

[-- Attachment #1: Type: text/plain, Size: 2332 bytes --]

On Tue, 15 May 2012 17:22:27 +0200 Maciej Naruszewicz
<maciej.naruszewicz@intel.com> wrote:

> > 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

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.

diff --git a/mapfile.c b/mapfile.c
index b890ed2..70ff355 100644
--- a/mapfile.c
+++ b/mapfile.c
@@ -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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

* RE: mdadm-3.2.5 coming soon :-(
  2012-05-17  5:44     ` NeilBrown
@ 2012-05-17  8:28       ` Patelczyk, Maciej
  2012-05-17 11:52         ` Patelczyk, Maciej
  0 siblings, 1 reply; 8+ messages in thread
From: Patelczyk, Maciej @ 2012-05-17  8:28 UTC (permalink / raw)
  To: NeilBrown, Naruszewicz, Maciej
  Cc: linux RAID, Jes Sorensen, Doug Ledford, Michael Tokarev,
	Williams, Dan J, Dorau, Lukasz, Clint Byrum, Danecki, Jacek,
	Tomczak, Marcin

> -----Original Message-----
> From: NeilBrown [mailto:neilb@suse.de]
> 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 :-(
> 
> On Tue, 15 May 2012 17:22:27 +0200 Maciej Naruszewicz
> <maciej.naruszewicz@intel.com> wrote:
> 
> > > 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
> 
> 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.
> 
> diff --git a/mapfile.c b/mapfile.c
> index b890ed2..70ff355 100644
> --- a/mapfile.c
> +++ b/mapfile.c
> @@ -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

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=PENDING
      
md127 : 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



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

* RE: mdadm-3.2.5 coming soon :-(
  2012-05-17  8:28       ` Patelczyk, Maciej
@ 2012-05-17 11:52         ` Patelczyk, Maciej
  2012-05-18  3:44           ` NeilBrown
  0 siblings, 1 reply; 8+ messages in thread
From: Patelczyk, Maciej @ 2012-05-17 11:52 UTC (permalink / raw)
  To: Patelczyk, Maciej, NeilBrown, Naruszewicz, Maciej
  Cc: linux RAID, Jes Sorensen, Doug Ledford, Michael Tokarev,
	Williams, Dan J, Dorau, Lukasz, Clint Byrum, Danecki, Jacek,
	Tomczak, Marcin

> -----Original Message-----
> From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
> owner@vger.kernel.org] 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 :-(
> 
> > -----Original Message-----
> > From: NeilBrown [mailto:neilb@suse.de]
> > 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 :-(
> >
> > On Tue, 15 May 2012 17:22:27 +0200 Maciej Naruszewicz
> > <maciej.naruszewicz@intel.com> wrote:
> >
> > > > 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
> >
> > 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.
> >
> > diff --git a/mapfile.c b/mapfile.c
> > index b890ed2..70ff355 100644
> > --- a/mapfile.c
> > +++ b/mapfile.c
> > @@ -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
> 
> Thanks Neil,
> Yes, this prevents mdadm from segfault but there's still some strange
> behavior.
> 

'mkdir /run' solves it even without fix above.

maciej

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

* Re: mdadm-3.2.5 coming soon :-(
  2012-05-17 11:52         ` Patelczyk, Maciej
@ 2012-05-18  3:44           ` NeilBrown
  0 siblings, 0 replies; 8+ messages in thread
From: NeilBrown @ 2012-05-18  3:44 UTC (permalink / raw)
  To: Patelczyk, Maciej
  Cc: Naruszewicz, Maciej, linux RAID, Jes Sorensen, Doug Ledford,
	Michael Tokarev, Williams, Dan J, Dorau, Lukasz, Clint Byrum,
	Danecki, Jacek, Tomczak, Marcin

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

On Thu, 17 May 2012 11:52:43 +0000 "Patelczyk, Maciej"
<maciej.patelczyk@intel.com> wrote:


> '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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

end of thread, other threads:[~2012-05-18  3:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03  4:22 Last call for input to mdadm-3.2.4 NeilBrown
2012-05-03  9:18 ` Jes Sorensen
2012-05-15 11:50 ` mdadm-3.2.5 coming soon :-( NeilBrown
2012-05-15 15:22   ` Maciej Naruszewicz
2012-05-17  5:44     ` NeilBrown
2012-05-17  8:28       ` Patelczyk, Maciej
2012-05-17 11:52         ` Patelczyk, Maciej
2012-05-18  3:44           ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).