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