linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mdadm 3.3 reshape issue
@ 2013-09-17 18:56 Justin Maggard
  2013-09-17 19:12 ` Roman Mamedov
  0 siblings, 1 reply; 3+ messages in thread
From: Justin Maggard @ 2013-09-17 18:56 UTC (permalink / raw)
  To: linux-raid

Today I was trying to reshape a RAID 5, going from 3 RAID disks to 4,
using the new mdadm 3.3 release.  I had already added the new
partition to the array, which was marked as spare.  Then I ran
`/sbin/mdadm -G -n4 /dev/md127` to start the reshape.  Unfortunately,
it would always return "Failed to initiate reshape".

After a little digging, I found that this was because I'm running a
SUSE SLE11-SP3 kernel, which has partially-implemented support for
changing data_offset.  In raid5.c:raid5_start_reshape(), I found this:

                /* Don't support changing data_offset yet */
                if (rdev->new_data_offset != rdev->data_offset)
                        return -EINVAL;

So, I understand where the "Failed to initiate reshape" error is
coming from.  But is there perhaps a better way to handle this
situation?  I also found that new_data_offset does not get restored
after hitting this error, so further attempts to reshape using a
backup-file continued to fail.  Would it make sense to at least set
new_data_offset back to what it was when we fail to initiate the
reshape?

Thanks,
-Justin

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

end of thread, other threads:[~2013-09-17 19:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 18:56 Mdadm 3.3 reshape issue Justin Maggard
2013-09-17 19:12 ` Roman Mamedov
     [not found]   ` <CAKgsxVR26q+8CRzsZBTM5y5V1q1f5Pq8LqM82WtCpy9fp70MZg@mail.gmail.com>
2013-09-17 19:38     ` Fwd: " Justin Maggard

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