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