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