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