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