Make 'size' an unsigned long when creating arrays
Explicitly state the spare devices are 'spare'
In --detail and --examine, if a device has no flags set, explicitly state that it is spare.
Make it explicit in Makefile that mail command can be configured.
Also make it easier to change warning flags without editing Makefile
Fix small bug in rarely-used code for adding devices.
--monitor notices degraded arrays on startup and can run --oneshot
1/ When mdadm --monitor first notices an array, it will check if it is degraded and will issue a "DegradedArray" event if it is. 2/ mdadm --monitor has a --oneshot option which causes it to check once and exit. This can be used in a cron script to generate DegradedArray events on a regular basis for any degraded arrays.
Small changes to man pages.
State which device is parity device in raid4 in md.4
Clarify which raid levels can be used with create and which with build.
Disallow creating arrays with just one device unless --force is given.
.. as this is probably a mistake.
Correct some misleading documentation in the --create --help message.
Ignore chunk size for multipath or raid1
and set it to zero. Only set default of 64 for raid0, linear, raid4, raid5
Small update to man page about --raid-disks not being changable.
Improve messages when starting an array without all devices.
Instead of required the array to be full, we only require it has as many active devices as last time.
New version released
1.3.0
New "SparesMissing" event
Add "spares=" tag to config file and generate it wit --detail and --examine Add "SparesMissing" event when --monitor first sees an array and it doesn't have the enough spare devices.
Add --update=summaries to correct sumarry information in superblock.
Summary information is total, active, working, spare, failed disks. Make sure unused superblock descriptor entries aren't failed.
Add --test flag for --detail
To give a more interesting exit status.
Document raid5 array creation details.
Release 1.4.0
Add new command "mdassemble" for initfs usage.
mdassemble (contributed by Luca Berra
Don't give a warning inf /proc/mdstat contains unexpected string
This allows for quieter extenstions to /proc/mdstat
Signed-off-by: Neil Brown
Fix BLKGETSIZE64 macro
The definition of this macro in the linux kernel is bogus,
and we copied it. The third arg is a type, not a size....
Signed-off-by: Neil Brown
Include "Rebuild Status" in --detail output.
Signed-off-by: Neil Brown
Remove lots of signed/unsigned comparison warnings.
Signed-off-by: Neil Brown
Support --test with --monitor
This generates a test message against each array found at startup.
Signed-off-by: Neil Brown
Add support for raid6 personality.
Thanks to H. Peter Anvin
Avoid infinite loop if /proc/mdstat is parsed badly.
If /proc/mdstat appears to have two devices with the same devnum,
we will loop inifinitely finding new devices.
With this patch, we ignore extras.
Signed-off-by: Neil Brown
Support for partitioned md devices.
This requires understanding "md_d1" etc in /proc/mdstat.
and finding the major number for 'mdp' in /proc/devices.
Signed-off-by: Neil Brown
Generate RebuildFinished event when rebuild stops.
Submitted by Mike Snitzer
Fix bad sentence in man page.
Signed-off-by: Neil Brown
Update to version 1.5.0
Signed-off-by: Neil Brown
Fix typo in earlier patc
Signed-off-by: Neil Brown
Use get_md_name instead of /dev/md%d for --examine --brief
This allows it to work when people have different arrangement
of /dev
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 4 ++++
./Examine.c | 5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Fix typo in man page.
Signed-off-by: Neil Brown
### Diffstat output
./mdadm.8 | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff ./mdadm.8~current~ ./mdadm.8
Close loose filedescriptor in monitor mode.
When a new array is found by 'scan', we inadvertantly
keep it open, so it can never to stopped..
Thanks to Doug Ledford
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 2 ++
./Monitor.c | 1 +
2 files changed, 3 insertions(+)
diff ./ChangeLog~current~ ./ChangeLog
Support --grow mode
raid1/4/5/6 arrays can have --size changed.
raid1 can have --raid-disks changed.
... if the kernel supports it.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 4 +++
./Manage.c | 21 +++++++++++++++++++
./ReadMe.c | 27 ++++++++++++++++++++++---
./mdadm.8 | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
./mdadm.c | 44 +++++++++++++++++++++++++++++++----------
./mdadm.h | 4 ++-
6 files changed, 147 insertions(+), 17 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Don't report {no-,}errors in superblock status.
It doesn't mean anything.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 3 ++-
./Detail.c | 5 ++---
./Examine.c | 5 ++---
3 files changed, 6 insertions(+), 7 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Use md event notification (if available in kernel)
This allows --monitor to respond immediately to events.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 3 +++
./Detail.c | 2 +-
./Monitor.c | 4 ++--
./mdadm.c | 2 +-
./mdadm.h | 3 ++-
./mdstat.c | 27 +++++++++++++++++++++++----
6 files changed, 32 insertions(+), 9 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Use better name in --brief if standard names doesn't exist.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 3 +++
./util.c | 5 ++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff ./ChangeLog~current~ ./ChangeLog
Automatically make devices if needed.
--auto=partNN or --auto=yes etc tell mdadm to create the required
device files. Functionality also available as auto= entry in
mdadm.conf
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 3
./Create.c | 1
./ReadMe.c | 7 +
./config.c | 32 ++++++++
./mdadm.8 | 55 ++++++++++++++
./mdadm.c | 210 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
./mdadm.conf.5 | 20 +++++
./mdadm.h | 19 +++--
./util.c | 75 +++++++++++++++-----
9 files changed, 381 insertions(+), 41 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Allow Build to work for raid1 and multipath.
Still need to resolve when to mark raid1 as clean.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 2 +-
./mdadm.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Improve documentation of --run for create mode.
Signed-off-by: Neil Brown
### Diffstat output
./mdadm.8 | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+)
diff ./mdadm.8~current~ ./mdadm.8
Fix typo in error message.
Thanks: Leon Woestenberg
Signed-off-by: Neil Brown
### Diffstat output
./Create.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff ./Create.c~current~ ./Create.c
Fix bug in 1.5.0 which broke reporting of rebuild status.
In the loop, we ant to make every occurance of the device
as used (to avoid loops if the kernel is confused), but
we will want to end up pointing to one of them...
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 2 +-
./Monitor.c | 10 ++++++----
2 files changed, 7 insertions(+), 5 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Add "degraded" and "recovering" to --detail Status: line
Also a few bug fixes.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 3 ++-
./Detail.c | 36 ++++++++++++++++++++++--------------
./Monitor.c | 2 +-
./config.c | 2 ++
4 files changed, 27 insertions(+), 16 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
New --assume-clean option.
For building raid1 arrays.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 4 +++-
./ReadMe.c | 2 ++
./mdadm.8 | 8 ++++++++
./mdadm.c | 8 +++++++-
./mdadm.h | 2 +-
5 files changed, 21 insertions(+), 3 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Document the NN suffix to auto=part options.
Signed-off-by: Neil Brown
### Diffstat output
./mdadm.8 | 20 +++++++++++++++++++-
./mdadm.conf.5 | 6 +++++-
2 files changed, 24 insertions(+), 2 deletions(-)
diff ./mdadm.8~current~ ./mdadm.8
Make suire get_md_name works if /dev/.tmp.mdX already exists.
Signed-off-by: Neil Brown
### Diffstat output
./util.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff ./util.c~current~ ./util.c
Increase version number
And write announcement.
Signed-off-by: Neil Brown
### Diffstat output
./ANNOUNCE-1.6.0 | 36 ++++++++++++++++++++++++++++++++++++
./ChangeLog | 2 +-
./ReadMe.c | 2 +-
./mdadm.8 | 2 +-
./mdadm.spec | 2 +-
5 files changed, 40 insertions(+), 4 deletions(-)
diff ./ANNOUNCE-1.6.0~current~ ./ANNOUNCE-1.6.0
Support --grow --add for linear devices.
IF the kernel is up to it, this can add a device to an active
linear array.
This is still un-development. No documentation yet.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 4 +
./Grow.c | 192 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
./Makefile | 4 -
./mdadm.c | 27 ++++++--
./mdadm.h | 1
5 files changed, 219 insertions(+), 9 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Restore functionality of mdadm.uclibc.
It didn't compile properly, and debian has moved the compiler...
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 1 +
./Makefile | 2 +-
./util.c | 51 ++++++++++++++++++++++++++-------------------------
3 files changed, 28 insertions(+), 26 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Several improvements to the --detail output.
In particular, the drive that is being rebuild in shown, and the current
state can be "resyncing" or 'recovering".
Also the Info extracted from the superblock is now printed before
all the devices, instead of after.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 2 +
./Detail.c | 105 +++++++++++++++++++++++++++++++++++++++++++++---------------
./Examine.c | 1
./mdadm.h | 1
./mdstat.c | 6 +++
5 files changed, 89 insertions(+), 26 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Close filedescriptor after --detail has finished
instead of leaving them open.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 4 +++-
./Detail.c | 8 +++++---
2 files changed, 8 insertions(+), 4 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Report the "Sync Checkpoint" in --examine mode
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 1 +
./Examine.c | 5 +++++
./md_p.h | 7 ++++++-
3 files changed, 12 insertions(+), 1 deletion(-)
diff ./ChangeLog~current~ ./ChangeLog
Allow --update=resync to force a resync of the array.
Signed-off-by: Neil Brown
### Diffstat output
./Assemble.c | 5 +++++
./ChangeLog | 4 +++-
./mdadm.8 | 10 ++++++++++
./mdadm.c | 7 +++++--
4 files changed, 23 insertions(+), 3 deletions(-)
diff ./Assemble.c~current~ ./Assemble.c
Provide support for new RAID-10 module
... which is still under development
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 4 +++-
./Create.c | 15 +++++++++++++++
./Detail.c | 6 ++++++
./Examine.c | 4 ++++
./ReadMe.c | 6 ++++--
./mdadm.c | 19 ++++++++++++++++++-
./util.c | 2 ++
7 files changed, 52 insertions(+), 4 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Read spares info from config file for --monitor even when devices listed on command line.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 2 ++
./Monitor.c | 6 ++++++
./config.c | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)
diff ./ChangeLog~current~ ./ChangeLog
Update version number and improve makedist
Signed-off-by: Neil Brown
### Diffstat output
./ReadMe.c | 2 +-
./makedist | 12 +++++++++++-
./mdadm.8 | 2 +-
./mdadm.spec | 2 +-
4 files changed, 14 insertions(+), 4 deletions(-)
diff ./ReadMe.c~current~ ./ReadMe.c
Makefile cleanup
From: Luca Berra
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 3 +++
./Makefile | 31 +++++++++++++++++++++----------
2 files changed, 24 insertions(+), 10 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Pid file support
From: Luca Berra
Adds a -i (pid) option to monitor mode which causes mdadm to
write its own pid to the specified file, this comes useful to simplify
init scripts that call mdadm --monitor --daemonize.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 1 +
./Monitor.c | 17 +++++++++++++++--
./ReadMe.c | 4 +++-
./mdadm.8 | 7 +++++++
./mdadm.c | 15 ++++++++++++++-
./mdadm.h | 2 +-
6 files changed, 41 insertions(+), 5 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Fix typo in man page
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 1 +
./mdadm.8 | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Fix bug if no config file
We use the config info before testing if it exists.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 1 +
./mdadm.c | 28 +++++++++++++++-------------
2 files changed, 16 insertions(+), 13 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Add raid6, raid10, and --auto support to mdassemble
From: Luca Berra
Signed-off-by: Neil Brown
### Diffstat output
./Makefile | 20 +++--
./mdadm.c | 161 -----------------------------------------------
./mdadm.h | 2
./mdassemble.c | 10 ++
./mdopen.c | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 216 insertions(+), 170 deletions(-)
diff ./Makefile~current~ ./Makefile
Add script to use with --follow to send events to syslog
Signed-off-by: Neil Brown
### Diffstat output
./misc/syslog-events | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+)
diff ./misc/syslog-events~current~ ./misc/syslog-events
Add support for "faulty" personality.
Description...
Signed-off-by: Neil Brown
### Diffstat output
./Build.c | 32 +++++++++++++++++++++++++++++++-
./ChangeLog | 1 +
./Create.c | 14 ++++++++++++--
./Manage.c | 17 +++++++++++++++++
./ReadMe.c | 22 ++++++++++++++++++++++
./md.4 | 27 +++++++++++++++++++++++++++
./mdadm.8 | 40 ++++++++++++++++++++++++++++++++++++++--
./mdadm.c | 36 ++++++++++++++++++++++++++++++------
./mdadm.h | 30 ++++++++++++++++++++++++++++--
9 files changed, 206 insertions(+), 13 deletions(-)
diff ./Build.c~current~ ./Build.c
Support for devices > 32bit sectors in raid0 and linear arrays.
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 4 +++-
./Create.c | 37 +++++++++++++++++++++++++++----------
./Examine.c | 3 ++-
./util.c | 35 ++++++++++++++++++++++++++---------
4 files changed, 58 insertions(+), 21 deletions(-)
diff ./ChangeLog~current~ ./ChangeLog
Create version 1.8.0
Signed-off-by: Neil Brown
### Diffstat output
./ChangeLog | 5 +++--
./ReadMe.c | 2 +-
./mdadm.8 | 2 +-
./mdadm.spec | 2 +-
4 files changed, 6 insertions(+), 5 deletions(-)