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