]> git.ipfire.org Git - thirdparty/mdadm.git/blob - ChangeLog
Release some compile fixes.
[thirdparty/mdadm.git] / ChangeLog
1 Changes Prior to 2.3.1 release
2 - Fixed -O2 compile so I could make and RPM.
3 - Type cast number to be printed %llu so it compiles on 64bit
4 machines. (Thanks Luca).
5 - Stop using asm/byteorder.h - to make Redhat happy :-(
6 - Require bitmap files to have a '/' in their name.
7 - Error-check a few syscalls - code from SuSE package.
8
9 Changes Prior to 2.3 release
10 - Try /etc/mdadm/mdadm.conf if /etc/mdadm.conf doesn't exist.
11 This provided compatability for Debian.
12 - Fixed for version-1 superblock:
13 report chunksize for raid6 and raid10
14 make sure device size used is a multiple of chunksize
15 - Fix "--assemble --scan" crash.
16 - Fix completely failure to create array on ppc64
17 - Fix memcmp in place of memcpy
18 - A few minor improvements to online help
19 - Clean up usage of 'long long' for used-size of devices, so
20 that it is possible to create a raid1 of 7TB devices!
21 - Make internal bitmaps work on 7TB raid1 arrays.
22 - Provide error message if --examine doesn't find any superblock.
23 - Report 'reshape' status in --examine - this depends on kernel
24 patches that are not yet finalised.
25 - Report bitmap status in --detail and --examine
26 - Default to v1 superblocks instead of v0.90 if the array
27 is too big for 0.90 to handle.
28 - Sort the output of "mdadm --detail --scan" so that it is
29 in a suitable order for assembling arrays. i.e. components come
30 before an array that they are part of.
31 - Print size of large reiserfs array properly went warning of
32 possible confilcts.
33
34 Changes Prior to 2.2 release
35 - Assorted bug fixes
36 - Support write-intent-bitmaps on raid10
37 - Support little-endian (Rather than hostendian) bitmaps.
38 - Return correct error code from 'mdadm -S'
39 - Remove extra blank line from 'mdadm -Eb' output.
40 - Improve option parsing so that -a and -b do not have
41 optional arguements: the arg is either required or not
42 depending on context.
43 - Allow scanning of devices listed in /proc/partitions even
44 if they don't appear in /dev.
45 - Support --assume-clean in --create mode as well as --build
46 - Add support for --monitor to report to syslog: -y or --syslog.
47 Thanks to Ross Vandegrift
48 - --monitor now reports which device failed in a 'Fail' message
49 This broke with 2.6
50 - Improve chance of array starting properly after a crash.
51 mdadm was insisting the event numbers were identical, but this
52 isn't needed, and is a problem if the crash was while the metadata
53 was being updated.
54 - Support --update==uuid
55 - Added README.initramfs and mkinitramfs to help people use an
56 initram for starting md arrays at boot.
57
58 Changes Prior to 2.1 release
59 - Fix assembling of raid10 array when devices are missing.
60 mdadm now correctly detects if a array is workable or not
61 depending on which devices are present, and so will correctly
62 handle "--assemble --force" if multiple devices have failed.
63 - Report raid10 layout in --examine output.
64 - Fix assembling of arrays that use the version-1 superblock and
65 have spares. Previously the spares would be ignored.
66 - Fix bug so that multiple drives can be re-added at once.
67 - Fix problem with hot-adding a bitmap to version-1-superblock
68 arrays.
69
70 Changes Prior to 2.0
71 - Support assembling from byte-swapped superblocks
72 metadata type "0.swap" and --update=byteorder
73 - write-mostly and write-behind support for raid1.
74 - Support --name= and 'name=' config entry for identifying
75 arrays be name.
76 - RAID10 in man pages.
77 - Lot of minor manpage updates
78
79 Changes Prior to 2.0-devel-3 release
80 - Assorted fixes for multiple bugs...
81 - Add test suite
82
83 Changes Prior to 1.12.0 release
84 Several of these are backported from the Debian package
85 - Don't use 'lstat' to check for blockdevices, use stat.
86 - Document --size=max option for --grow
87 - Document SparesMissing event and DeviceDisappeared/WrongLevel
88 - --stop --scan repeatly cycles until no more progress can be made
89 so that stack devices are stopped properly
90 - Minor type rationalisation for ident->uuid - now always 'int[]'
91 - Fix type in online help for --grow (was -F, now -G)
92 - Allow --auto command line option to set default auto=
93 value when running "--assemble --scan". Previously
94 --auto was ignored if --scan was given
95 - Fix a few type casts
96 - Fix parsing of /dev/md/N in is_standard
97 - Fix rounding errors in human_size()
98 - Fix silly example in mdadm.conf-examples
99 - When finding a /dev name for a device, prefer shorter names
100 - Suppress listing of devices= in --brief output of -D or -E,
101 unless -v is given (-vv gives the old behaviour with -Dsv).
102 This is because the device list can change and so is not a
103 stable aspect of the array
104 - Allow --force with --grow so '-Gfn1' works (on raid1)
105 - Replace sprintf calls with snprintf (to quiet diet-libc)
106 - Add man page for mdassemble
107 - Fix compilation with tinyc
108
109 Changes Prior to 1.11.0 release
110 - Fix embarassing bug which causes --add to always fail.
111
112 Changes Prior to 1.10.0 release
113 - Fix bug with --config=partitions
114 - Open sub-devices with O_EXCL to detect if already in use
115 - Make sure superblock updates are flushed directly to disk.
116
117 Changes Prior to 2.0-devel-1 release
118 - Support for version-1 superblock. See --metadata option.
119 - Support for bitmap based intent logging.
120 - Minor fixes.
121
122 Changes Prior to 1.9.0 release
123 - Fix rpm build problem (stray %)
124 - Minor manpage updates
125 - Change "dirty" status to "active" as it was confusing people.
126 - --assemble --auto recognises 'standard' name and insists on using
127 the appropriate major/minor number for them.
128 - Remove underscore from partition names, so partitions of
129 "foo" are "foo1", "foo2" etc (unchanged) and partitions of
130 "f00" are "f00p1", "f00p2" etc rather than "f00_p1"...
131 - Use "major", "minor", "makedev" macros instead of
132 "MAJOR", "MINOR", "MKDEV" so that large device numbers work
133 on 2.6 (providing you have glibc 2.3.3 or later).
134 - Add some missing closes of open file descriptors.
135 - Reread /proc/partition for every array assembled when using
136 it to find devices, rather than only once.
137 - Make "mdadm -Ss" stop stacked devices properly, by reversing the
138 order in which arrays are stopped.
139 - Improve some error messages.
140 - Allow device name to appear before first option, so e.g.
141 mdadm /dev/md0 -A /dev/sd[ab]
142 works.
143 - Assume '-Q' if just a device is given, rather than being silent.
144 - Change "dirty" status to "active" as it was confusing people.
145
146 Changes Prior to 1.8.0 release
147 - Makefile cleanup from Luca Berra <bluca@comedia.it>
148 - --pid-file (-i) to set a pid file to use with --monitor --daemonise
149 - Fix typo in mdadm man page
150 - Fix coredump when "-s" used with no config file present.
151 - Support new "faulty" personality which can inject synthetic
152 faults. (Not in kernel.org yet at 1Nov2004)
153 - Support raid0/linear on devices > 2 Terabytes
154 - Make sure raid6 resyncs when created with one missing device
155
156 Changes Prior to 1.7.0 release
157 - Support "--grow --add" to add a device to a linear array, if the
158 kernel supports it. Not documented yet.
159 - Restore support for uclibc which was broken recently.
160 - Several improvements to the output of --detail, including
161 reporting "resyncing" or "recovering" in the state.
162 - Close filedescriptor at end of --detail (exit would have closed it
163 anyway, so this isn't abig deal).
164 - Report "Sync checkpoint" in --examine output if appropriate.
165 - Add --update=resync for --assemble mode to for a resync when the
166 array is assembled.
167 - Add support for "raid10", which is under development in 2.6.
168 Not documented yet.
169 - --monitor now reads spare-group and spares info from config file
170 even when names of arrays to scan are given on the command line
171
172 Changes Prior to 1.6.0 release
173 - Device name given in -Eb is determined by examining /dev rather
174 than assuming /dev/md%d
175 - Fix bug in --monitor where an array could be held open an so
176 could not be stopped without killing mdadm.
177 - Add --grow mode. Currently only --size and --raid-disks can be
178 changed. Both require kernel support which, at the time of
179 writing, is not in a release kernel yet.
180 - Don't print out "errors" or "no-errors" in -D and -E, as the bit
181 is never set or used.
182 - Use md event notification in 2.6.??? to make --monitor mode
183 respond instantly to events.
184 - Add --auto= option and auto= configfile entry to tell mdadm to
185 create device files as needed. This is particularly useful
186 with partitioned arrays where the major device number can change.
187 - When generating --brief listing, if the standard name doesn't
188 exist, search /dev for one rather than using a temp name.
189 - Allow --build to build raid1 and multipath arrays.
190 - Add "--assume-clean" for Create and Build, particularly for raid1
191 Note: this is dangerous. Only use it if you are certain.
192 - Fix bug so that Rebuild status monitoring works again.
193 - Add "degraded" and "recovering" options to the "Status:"
194 entry for --detail
195
196 Changes Prior to 1.5.0 release
197 - new commands "mdassemble" which is a stripped-down equivalent of
198 "mdadm -As", that can be compiled with dietlibc.
199 Thanks to Luca Berra <bluca@comedia.it>.
200 It can be using in an initramfs or initrd.
201 - Fix compiling error with BLKGETSIZE64 and some signed/unsigned
202 comparison warnings.
203 - Add Rebuild Status (% complete) to --detail output.
204 - Support "--monitor --test" which will generate a test alert
205 for each array once, to test notification paths.
206 - Generate RebuildFinished event when rebuild finishes.
207 - Support for raid6 as found in 2.6.2 - thanks to
208 H. Peter Anvin <hpa@zytor.com>
209 - Support partitioned md arrays with a different major number and
210 naming scheme (md_dX in /proc/mdstat, /dev/md/dXpY in /dev).
211
212 Changes Prior to 1.4.0 release
213 - Document fact that creating a raid5 array really creates a
214 degraded array with a spare.
215 - Add "spares=" tag to config file and generate it wit --detail and
216 --examine
217 - Add "SparesMissing" event when --monitor first sees an array and
218 it doesn't have the enough spare devices.
219 - Add --update=summaries for --assemble to update summary
220 information in superblock, and correct other inconsistancies in
221 the superblock.
222 - Add --test option to --detail to set a meaningful exit status.
223
224 Changes Prior to 1.3.0 release
225 - Make 'size' and unsigned long in Create to allow creation of
226 larger arrays.
227 - Explicitly flag spare devices as 'spare' in --detail and --examine
228 output. Previously they simply had no flags lists.
229 - Make MailCmd (for monitor) configurable in Makefile, and default
230 to "/usr/sbin/sendmail -t". Also split out the warning related
231 flags into CWFLAGS for easier build configurability.
232 - Minor bugfix in Manage code.
233 - --monitor now notices and reports degraded arrays at startup using
234 "DegradedArray" event, and also has a --oneshot option to only
235 report DegradedArrays, and then exit.
236 - Small man-page clarification w.r.t. raid levels and raid4 in
237 particular.
238 - Disallow creation of arrays with only one device as this is
239 probably a mistake. --force will override this check.
240 - Correct some misleading documentation in the "mdadm --create --help"
241 message.
242 - Ignore chunksize if raid1 or multipath.
243 - Explicit statement in man page that raid-disks cannot be changed
244 after array is created.
245 - Improve message when attempting to start an array with
246 insufficient devices. Instead of required the array to be full,
247 we only require it has as many active devices as last time.
248
249 Changes Prior to 1.2.0 release
250 - Fix bug where --daemonise required an argument.
251 - In --assemble --verbose, print appropriate message if device is
252 not in devices= list
253 - Updated mdadm.conf.5 to reflect fact that device= takes wildcards
254 - Typos: componenet -> component
255 - Reduce size of "--help" message put excess into "--help-options"
256 - Fix bug introduced when MD_SB_DISKS dependancy removed, and which
257 caused spares not be assembled properly.
258 - Print appropriate message if --monitor --scan decides not to
259 monitor anything.
260 Changes Prior to 1.1.0 release
261 - add --deamonise flag for --monitor - forks and prints pid to stdout
262 - Fix bug so we REALLY clear dirty flag with -Af
263 - -Db now prints a 'devices=' word for each array.
264 - "mdadm -A /dev/md0" will get info from configfile, even without scan
265 - When assembling multipath arrays, ignore devices which are flagged
266 as having errors.
267 - take --super-minor=dev to mean "use the minor number of the mddev
268 being assembled.
269 - take --config=none to mean "completely ignore config file"
270 - Make --monitor require --scan or a device list.
271 Changes Prior to 1.0.9 release
272 - Documentation updates including kernel parameters documented
273 in md.4
274 - --assemble --force for raid4/5 will mark clean, needed for 2.5
275 - --detail prints out the events counter as well
276 - flush device before reading superblock to be sure to get
277 current data
278 - added mdadm.static target to makefile for static linking
279 - --monitor was ignoring /dev/md0 due to off-by-one error
280 - Fix assorted typos
281 - Fix printing of Gibibytes - calc was wrong.
282 - Fix printing of Array Size in --detail when very big.
283 - --monitor no longer tries to work for raid0 or linear as these
284 have nothing to be monitored.
285 - The word 'partitions' on a DEVICE line will cause all partitions
286 listed in /proc/partitions to be considered
287 - If the config file is called 'partitions' then it will be treated
288 as though it contained exactly 'device partitions' so e.g.
289 mdadm -Ebsc partitions
290 will find all raid partitions easily.
291 - successfully assemble multipath devices by ignoring raid_disk
292 value from superblock (it is always the same).
293 - --assemble not tied to MD_SB_DISKS limit quite so much
294 - Support compiling with tcc
295 - Support compiling with uclibc - just skip scan of /dev
296 - Add --update= option for Assemble mode. Either sparc2.2
297 or super-minor updates are possible. See mdadm.8
298
299 Changes Prior to 1.0.1 release
300 - Round off MB/GiB etc values instead of round down.
301 - Add --sparc2.2 option to examine to shift superblock around
302 and --sparc2.2update to rewrite the superblock
303 - Fix assorted typos in online help
304
305 Changes Prior to 1.0.0 release
306 - Allow --config with Misc mode (for --examine --scan)
307 - Add $(CXFLAGS) to end of CFLAGS in makefile
308 - When making an N disk raid5 array, the Nth drive
309 is moved to the end of the array as a spare rather than
310 being shifted up one place. This means that when the
311 kernel builds onto the last spare and inserts it,
312 the devices will be in the expected order.
313 - Man page improvements
314 Changes Prior to 0.8.2 release
315 - Correct spelling of persist[ae]nce/persist[ae]nt.
316 - Change "disk" to "device" in options and config file
317 - convert array size to "long long" *before* shift-left in -D and -Q
318
319 Changes Prior to 0.8.1 release
320 - Add "INSTALL" file.
321 - Fix some "i" variables that were not being set properly
322 - Initialise minsize and maxsize so that compilers don't complain.
323 - Tidy up Makefile and mdadm.spec installations
324 - Add "multipath" to documentation of valid levels
325
326 Changes Prior to 0.8 release
327 - Fix another bug in Assemble.c due to confusing 'i' with 'j'
328 - Minimal, untested, support for multipath
329 - re-write of argument parsing to have more coherent modes,
330 - add --query,-Q option
331 - Update mdadm.8 to reflect arg processing change and --query
332 - Change "long" to "unsigned long" for device sizes
333 - Handle "mailaddr" and "program" lines in config file for follow/scan mode.
334 - --follow --scan will exit if no program or mail found
335 - Add MAILADDR and PROGRAM to mdadm.conf-example
336 - Spell check man pages
337 - consistently use "component devices" instead of "subdevices"
338 - Make -Wall -Werror really work and fix lots of errors.
339 - --detail and --stop can have --scan which chooses devices from /proc/mdstat
340 - --monitor detects 20% changes in resync, failed spares,
341 disappearing arrays,
342 - --monitor --scan will automatically add any devices found in /proc/mdstat
343 - --monitor will move spares between arrays with same spare-group if necessary
344 - Documentation for Monitor Mode
345 - --query notes if the array containing the given device is active or not
346 - Finished md.4 man page.
347
348 Changes Prior to 0.7.2 release
349 - mdadm.spec updates and ifdef BLKGETSIZE64 from Luca Berra -- bluca@comedia.it
350 - more mdadm.spec updates from Gregory Leblanc <gleblanc@linuxweasel.com>
351 - make directory for mdadm.conf configurable in Makefile
352 - Finished mdadm.conf.5. Removed details of conf file from
353 mdadm.8 leaving a reference to mdadm.conf.5.
354 - Fix bug in Assemble.c, thanks to Junaid Rizvi <domdev@sat.net.pk>
355 - Get --assemble --force to make sure old major/minor numbers are
356 consistant, as md.c worries about this :-(
357
358
359 Changes Prior to 0.7.1 release
360 - update mdadm.spec
361 - use BLKGETSIZE64 if available for array size
362 - give human readable as GiB/MiB and GB and MB, with 2 decimal point precision
363 - Only warn about size variation for raid1/4/5.
364 - Started md.4 man page
365 - Started mdadm.conf.5 man page
366
367 Changes Prior to 0.7 release
368
369 - Fix makefile to install binary at /sbin and not /sbin/sbin
370 Also install man page.
371 - Add --zero-superblock based on --destroywithextremeprejudice
372 from Dale Stephenson <steph@snapserver.com>
373 - change name to mdadm. It is palandromic, and much nicer to pronouce.
374
375 Changes Prior to 0.6 release
376
377 - Remove the limit on the number of device names that can be
378 given on the command line.
379 - Fix bug in --assemble --force where it would only update a
380 single superblock.
381 - Fix bogus printing of big numbers not being block devices
382 when given names of devices that don't exist.
383 - When --assemble --force, consider superblocks with an event
384 count that is 1 behind as out-of-date. Normally they are
385 considered up-to-date (as the kernel assumes this too).
386 - When marking drives as not-failed in the superblock,
387 we also mark them as ACTIVE and SYNC.
388 - Don't start arrays for which not all drives are available unless:
389 --scan which implies that all drives were found automatically
390 --run which means the user knows what they want
391 --force which means that we are fixing something broken
392 - Make sure all device numbers passed as 3rd arg of ioctl
393 are passed as unsigned lock, so that it works on SPARC
394 - If HOT_ADD_DISK failes for -a, then only try ADD_NEW_DISK
395 if we cannot read from the array, i.e. if the array is
396 not started yet.
397 - man page update
398 - Taught Examine to handle --scan. It examines all devices listed
399 on DEVICE lines in the config file.
400 - Added --brief (-b) flag for Examine and Detail to print out
401 and mdctl.conf compatible description with uuid=, level=,
402 disks= and - for Examine - devices=
403 --examine --brief collects all devices the make the one array and
404 list them as one entry.
405 - Added level= and disks= options to ARRAY lines in config files
406 so --brief output could be used as-is.
407 - Make parity style ({left,right}-{,a}symmetric) consistantly use -,
408 never _.
409 - Add "Array Size" to --detail output
410 - Change "Size" to "Device Size" and exclude from Detail of arrays
411 that do not have a consistent device size.
412 - Add Human readable MiB or GiB value on size lines of Detail and Examine
413 - --assemble --scan doesn't complain about active drives
414 - require number of spares given in -x to be listed.
415 - Made --build actually work.
416 Changes Prior to 0.5 release
417
418 --assemble:
419 spare drives are handled properly.
420
421 --force can be used to recover from 2-drive failures on RAID5
422 If you belive that /dev/hda1 /dev/hdb1 /dev/hdc1 /dev/hdd1 should
423 make a raid5 array, but it has experienced multiple failures and
424 wont start, then
425
426 mdctl --assemble --force /dev/md0 /dev/hd[abcd]1
427
428 Should update the superblock on the newest failed drive and
429 restart the array in degraded mode. You should then remove the
430 remaining failed drive and re-add it (if you are happy that it
431 might work).
432
433 Ofcourse whenever you have a 2-drive failure, you have a risk
434 of corruption in data that hasn't be changed for a long time. So
435 this doesn't give you your array back all nice and happy, but it
436 does allow you to recover data that might not be corrupt.
437
438 More flexibility in identifying a RAID array in the mdctl.conf
439 e.g.
440 array /dev/md4 super-minor=4
441
442 assembles /dev/md4 from all devices found that have a raid
443 superblock that says the minor number of the array is 4.
444 If the blocks with the right minor number do not all have the
445 same UUID, an error is flags and no assembly happens.
446
447 array /dev/md3 devices=/dev/hd[abc]2
448
449 Assembles /dev/md3 drom /dev/hda2 /dev/hdb2 and/dev/hdc2. All
450 devices must exist and have raid superblock with the same uuid.
451
452 If two identity specifiers are used, only devices that match all
453 of them are considered, so
454
455 array /dev/md2 devices=/dev/hd?2 super-minor=2
456
457 will assemble /dev/md2 using all /dev/hd?2 devices which have a
458 raid superblock with minor number 2.
459
460 --create:
461 When listing devices for --create, the word "missing" can be
462 used to indicate that the respective slot does not have a
463 working drive currently. This is similar to the "failed-disk"
464 directive in mkraid/raidtab.
465 e.g.
466 mdctl --create --level=5 -raid-disks=4 --spare-disks=2
467 /dev/md0 /dev/sda /dev/sdb missing /dev/sdc /dev/sdd /dev/sde
468
469 will create a raid5 array with the third slot empty, and two
470 spares.
471
472 By default, raid5 arrays are created with the last slot empty
473 and drive listed for the last slot added as a spare. If a
474 "missing" slot is given, or if --force is given, then --create
475 does exactly what you ask and doesn't try to be clever.
476
477
478 --follow / --monitor:
479
480 This is a new mode. I couldn't stop my self from picking a name
481 starting with F (as current modes start A,B,C,D,E) but I
482 relented and provided an alternate name that is somewhat more
483 meaningful.
484
485 In this mode, mdctl does not exit, but runs continuously and
486 periodically polls all the md devices to see if they have had
487 any interested state change.
488 The changes that it currently notices are:
489 Fail - an active disc fails
490 FailSpare - a spare, that was presumably being build, fails
491 ActiveSpare - a spare becomes active, presumably after a rebuild.
492
493 Options:
494 --mail mailaddress - send Email on any Fail* event
495 --program program - run the program on any event.
496 Args are: eventname mddevice subdevice(if-known)
497 --delay seconds - change from the default 60second pause
498 between polls.
499
500 I plan to add functionality to this mode to allow sharing of
501 spare drives. If an array is marks "spare-group=fred", and it
502 has a failed drive and no spares, and if some other array is
503 also "spare-group=fred" and it has no failed drives, but does
504 have a spare drive that is big enough, the spare will be moved
505 to the first array.
506
507 I also have the idea of adding a --grow mode which will re-organise
508 the data on an N disk raid0/4/5 array to be on an N+M disk array.
509 I have no concrete plans for this though.
510
511 I got rid of the "v" in the archive file name, and include the
512 version number in the directory created by the archive.
513
514 There is now a man page and mdctl.spec (for rpm) thanks to
515 Danilo Godec <danci@agenda.si>.
516
517 Ofcourse, the man page is now out of date and despite being based on
518 the --help output, is not wholy correct. After I get --follow
519 working properly, I plan to revise the various documentation and/or
520 the code to make sure the two match.