]> git.ipfire.org Git - thirdparty/mdadm.git/blob - ChangeLog
Teach restripe to calculate Q syndrome for raid6.
[thirdparty/mdadm.git] / ChangeLog
1 Changes Prior to this release
2 - --monitor was producing some meaningless warnings due to a bug.
3 - Fix some compiler warnings.
4 - Fully support --grow for raid6. If a reshape crashed during the
5 critical period, mdadm wouldn't restore the Q information
6 properly.
7
8 Changes Prior to 2.6 release
9 - Fixed UUID printing in "--detail --brief" for version1 metadata.
10 - --update=resync did exactly the wrong thing for version1 metadata.
11 It caused a resync to not happen, rather than to happen.
12 - Allow --assemble --force to mark a raid6 clean when it has two
13 missing devices (which is needed else if won't assemble.
14 Without this fix it would only assemble if one or zero
15 missing devices.
16 - Support --update=devicesize for cases where the underlying device
17 can change size.
18 - Default to --auto=yes so the array devices with 'standard' names
19 get created automatically, as this is almost always what is wanted.
20 - Give useful message if raid4/5/6 cannot be started because it is
21 not clean and is also degraded.
22 - Increase raid456 stripe cache size if needed to --grow the array.
23 The setting used unfortunately requires intimate knowledge of the
24 kernel, and it not reset when the reshape finishes.
25 - Change 'Device Size' to 'Used Dev Size' because it only shows how
26 much of each device is actually used, not how big they are.
27 - --wait or -W will wait for resync activity to finish on the given
28 devices.
29 - Fix some problems with --update=uuid and add a test.
30 - If two drives in a raid5 disappear at the same time, then "-Af"
31 will add them both in rather than just one and forcing the array
32 to 'clean'. This is slightly safer in some cases.
33 - Check device is large enough before hot-add: this improves quality
34 of error message.
35 - Don't hold md device open for so long in --monitor mode - map_dev
36 can be slow and interferes with trying to stop the array.
37 - Support --uuid= with --create to choose your own UUID.
38 - New major more "--incremental" for incremental assemble of arrays,
39 intended for use with udev.
40
41 Changes Prior to 2.5.6 release
42 - Fix bug which meant "bitmap=xxx" in mdadm.conf was not handled
43 properly.
44 - Documentation updates.
45 - Fix bug that caused infinite loop when doing auto-assembly,
46 in certain cases where arrays couldn't be assembled.
47
48 Changes Prior to 2.5.5 release
49 - Don't #include linux/blkpg.h as that isn't safe. Just
50 include the content literally.
51 - Reduce maximum bitmap usage when working with bitmap files,
52 so that a only single-page allocations are made, even on
53 64bit hosts with 4K pages.
54 - Close stray fd in mdassemble so that it can assemble stacked
55 devices
56 - If mdassemble finds an array already assembled, it marks it
57 read-write.
58 - Remove error in md_open if array is already active. This isn't
59 needed and gets in the ways if an array was created e.g. in
60 initramfs, but device doesn't yet exist in /dev.
61 - When --assemble --scan is run, if all arrays that could be found
62 have already been started, don't report an error.
63 - Fix a couple of bugs related to raid10 and the new 'offset' layout.
64 - Improve error message when a wrong '--update' option is given.
65
66 Changes Prior to 2.5.4 release
67 - When creating devices in /dev/md/ create matching symlinks
68 from /dev. e.g. /dev/md0 -> /dev/md/0.
69 Allow this to be disabled in mdadm.conf or on command line.
70 - Fix some endian-ness issues with version-1 superblocks (affects
71 bigendian only).
72 - Fix endian problem with 'bitmap' metadata
73 - Allow a number (of partitions) after the 'yes' option to --auto=
74 This is particularly useful in the 'create' line in mdadm.conf.
75 - Remove partitions from any whole device that is made part of
76 an md array. This is a work-around for annoying messages
77 when the first block on some drive accidentally looks like a
78 partition table.
79
80 Changes Prior to 2.5.3 release
81 - Document v0.91 superblocks in md.4
82 - Make GPL explicit in man pages.
83 - Fix recent breakage of starting degraded arrays.
84 - Tidyup automatic name choice for v-1 arrays:
85 /dev/md_d0 now becomes '0', not '_d0'.
86
87 Changes Prior to 2.5.2 release
88 - Fix problem with compiling with gcc-2 compilers
89 - Fix compile problem of post-incrmenting a variable in a macro arg.
90 - Stop map_dev from returning [0:0], as that breaks things.
91 - Add 'Array Slot' line to --examine for version-1 superblocks
92 to make it a bit easier to see what is happening.
93 - Work around bug in --add handling for version-1 superblocks
94 in 2.6.17 (and prior).
95 - Make -assemble a bit more resilient to finding strange
96 information in superblocks.
97 - Don't claim newly added spares are InSync!! (don't know why that
98 code was ever in there)
99 - Work better when no 'ftw' is available, and check to see
100 if current uclibc provides ftw.
101 - Never use /etc/mdadm.conf if --config file is given (previously
102 some code used one, some used the other).
103
104 Changes Prior to 2.5.1 release
105 - Various fixes for gcc warnings
106 - uclibc warnings
107 - Makefile improvements for static linking/intalling
108 - Makefile uninstall target
109 - Really fix return status of --examine
110 - Typos
111 - Byteorder stuff (again)
112 - Don't try to create devices with --manage or --grow
113 - allow default metadata (superblock) type to be specified
114 in mdadm.conf
115 - Get --stop to list devices stopped but honour --quiet
116 - remove libssl dependency
117 - Avoid some misdetection of overlapping partitions
118 - Fix memory leak in --monitor mode
119
120 Changes Prior to 2.5 release
121 - Support 'mailfrom' line in mdadm.conf so the From: line in alert
122 emails can be explicitly set.
123 - Arrange that SparesMissing (which is similar in import to
124 DegradedArray) generates an Email.
125 - Assume "DEVICE partitions" if no DEVICE line is given.
126 - Support new 'offset' layout for raid10.
127 - When creating a bitmap file, choose a chunksize to limit number
128 of bitmap chunks to 2 million. More than this can cause kmalloc
129 failure.
130 - New 'CREATE' line in mdadm.conf for defaults such as owner, group,
131 mode and auto-flag
132 - --detail checks if array has been started or not and includes that
133 in report.
134 - When using --update=uuid on an array with a bitmap, update the
135 bitmap's uuid too.
136 - Add a copy of /proc/mdstat to the mail message sent by mdadm
137 --monitor.
138 - New flag --no-degraded to avoid starting arrays if there are
139 fewer devices available than last time the array was started.
140 This is only needed with --scan, as with --scan, that behaviour
141 is the default.
142 - Support for 'homehost' concept. This is a fairly major update.
143 It includes a configfile option and a command line option for
144 specifying a homehost, records that host in the superblock,
145 and reports the homehost where possible.
146 - Support for Auto Assembly. "mdadm -As" will, if provided with
147 the name of a homehost, try to assemble all arrays it can find
148 that were created for that homehost. See man pages for more details.
149
150 Changes Prior to 2.4.1 release
151 - Honour --write-mostly when adding to an array without persistent
152 superblocks.
153 - Fix alignment problem in version-1 superblocks.
154 NOTE: This is an incompatable change affecting raid5 reshape.
155 If you want to reshape a raid5 using version-1 superblocks,
156 use 2.6.17-rc2 or later, and mdadm-2.4.1 or later.
157
158 Changes Prior to 2.4 release
159 - Rewrite 'reshape' support including performing a backup
160 of the critical region for a raid5 growth, and restoring that
161 backup after a crash.
162 - Put a 'canary' at each end of the backup so a corruption
163 can be more easily detected.
164 - Remove useless 'ident' arguement from ->getinfo_super method.
165 - Support --backup-file for backing-up critical section during
166 growth.
167 - Erase old superblocks (of different versions) when creating new
168 array.
169 - Allow --monitor to work with arrays with >28 devices
170 - Report reshape information in --detail
171 - Handle symlinks in /dev better
172 - Fix mess in --detail output which a device is missing.
173 - Manpage tidyup
174 - Support 'bitmap=' in mdadm.conf for auto-assembling arrays with
175 write-intent bitmaps in separate files.
176 - Updates to md.4 man page including section on RESTRIPING and SYSFS
177
178 Changes Prior to 2.3.1 release
179 - Fixed -O2 compile so I could make and RPM.
180 - Type cast number to be printed %llu so it compiles on 64bit
181 machines. (Thanks Luca).
182 - Stop using asm/byteorder.h - to make Redhat happy :-(
183 - Require bitmap files to have a '/' in their name.
184 - Error-check a few syscalls - code from SuSE package.
185
186 Changes Prior to 2.3 release
187 - Try /etc/mdadm/mdadm.conf if /etc/mdadm.conf doesn't exist.
188 This provided compatability for Debian.
189 - Fixed for version-1 superblock:
190 report chunksize for raid6 and raid10
191 make sure device size used is a multiple of chunksize
192 - Fix "--assemble --scan" crash.
193 - Fix completely failure to create array on ppc64
194 - Fix memcmp in place of memcpy
195 - A few minor improvements to online help
196 - Clean up usage of 'long long' for used-size of devices, so
197 that it is possible to create a raid1 of 7TB devices!
198 - Make internal bitmaps work on 7TB raid1 arrays.
199 - Provide error message if --examine doesn't find any superblock.
200 - Report 'reshape' status in --examine - this depends on kernel
201 patches that are not yet finalised.
202 - Report bitmap status in --detail and --examine
203 - Default to v1 superblocks instead of v0.90 if the array
204 is too big for 0.90 to handle.
205 - Sort the output of "mdadm --detail --scan" so that it is
206 in a suitable order for assembling arrays. i.e. components come
207 before an array that they are part of.
208 - Print size of large reiserfs array properly went warning of
209 possible confilcts.
210
211 Changes Prior to 2.2 release
212 - Assorted bug fixes
213 - Support write-intent-bitmaps on raid10
214 - Support little-endian (Rather than hostendian) bitmaps.
215 - Return correct error code from 'mdadm -S'
216 - Remove extra blank line from 'mdadm -Eb' output.
217 - Improve option parsing so that -a and -b do not have
218 optional arguements: the arg is either required or not
219 depending on context.
220 - Allow scanning of devices listed in /proc/partitions even
221 if they don't appear in /dev.
222 - Support --assume-clean in --create mode as well as --build
223 - Add support for --monitor to report to syslog: -y or --syslog.
224 Thanks to Ross Vandegrift
225 - --monitor now reports which device failed in a 'Fail' message
226 This broke with 2.6
227 - Improve chance of array starting properly after a crash.
228 mdadm was insisting the event numbers were identical, but this
229 isn't needed, and is a problem if the crash was while the metadata
230 was being updated.
231 - Support --update==uuid
232 - Added README.initramfs and mkinitramfs to help people use an
233 initram for starting md arrays at boot.
234
235 Changes Prior to 2.1 release
236 - Fix assembling of raid10 array when devices are missing.
237 mdadm now correctly detects if a array is workable or not
238 depending on which devices are present, and so will correctly
239 handle "--assemble --force" if multiple devices have failed.
240 - Report raid10 layout in --examine output.
241 - Fix assembling of arrays that use the version-1 superblock and
242 have spares. Previously the spares would be ignored.
243 - Fix bug so that multiple drives can be re-added at once.
244 - Fix problem with hot-adding a bitmap to version-1-superblock
245 arrays.
246
247 Changes Prior to 2.0
248 - Support assembling from byte-swapped superblocks
249 metadata type "0.swap" and --update=byteorder
250 - write-mostly and write-behind support for raid1.
251 - Support --name= and 'name=' config entry for identifying
252 arrays be name.
253 - RAID10 in man pages.
254 - Lot of minor manpage updates
255
256 Changes Prior to 2.0-devel-3 release
257 - Assorted fixes for multiple bugs...
258 - Add test suite
259
260 Changes Prior to 1.12.0 release
261 Several of these are backported from the Debian package
262 - Don't use 'lstat' to check for blockdevices, use stat.
263 - Document --size=max option for --grow
264 - Document SparesMissing event and DeviceDisappeared/WrongLevel
265 - --stop --scan repeatly cycles until no more progress can be made
266 so that stack devices are stopped properly
267 - Minor type rationalisation for ident->uuid - now always 'int[]'
268 - Fix type in online help for --grow (was -F, now -G)
269 - Allow --auto command line option to set default auto=
270 value when running "--assemble --scan". Previously
271 --auto was ignored if --scan was given
272 - Fix a few type casts
273 - Fix parsing of /dev/md/N in is_standard
274 - Fix rounding errors in human_size()
275 - Fix silly example in mdadm.conf-examples
276 - When finding a /dev name for a device, prefer shorter names
277 - Suppress listing of devices= in --brief output of -D or -E,
278 unless -v is given (-vv gives the old behaviour with -Dsv).
279 This is because the device list can change and so is not a
280 stable aspect of the array
281 - Allow --force with --grow so '-Gfn1' works (on raid1)
282 - Replace sprintf calls with snprintf (to quiet diet-libc)
283 - Add man page for mdassemble
284 - Fix compilation with tinyc
285
286 Changes Prior to 1.11.0 release
287 - Fix embarassing bug which causes --add to always fail.
288
289 Changes Prior to 1.10.0 release
290 - Fix bug with --config=partitions
291 - Open sub-devices with O_EXCL to detect if already in use
292 - Make sure superblock updates are flushed directly to disk.
293
294 Changes Prior to 2.0-devel-1 release
295 - Support for version-1 superblock. See --metadata option.
296 - Support for bitmap based intent logging.
297 - Minor fixes.
298
299 Changes Prior to 1.9.0 release
300 - Fix rpm build problem (stray %)
301 - Minor manpage updates
302 - Change "dirty" status to "active" as it was confusing people.
303 - --assemble --auto recognises 'standard' name and insists on using
304 the appropriate major/minor number for them.
305 - Remove underscore from partition names, so partitions of
306 "foo" are "foo1", "foo2" etc (unchanged) and partitions of
307 "f00" are "f00p1", "f00p2" etc rather than "f00_p1"...
308 - Use "major", "minor", "makedev" macros instead of
309 "MAJOR", "MINOR", "MKDEV" so that large device numbers work
310 on 2.6 (providing you have glibc 2.3.3 or later).
311 - Add some missing closes of open file descriptors.
312 - Reread /proc/partition for every array assembled when using
313 it to find devices, rather than only once.
314 - Make "mdadm -Ss" stop stacked devices properly, by reversing the
315 order in which arrays are stopped.
316 - Improve some error messages.
317 - Allow device name to appear before first option, so e.g.
318 mdadm /dev/md0 -A /dev/sd[ab]
319 works.
320 - Assume '-Q' if just a device is given, rather than being silent.
321 - Change "dirty" status to "active" as it was confusing people.
322
323 Changes Prior to 1.8.0 release
324 - Makefile cleanup from Luca Berra <bluca@comedia.it>
325 - --pid-file (-i) to set a pid file to use with --monitor --daemonise
326 - Fix typo in mdadm man page
327 - Fix coredump when "-s" used with no config file present.
328 - Support new "faulty" personality which can inject synthetic
329 faults. (Not in kernel.org yet at 1Nov2004)
330 - Support raid0/linear on devices > 2 Terabytes
331 - Make sure raid6 resyncs when created with one missing device
332
333 Changes Prior to 1.7.0 release
334 - Support "--grow --add" to add a device to a linear array, if the
335 kernel supports it. Not documented yet.
336 - Restore support for uclibc which was broken recently.
337 - Several improvements to the output of --detail, including
338 reporting "resyncing" or "recovering" in the state.
339 - Close filedescriptor at end of --detail (exit would have closed it
340 anyway, so this isn't abig deal).
341 - Report "Sync checkpoint" in --examine output if appropriate.
342 - Add --update=resync for --assemble mode to for a resync when the
343 array is assembled.
344 - Add support for "raid10", which is under development in 2.6.
345 Not documented yet.
346 - --monitor now reads spare-group and spares info from config file
347 even when names of arrays to scan are given on the command line
348
349 Changes Prior to 1.6.0 release
350 - Device name given in -Eb is determined by examining /dev rather
351 than assuming /dev/md%d
352 - Fix bug in --monitor where an array could be held open an so
353 could not be stopped without killing mdadm.
354 - Add --grow mode. Currently only --size and --raid-disks can be
355 changed. Both require kernel support which, at the time of
356 writing, is not in a release kernel yet.
357 - Don't print out "errors" or "no-errors" in -D and -E, as the bit
358 is never set or used.
359 - Use md event notification in 2.6.??? to make --monitor mode
360 respond instantly to events.
361 - Add --auto= option and auto= configfile entry to tell mdadm to
362 create device files as needed. This is particularly useful
363 with partitioned arrays where the major device number can change.
364 - When generating --brief listing, if the standard name doesn't
365 exist, search /dev for one rather than using a temp name.
366 - Allow --build to build raid1 and multipath arrays.
367 - Add "--assume-clean" for Create and Build, particularly for raid1
368 Note: this is dangerous. Only use it if you are certain.
369 - Fix bug so that Rebuild status monitoring works again.
370 - Add "degraded" and "recovering" options to the "Status:"
371 entry for --detail
372
373 Changes Prior to 1.5.0 release
374 - new commands "mdassemble" which is a stripped-down equivalent of
375 "mdadm -As", that can be compiled with dietlibc.
376 Thanks to Luca Berra <bluca@comedia.it>.
377 It can be using in an initramfs or initrd.
378 - Fix compiling error with BLKGETSIZE64 and some signed/unsigned
379 comparison warnings.
380 - Add Rebuild Status (% complete) to --detail output.
381 - Support "--monitor --test" which will generate a test alert
382 for each array once, to test notification paths.
383 - Generate RebuildFinished event when rebuild finishes.
384 - Support for raid6 as found in 2.6.2 - thanks to
385 H. Peter Anvin <hpa@zytor.com>
386 - Support partitioned md arrays with a different major number and
387 naming scheme (md_dX in /proc/mdstat, /dev/md/dXpY in /dev).
388
389 Changes Prior to 1.4.0 release
390 - Document fact that creating a raid5 array really creates a
391 degraded array with a spare.
392 - Add "spares=" tag to config file and generate it wit --detail and
393 --examine
394 - Add "SparesMissing" event when --monitor first sees an array and
395 it doesn't have the enough spare devices.
396 - Add --update=summaries for --assemble to update summary
397 information in superblock, and correct other inconsistancies in
398 the superblock.
399 - Add --test option to --detail to set a meaningful exit status.
400
401 Changes Prior to 1.3.0 release
402 - Make 'size' and unsigned long in Create to allow creation of
403 larger arrays.
404 - Explicitly flag spare devices as 'spare' in --detail and --examine
405 output. Previously they simply had no flags lists.
406 - Make MailCmd (for monitor) configurable in Makefile, and default
407 to "/usr/sbin/sendmail -t". Also split out the warning related
408 flags into CWFLAGS for easier build configurability.
409 - Minor bugfix in Manage code.
410 - --monitor now notices and reports degraded arrays at startup using
411 "DegradedArray" event, and also has a --oneshot option to only
412 report DegradedArrays, and then exit.
413 - Small man-page clarification w.r.t. raid levels and raid4 in
414 particular.
415 - Disallow creation of arrays with only one device as this is
416 probably a mistake. --force will override this check.
417 - Correct some misleading documentation in the "mdadm --create --help"
418 message.
419 - Ignore chunksize if raid1 or multipath.
420 - Explicit statement in man page that raid-disks cannot be changed
421 after array is created.
422 - Improve message when attempting to start an array with
423 insufficient devices. Instead of required the array to be full,
424 we only require it has as many active devices as last time.
425
426 Changes Prior to 1.2.0 release
427 - Fix bug where --daemonise required an argument.
428 - In --assemble --verbose, print appropriate message if device is
429 not in devices= list
430 - Updated mdadm.conf.5 to reflect fact that device= takes wildcards
431 - Typos: componenet -> component
432 - Reduce size of "--help" message put excess into "--help-options"
433 - Fix bug introduced when MD_SB_DISKS dependancy removed, and which
434 caused spares not be assembled properly.
435 - Print appropriate message if --monitor --scan decides not to
436 monitor anything.
437 Changes Prior to 1.1.0 release
438 - add --deamonise flag for --monitor - forks and prints pid to stdout
439 - Fix bug so we REALLY clear dirty flag with -Af
440 - -Db now prints a 'devices=' word for each array.
441 - "mdadm -A /dev/md0" will get info from configfile, even without scan
442 - When assembling multipath arrays, ignore devices which are flagged
443 as having errors.
444 - take --super-minor=dev to mean "use the minor number of the mddev
445 being assembled.
446 - take --config=none to mean "completely ignore config file"
447 - Make --monitor require --scan or a device list.
448 Changes Prior to 1.0.9 release
449 - Documentation updates including kernel parameters documented
450 in md.4
451 - --assemble --force for raid4/5 will mark clean, needed for 2.5
452 - --detail prints out the events counter as well
453 - flush device before reading superblock to be sure to get
454 current data
455 - added mdadm.static target to makefile for static linking
456 - --monitor was ignoring /dev/md0 due to off-by-one error
457 - Fix assorted typos
458 - Fix printing of Gibibytes - calc was wrong.
459 - Fix printing of Array Size in --detail when very big.
460 - --monitor no longer tries to work for raid0 or linear as these
461 have nothing to be monitored.
462 - The word 'partitions' on a DEVICE line will cause all partitions
463 listed in /proc/partitions to be considered
464 - If the config file is called 'partitions' then it will be treated
465 as though it contained exactly 'device partitions' so e.g.
466 mdadm -Ebsc partitions
467 will find all raid partitions easily.
468 - successfully assemble multipath devices by ignoring raid_disk
469 value from superblock (it is always the same).
470 - --assemble not tied to MD_SB_DISKS limit quite so much
471 - Support compiling with tcc
472 - Support compiling with uclibc - just skip scan of /dev
473 - Add --update= option for Assemble mode. Either sparc2.2
474 or super-minor updates are possible. See mdadm.8
475
476 Changes Prior to 1.0.1 release
477 - Round off MB/GiB etc values instead of round down.
478 - Add --sparc2.2 option to examine to shift superblock around
479 and --sparc2.2update to rewrite the superblock
480 - Fix assorted typos in online help
481
482 Changes Prior to 1.0.0 release
483 - Allow --config with Misc mode (for --examine --scan)
484 - Add $(CXFLAGS) to end of CFLAGS in makefile
485 - When making an N disk raid5 array, the Nth drive
486 is moved to the end of the array as a spare rather than
487 being shifted up one place. This means that when the
488 kernel builds onto the last spare and inserts it,
489 the devices will be in the expected order.
490 - Man page improvements
491 Changes Prior to 0.8.2 release
492 - Correct spelling of persist[ae]nce/persist[ae]nt.
493 - Change "disk" to "device" in options and config file
494 - convert array size to "long long" *before* shift-left in -D and -Q
495
496 Changes Prior to 0.8.1 release
497 - Add "INSTALL" file.
498 - Fix some "i" variables that were not being set properly
499 - Initialise minsize and maxsize so that compilers don't complain.
500 - Tidy up Makefile and mdadm.spec installations
501 - Add "multipath" to documentation of valid levels
502
503 Changes Prior to 0.8 release
504 - Fix another bug in Assemble.c due to confusing 'i' with 'j'
505 - Minimal, untested, support for multipath
506 - re-write of argument parsing to have more coherent modes,
507 - add --query,-Q option
508 - Update mdadm.8 to reflect arg processing change and --query
509 - Change "long" to "unsigned long" for device sizes
510 - Handle "mailaddr" and "program" lines in config file for follow/scan mode.
511 - --follow --scan will exit if no program or mail found
512 - Add MAILADDR and PROGRAM to mdadm.conf-example
513 - Spell check man pages
514 - consistently use "component devices" instead of "subdevices"
515 - Make -Wall -Werror really work and fix lots of errors.
516 - --detail and --stop can have --scan which chooses devices from /proc/mdstat
517 - --monitor detects 20% changes in resync, failed spares,
518 disappearing arrays,
519 - --monitor --scan will automatically add any devices found in /proc/mdstat
520 - --monitor will move spares between arrays with same spare-group if necessary
521 - Documentation for Monitor Mode
522 - --query notes if the array containing the given device is active or not
523 - Finished md.4 man page.
524
525 Changes Prior to 0.7.2 release
526 - mdadm.spec updates and ifdef BLKGETSIZE64 from Luca Berra -- bluca@comedia.it
527 - more mdadm.spec updates from Gregory Leblanc <gleblanc@linuxweasel.com>
528 - make directory for mdadm.conf configurable in Makefile
529 - Finished mdadm.conf.5. Removed details of conf file from
530 mdadm.8 leaving a reference to mdadm.conf.5.
531 - Fix bug in Assemble.c, thanks to Junaid Rizvi <domdev@sat.net.pk>
532 - Get --assemble --force to make sure old major/minor numbers are
533 consistant, as md.c worries about this :-(
534
535
536 Changes Prior to 0.7.1 release
537 - update mdadm.spec
538 - use BLKGETSIZE64 if available for array size
539 - give human readable as GiB/MiB and GB and MB, with 2 decimal point precision
540 - Only warn about size variation for raid1/4/5.
541 - Started md.4 man page
542 - Started mdadm.conf.5 man page
543
544 Changes Prior to 0.7 release
545
546 - Fix makefile to install binary at /sbin and not /sbin/sbin
547 Also install man page.
548 - Add --zero-superblock based on --destroywithextremeprejudice
549 from Dale Stephenson <steph@snapserver.com>
550 - change name to mdadm. It is palandromic, and much nicer to pronouce.
551
552 Changes Prior to 0.6 release
553
554 - Remove the limit on the number of device names that can be
555 given on the command line.
556 - Fix bug in --assemble --force where it would only update a
557 single superblock.
558 - Fix bogus printing of big numbers not being block devices
559 when given names of devices that don't exist.
560 - When --assemble --force, consider superblocks with an event
561 count that is 1 behind as out-of-date. Normally they are
562 considered up-to-date (as the kernel assumes this too).
563 - When marking drives as not-failed in the superblock,
564 we also mark them as ACTIVE and SYNC.
565 - Don't start arrays for which not all drives are available unless:
566 --scan which implies that all drives were found automatically
567 --run which means the user knows what they want
568 --force which means that we are fixing something broken
569 - Make sure all device numbers passed as 3rd arg of ioctl
570 are passed as unsigned lock, so that it works on SPARC
571 - If HOT_ADD_DISK failes for -a, then only try ADD_NEW_DISK
572 if we cannot read from the array, i.e. if the array is
573 not started yet.
574 - man page update
575 - Taught Examine to handle --scan. It examines all devices listed
576 on DEVICE lines in the config file.
577 - Added --brief (-b) flag for Examine and Detail to print out
578 and mdctl.conf compatible description with uuid=, level=,
579 disks= and - for Examine - devices=
580 --examine --brief collects all devices the make the one array and
581 list them as one entry.
582 - Added level= and disks= options to ARRAY lines in config files
583 so --brief output could be used as-is.
584 - Make parity style ({left,right}-{,a}symmetric) consistantly use -,
585 never _.
586 - Add "Array Size" to --detail output
587 - Change "Size" to "Device Size" and exclude from Detail of arrays
588 that do not have a consistent device size.
589 - Add Human readable MiB or GiB value on size lines of Detail and Examine
590 - --assemble --scan doesn't complain about active drives
591 - require number of spares given in -x to be listed.
592 - Made --build actually work.
593 Changes Prior to 0.5 release
594
595 --assemble:
596 spare drives are handled properly.
597
598 --force can be used to recover from 2-drive failures on RAID5
599 If you belive that /dev/hda1 /dev/hdb1 /dev/hdc1 /dev/hdd1 should
600 make a raid5 array, but it has experienced multiple failures and
601 wont start, then
602
603 mdctl --assemble --force /dev/md0 /dev/hd[abcd]1
604
605 Should update the superblock on the newest failed drive and
606 restart the array in degraded mode. You should then remove the
607 remaining failed drive and re-add it (if you are happy that it
608 might work).
609
610 Ofcourse whenever you have a 2-drive failure, you have a risk
611 of corruption in data that hasn't be changed for a long time. So
612 this doesn't give you your array back all nice and happy, but it
613 does allow you to recover data that might not be corrupt.
614
615 More flexibility in identifying a RAID array in the mdctl.conf
616 e.g.
617 array /dev/md4 super-minor=4
618
619 assembles /dev/md4 from all devices found that have a raid
620 superblock that says the minor number of the array is 4.
621 If the blocks with the right minor number do not all have the
622 same UUID, an error is flags and no assembly happens.
623
624 array /dev/md3 devices=/dev/hd[abc]2
625
626 Assembles /dev/md3 drom /dev/hda2 /dev/hdb2 and/dev/hdc2. All
627 devices must exist and have raid superblock with the same uuid.
628
629 If two identity specifiers are used, only devices that match all
630 of them are considered, so
631
632 array /dev/md2 devices=/dev/hd?2 super-minor=2
633
634 will assemble /dev/md2 using all /dev/hd?2 devices which have a
635 raid superblock with minor number 2.
636
637 --create:
638 When listing devices for --create, the word "missing" can be
639 used to indicate that the respective slot does not have a
640 working drive currently. This is similar to the "failed-disk"
641 directive in mkraid/raidtab.
642 e.g.
643 mdctl --create --level=5 -raid-disks=4 --spare-disks=2
644 /dev/md0 /dev/sda /dev/sdb missing /dev/sdc /dev/sdd /dev/sde
645
646 will create a raid5 array with the third slot empty, and two
647 spares.
648
649 By default, raid5 arrays are created with the last slot empty
650 and drive listed for the last slot added as a spare. If a
651 "missing" slot is given, or if --force is given, then --create
652 does exactly what you ask and doesn't try to be clever.
653
654
655 --follow / --monitor:
656
657 This is a new mode. I couldn't stop my self from picking a name
658 starting with F (as current modes start A,B,C,D,E) but I
659 relented and provided an alternate name that is somewhat more
660 meaningful.
661
662 In this mode, mdctl does not exit, but runs continuously and
663 periodically polls all the md devices to see if they have had
664 any interested state change.
665 The changes that it currently notices are:
666 Fail - an active disc fails
667 FailSpare - a spare, that was presumably being build, fails
668 ActiveSpare - a spare becomes active, presumably after a rebuild.
669
670 Options:
671 --mail mailaddress - send Email on any Fail* event
672 --program program - run the program on any event.
673 Args are: eventname mddevice subdevice(if-known)
674 --delay seconds - change from the default 60second pause
675 between polls.
676
677 I plan to add functionality to this mode to allow sharing of
678 spare drives. If an array is marks "spare-group=fred", and it
679 has a failed drive and no spares, and if some other array is
680 also "spare-group=fred" and it has no failed drives, but does
681 have a spare drive that is big enough, the spare will be moved
682 to the first array.
683
684 I also have the idea of adding a --grow mode which will re-organise
685 the data on an N disk raid0/4/5 array to be on an N+M disk array.
686 I have no concrete plans for this though.
687
688 I got rid of the "v" in the archive file name, and include the
689 version number in the directory created by the archive.
690
691 There is now a man page and mdctl.spec (for rpm) thanks to
692 Danilo Godec <danci@agenda.si>.
693
694 Ofcourse, the man page is now out of date and despite being based on
695 the --help output, is not wholy correct. After I get --follow
696 working properly, I plan to revise the various documentation and/or
697 the code to make sure the two match.