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