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