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