Commit Graph

3665 Commits

Author SHA1 Message Date
Neil Brown 008e1100b8 Add a copy of /proc/mdstat to the mail message send by mdadm --monitor.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 03:58:45 +00:00
Neil Brown 751406f361 Fix incorrect error status from --examine --scan
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 03:48:49 +00:00
Neil Brown f1ae21c411 Arrange the 'auto' setting in mdadm.conf can choose default type.
So when you say auto=md or auto=part in mdadm.conf, it give a preference
for type of array, but standard name will override.

But --auto=md is more insistant.

FIXME  I'm not at all happy about handling of names that already exist.
  I don't think that should be removed if the device is active.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-16 07:35:06 +00:00
Neil Brown 8131b493df When updating uuid, update the bitmap as well - external bitmaps
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-16 06:05:27 +00:00
Neil Brown 98b24a2afa Fix a couple of typos in the man page.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-16 05:53:15 +00:00
Neil Brown 14263cf12c When updating uuid, update the bitmap as well - internal bitmaps.
Otherwise when you "--update==uuid" an array with an internal
bitmap, it will break, badly.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-16 05:52:51 +00:00
Neil Brown 120230a4fc Detail checks if array has been started or not and includes that in report.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 06:03:05 +00:00
Neil Brown 5bbb48424b Allow default creation info to to be stored in mdadm.conf
Default owner, group, mode and 'auto' flag can be given in a 'CREATE' line.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 06:02:41 +00:00
Neil Brown 1bfdbe01ff Limit size of bitmap to 2million chunks.
When creating a file bitmap, choose a default size that
results in fewer than 2^21 chunks.  Without this kmalloc
failure in the kernel becomes likely.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 04:21:33 +00:00
Neil Brown 8686f3ed06 Fix problem with sector/KB size confuision for bitmap sizing.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 03:57:53 +00:00
Neil Brown b578481ca3 Support new offset layout for raid10
Requires 2.6.18.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 02:46:54 +00:00
Neil Brown a99d6b669c Assume "DEVICE partitions" if no DEVICE line present.
This means the output of "mdadm -Es" can be used as a complete
mdadm.conf file .... if you really want to do that.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 01:58:47 +00:00
Neil Brown d1732eebac Arrange that SparesMissing events generate an email too.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 01:35:47 +00:00
Neil Brown 4948b8f72e Support 'mailfrom' line in mdadm.conf so the From: line in alert emails can be explicitly set.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 01:27:04 +00:00
Neil Brown 4ccdb95600 Use O_DIRECT to read bitmap files.
A pending patch to the kernel causes bitmap file updates
to not go through the page cache, so O_DIRECT is needed to
ensure that we read current data.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 00:56:02 +00:00
Neil Brown c4d831e164 [PATCH] Make sure update_super returns correct value.
For 'force' and 'assemble', update_super must return true
if anything was changed.

Also fix a bug with wonly handling in super0.

Signed-off-by: Neil Brown <neilb@suse.de>

### Diffstat output
 ./super0.c |   18 ++++++++++++++----
 ./super1.c |    7 +++++++
 2 files changed, 21 insertions(+), 4 deletions(-)

diff ./super0.c~current~ ./super0.c
2006-04-28 14:10:38 +10:00
Neil Brown 7fa42a0b5e [PATCH] Get the name for partitioned devices in sysfs correct.
There are 64 partitions per device, not 16.

Signed-off-by: Neil Brown <neilb@suse.de>

### Diffstat output
 ./sysfs.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff ./sysfs.c~current~ ./sysfs.c
2006-04-28 14:09:24 +10:00
Neil Brown 90d0adf4ba Release 2.4.1
Annoying alignment bug in version-1 supers on 64bit..

Signed-off-by: Neil Brown <neilb@suse.de>
2006-04-17 12:49:28 +00:00
Neil Brown ac957baa97 Fix alignment problem in version-1 superblocks.
NOTE: This is an incompatable change affecting raid5 reshape.
If you want to reshape a raid5 using version-1 superblocks,
use 2.6.17-rc2 or later, and mdadm-2.4.1 or later.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-04-07 04:34:45 +00:00
Neil Brown 86d0e1ab93 Add tests/05r1-grow-internal-1 2006-04-01 09:28:36 +00:00
Neil Brown d8def61cfa fix write mostly for add and re-add
The following patch makes it possible to tag a device as write-mostly on
--add and --re-add with a non-persistent superblock array. Previously,
this was not working.

Signed-Off-By: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: Neil Brown <neilb@suse.de>
2006-04-03 00:11:51 +00:00
Neil Brown 8ca586c619 Add ANNOUNCE-2.4 2006-03-30 04:24:09 +00:00
Neil Brown 00b738b201 Release 2.4
Signed-off-by: Neil Brown <neilb@suse.de>
2006-04-03 00:09:16 +00:00
Neil Brown 4d272c99d2 Add tests/05r1-grow-internal-1 2006-03-29 05:21:16 +00:00
Neil Brown addc80c467 Updates to md.4
Particularly restiping and sysfs, but a few other bits too.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-30 04:17:51 +00:00
Neil Brown 9860f2711d Bug fixes to pass test suite
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-29 06:28:07 +00:00
Neil Brown 7ef02d0143 Support 'bitmap=' in mdadm.conf for auto-assembling arrays with write-intent bitmaps in separate files.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-29 02:57:48 +00:00
Neil Brown 2ae555c3d9 Man page tidyup.
mdadm.8 improved (I hope).
Rearrange some option documentation and add --backup-file, and other
general improvements.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-29 02:45:06 +00:00
Neil Brown d7514c5884 Changelog Updates
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-28 23:27:05 +00:00
Neil Brown 6409687b55 Kill old superblocks on create.
Make sure old-version superblocks are not around to confuse anything
when a new array is created.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-28 23:22:58 +00:00
Neil Brown e27d562bcc Reduce dependance on MD_SB_DISKS
--monitor should now work with arrays larger than 28 devices.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-28 23:02:45 +00:00
Neil Brown bed256c241 Add information about reshape to --detail
Also fix problems with dev names and symlinks

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-28 22:44:05 +00:00
Neil Brown 4027ddcaa4 Don't try to get bitmap info on old kernels.
.. this causes silly warnings.
Unfortuantely there are 2.6 kernels which will still produce
warnings.  We cannot reliable detect those.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-28 06:39:29 +00:00
Neil Brown 16c6fa807c Create missing /dev files where needed.
Whenever we need a device file to open, if one cannot be found in /dev,
create a temporary one.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-28 06:26:53 +00:00
Neil Brown 8352ab3e2c Fix messy --detail output when there is a failed device.
The missing devices show as garbage.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-28 05:51:50 +00:00
Neil Brown 0a416ec307 Make scanning of /dev work even if it is a symlink
We generally don't want to follow symlinks in /dev, but if
/dev itself is a symlink, we want to follow it.
So nftw needs a bit of help.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-27 06:54:31 +00:00
Neil Brown 06b0d78675 Allow resize to backup to a file.
To support resizing an array without a spare, mdadm now understands
  --backup-file=
which should point to a file for storing a backup of critical data.
This can be given to --grow which will create the file, or
--assemble which will restore from the file if needed.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-27 06:38:46 +00:00
Neil Brown 313176636e Remove ident arg from getinfo_super;
Add a 'name' field to 'info' to compensate.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-27 04:34:38 +00:00
Neil Brown 2efedc7bd2 Put a 'canary' block in front of the backup
.. so corruptio can be detected.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-27 04:14:43 +00:00
Neil Brown ca9ce4ec3e Add ANNOUNCE-2.4-pre1 2006-03-20 03:34:49 +00:00
Neil Brown 39c5a90983 Release 2.4-pre1
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-20 03:50:25 +00:00
Neil Brown 206c5eaedf Fix a few issues with the reshape patches.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-20 03:26:42 +00:00
Neil Brown 353632d927 Support restarting of a reshape on --assemble
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-20 03:17:31 +00:00
Neil Brown e86c9dd6d8 Initial reshape support
Needs work for other levels etc.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-13 05:51:32 +00:00
Neil Brown 8a4440794a Add ANNOUNCE-2.3.1 2006-02-06 04:11:49 +00:00
Neil Brown 1e0d770c0f Release some compile fixes.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-02-06 04:18:12 +00:00
Neil Brown a92f6acc43 Update ChangeLog and release 2.3
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Neil Brown <neilb@suse.de>
2006-02-02 05:17:24 +00:00
Neil Brown 561832f9d4 Some little bits and pieces...
I'm obviously bored of writing changelog entries.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-02-02 03:19:57 +00:00
Neil Brown 881990a2e4 Fix printing of size of reiserfs filesystem.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=318230

Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-31 00:43:50 +00:00
Neil Brown 22a8899586 Sort mdstat entries so that composites are well-ordered.
This means that "-Ds" lists arrays in an approprate order
for assembly.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-31 00:39:50 +00:00