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