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