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