From: Bill Cizek <cizek@rcn.com>
To: linux-raid@vger.kernel.org
Subject: RAID1 Array corruption when adding an extra device with mdadm
Date: Fri, 13 Jan 2006 10:36:23 -0600 [thread overview]
Message-ID: <43C7D707.5040903@rcn.com> (raw)
I've got a system running 2.6.14.6 with a raid1 array of 2 disks.
The size of the array is as follows (from mdadm --detail):
Raid Level : raid1
Array Size : 28314496 (27.00 GiB 28.99 GB)
Device Size : 28314496 (27.00 GiB 28.99 GB)
Raid Devices : 2
Total Devices : 2
I'm trying to add an extra disk to make a three-way mirror using mdadm:
mdadm --grow /dev/md0 -n 3
When I do this, the disk gets added (so there are 3 raid devices) --BUT--
also, the Array Size changes to 3.0 GB. If I immediately reboot, things
end up ok,
but if I let it run it destroys the array contents.
This happened under mdadm v2.1 and 2.2. I hacked mdadm to print out what
it's doing,
and things look ok in Manage_resize() until the mdu_array_info_t
structure is updated using
ioctl (SET_ARRAY_INFO), then the above mentioned size change happens.
Does anyone know what's up with this?
Thanks,
-Bill
reply other threads:[~2006-01-13 16:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=43C7D707.5040903@rcn.com \
--to=cizek@rcn.com \
--cc=linux-raid@vger.kernel.org \
/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.