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