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