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