* 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* Re: Mdadm 3.3 reshape issue 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> 0 siblings, 1 reply; 3+ messages in thread From: Roman Mamedov @ 2013-09-17 19:12 UTC (permalink / raw) To: Justin Maggard; +Cc: linux-raid [-- Attachment #1: Type: text/plain, Size: 403 bytes --] On Tue, 17 Sep 2013 11:56:06 -0700 Justin Maggard <jmaggard10@gmail.com> wrote: > I'm running a SUSE SLE11-SP3 kernel Or you could have mentioned which actual kernel version you are running... Anyways to save people some googling and sifting through useless release notes, this seems to be based on Linux 3.0.76. Personally I'd suggest upgrading to 3.10 or 3.11. -- With respect, Roman [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CAKgsxVR26q+8CRzsZBTM5y5V1q1f5Pq8LqM82WtCpy9fp70MZg@mail.gmail.com>]
* Fwd: Mdadm 3.3 reshape issue [not found] ` <CAKgsxVR26q+8CRzsZBTM5y5V1q1f5Pq8LqM82WtCpy9fp70MZg@mail.gmail.com> @ 2013-09-17 19:38 ` Justin Maggard 0 siblings, 0 replies; 3+ messages in thread From: Justin Maggard @ 2013-09-17 19:38 UTC (permalink / raw) To: linux-raid On Tue, Sep 17, 2013 at 12:12 PM, Roman Mamedov <rm@romanrm.net> wrote: > > On Tue, 17 Sep 2013 11:56:06 -0700 > Justin Maggard <jmaggard10@gmail.com> wrote: > > > I'm running a SUSE SLE11-SP3 kernel > > Or you could have mentioned which actual kernel version you are running... > Anyways to save people some googling and sifting through useless release > notes, this seems to be based on Linux 3.0.76. > Personally I'd suggest upgrading to 3.10 or 3.11. The version I'm running is based on 3.0.82, with lots of patches from SUSE. The 3.0.82 source from kernel.org doesn't have any data-offset changing capabilities at all, and thus does not have this problem. I am well aware that this issue is probably specific to the SUSE SLE11 kernel, and I am positive that 3.10 or 3.11 would work fine. -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).