Doug Ledford
66f8bbbe90
Enhance raid4 support: --assemble and --monitor wasn't quite happy with it.
...
From: Doug Ledford <dledford@redhat.com>
This one actually does a couple things. Mainly related to raid4, but
kinda touches other raid levels some.
When creating a raid4 array, treat it like a raid5 array in that we
create it in degraded mode by default and add the last disk as a spare.
Besides speeding things up, this has a second effect that it makes mdadm
more consistent. In order to create a degraded raid5 array, you need
only passing missing as one of the devices. For a degraded raid4 array,
prior to this patch, you must pass assume-clean or else it refuses to
create the array. Even force won't make it work without assume-clean.
With the patch, raid4 behaves identical to raid5.
Separate from that, the monitor functionality completely ignores raid4
arrays. That seems to stem from the code that checks to see if the
array is part of a long list of types. It seems easier to check which
array types *aren't* redundant instead of listing the ones that are
redundant and missing some of them. This makes the monitor service
actually watch raid4 arrays.
2007-07-09 10:00:02 +10:00
Neil Brown
1f48664b8e
Add --auto-detect for in-kernel autodetect.
...
This is equivalent to raidautorun that some distros provide.
2007-05-21 14:25:44 +10:00
Neil Brown
69646c1483
Update tests and add linear-add
...
Update the testing scripts to allow for new space calculations
for space for bitmaps.
Add a test script for adding devices to linear arrays.
2007-05-21 14:25:40 +10:00
Neil Brown
68754bd17c
Fix handling of negative bitmap offsets on 64bit hosts.
...
The bitmap offset is a signed 32bit number, so casting to (long)
isn't sufficient. We must cast to (int32_t).
2007-05-21 14:25:30 +10:00
Neil Brown
bf4fb153a4
Fix and test --update=uuid
...
A number of odd bugs here, but now we have a regression test as well.
2006-12-14 17:31:29 +11:00
Neil Brown
67a8c82d60
Make Assemble/Force work on raid6 with 2 missing devices.
...
Previously it onl worked when one missing device.
Also split the "force" update_super method into two and it
is really serving two functions.
2006-12-14 17:30:51 +11:00
Neil Brown
81074c9f7b
Update test scripts for new blockdev
...
--getsize64 seems to have disappeared.
2006-10-23 14:56:22 +10:00
Neil Brown
02761a7c44
Fix up some internalbitmap tests
2006-06-16 10:21:11 +10:00
Neil Brown
41a3b72a9c
Release 2.5
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 07:12:48 +00:00
Neil Brown
86d0e1ab93
Add tests/05r1-grow-internal-1
2006-04-01 09:28:36 +00:00
Neil Brown
4d272c99d2
Add tests/05r1-grow-internal-1
2006-03-29 05:21:16 +00:00
Neil Brown
9860f2711d
Bug fixes to pass test suite
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-29 06:28:07 +00:00
Neil Brown
e86c9dd6d8
Initial reshape support
...
Needs work for other levels etc.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-13 05:51:32 +00:00
Neil Brown
561832f9d4
Some little bits and pieces...
...
I'm obviously bored of writing changelog entries.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-02-02 03:19:57 +00:00
Neil Brown
c929c82e7f
Add tests/05r1-grow-internal-1
2005-09-12 05:53:25 +00:00
Neil Brown
0ba1565f10
Refine some tests.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2005-09-12 06:47:33 +00:00
Neil Brown
6d3d580468
Fix byteordr covnerion ofr 'events' that was '32' instead of '64'
...
Signed-off-by: Neil Brown <neilb@suse.de>
2005-09-12 05:54:52 +00:00
Neil Brown
f6d75de8e0
Fix remaining problems with hot-add bitmap to version-1 superblock
...
Also some more tests - r5 and r6 bitmaps
Signed-off-by: Neil Brown <neilb@suse.de>
2005-09-12 05:24:10 +00:00
Neil Brown
308e1801ba
Fix assembling of array with spares when verion-1 superblock is used.
...
As spared don't have a position in the raid array with verion-1 superblocks,
we need to handle them a bit differently.
Signed-off-by: Neil Brown <neilb@suse.de>
2005-09-12 05:23:11 +00:00
Neil Brown
04deddb9fc
Add tests/05r1-internalbitmap-v1c
2005-08-25 07:17:44 +00:00
Neil Brown
6726d39d1f
Add tests/05r1-internalbitmap-v1b
2005-08-25 07:15:52 +00:00
Neil Brown
3ddc317ee9
Add tests/05r1-internalbitmap-v1a
2005-08-26 04:08:16 +00:00
Neil Brown
1bf4e2d962
Passes all tests, nearly ready for release.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-26 06:08:28 +00:00
Neil Brown
8431b2b286
Getting ready for 2.0 release...
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-26 02:26:37 +00:00
Neil Brown
34163fc7cf
Support internal bitmaps with format-1 superblocks.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-25 04:31:44 +00:00
Neil Brown
eb3b43aa2a
Check-in swap_super.c
...
and update a test that uses it.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-18 06:02:33 +00:00
Neil Brown
c13c45e913
Add test for multipath and make it work.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-16 07:00:22 +00:00
Neil Brown
fe80f49b6e
Assorted fixes
...
Support "--build"ing arrays with bitmaps.
hot-removal of bitmaps
--re-add of drives recently removed.
assorted extra tests
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-16 06:45:23 +00:00
Neil Brown
6a41304b05
Fix but when assembling v1 arrays
...
Because raid_disk and disk.number are not longer in-sync,
it needed some work.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-15 06:35:38 +00:00
Neil Brown
dab6685f3d
Add 'quite' option and tidy up some tests.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-15 06:14:27 +00:00
Neil Brown
7358e19667
Add a test.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-15 04:44:04 +00:00
Neil Brown
947fd4ddb5
Support nameing of version-1 arrays.
...
--name is recognised in --create and --assemble
name= is recognised in config file.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 05:23:20 +00:00
Neil Brown
dfd4d8ee42
Add write-behind support
...
Currently this includes
--write-behind to set level of write-behind supported
--write-mostly to flag devices as write-mostly.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 04:25:47 +00:00
Neil Brown
586ed40547
Support fixing of byte-swapped superblocks.
...
Good for moving between little-endian and big-endian.
Still needs documentation.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 04:25:27 +00:00
Neil Brown
5e7519fa84
Add test suite and release
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-04 04:56:22 +00:00