From: Bill Cizek <cizek@rcn.com>
To: linux-raid <linux-raid@vger.kernel.org>, Neil Brown <neilb@suse.de>
Subject: Re: Followup: Adding a device to an active RAID1 array
Date: Thu, 19 Jan 2006 19:30:22 -0600 [thread overview]
Message-ID: <43D03D2E.3000504@rcn.com> (raw)
Neil Brown wrote:
>On Wednesday January 18, cizek@rcn.com wrote:
>
>>Hi,
>>
>>Are there any known issues with changing the number of active devices in
>>a RAID1 array?
>
>
>There is now, thanks.
>
>>I'm trying to add a third mirror to an existing RAID1 array of two disks.
>>
>>I have /dev/md5 as a mirrored pair of two 40 GB disks. Directly on top
>>of it is a 40 GB XFS filesystem.
>>
>>When I do "mdadm --grow /dev/md5 -n 3" the count of devices changes from
>>2 to 3, as expected.
>>If the XFS filesystem is mounted, the array size changes to 3.0 GB.
>>If it is not mounted everything works fine.
>>
>>Is this supposed to work, is it required that the array be inactive to
>>add a disk, or am I just doing
>>something stupid?
>
>
>It is supposed to work, it doesn't, but it is the code doing something
>stupid, not you.
>Try the patch below.
>
[snip]
The patch you gave me worked, Neil, but the I ran into an odd problem where
the change is lost after a reboot.
I have raid1 devices for both superblocks 0.90.? and 1.0
If I update the superblock 1.0 device, mdadm --detail shows the update,
but if I reboot it is lost.
As well, evms complains about a mismatch between the kernel and disk
(this is how I first noticed it).
Superblock 0.90 works fine.
i.e. Starting with /dev/md4, superblock 1.0 with 2 devices:
mdadm --detail /dev/md4 shows
Raid Devices : 2
Active Devices : 2
I do "mdadm --grow /dev/md4 -n3"
mdadm --detail /dev/md4 shows
Raid Devices : 3
Active Devices : 2
I reboot....
mdadm --detail /dev/md4 shows
Raid Devices : 2
Active Devices : 2
Hope this makes sense.
Thanks,
-Bill
next reply other threads:[~2006-01-20 1:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-20 1:30 Bill Cizek [this message]
2006-01-24 4:01 ` Followup: Adding a device to an active RAID1 array Neil Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43D03D2E.3000504@rcn.com \
--to=cizek@rcn.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.