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