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