Neil Brown
3d3dd91e38
Support --uuid= with --create to choose your own UUID.
2006-12-14 17:33:10 +11:00
Neil Brown
b90c0e9a12
--wait or -W will wait for resync activity to finish on the given devices.
2006-12-14 17:31:22 +11:00
Neil Brown
bee8ec56f4
Support --update=devicesize for cases where the underlying device can change size.
2006-12-14 17:31:03 +11:00
Neil Brown
e843d5d779
Support --examine --brief --verbose properly
...
Similar to -Esv, this combination should print out the
'devices=' line in the otherwise --breif output.
2006-10-23 15:51:26 +10:00
Neil Brown
cbfbcb0b50
Improve error message when wrong --update option is given.
2006-10-23 08:56:27 +10:00
Luca Berra
1cac4c1b55
Don't trigger and error on -As if all arrays are already started.
...
From: Luca Berra <bluca@comedia.it>
Put another way, if we find any active arrays, then assume things are
going as planned.
2006-10-16 15:27:48 +10:00
Neil Brown
38098016ca
Allow symlink creation to be disabled from command line or mdadm.conf
2006-08-11 18:00:05 +10:00
Neil Brown
43f2372a03
Fix starting of degraded arrays.
...
Recent change broke assembling of degraded arrays, making
it require --run. This fixes that.
2006-08-07 11:13:01 +10:00
Neil Brown
8aec876d2e
More consistent honoring of --configfile
...
Never use /etc/mdadm.conf if --config file is given (previously
some code used one, some used the other).
2006-06-26 15:11:01 +10:00
Neil Brown
ab56093f3b
Get --stop to honour --quiet
...
And as a side effect, if --quiet isn't given, stopped devices are
reported.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-06-02 05:53:22 +00:00
Neil Brown
1d1e104b0d
Don't try to create a new device when using --manage or --grow
...
... as that's just silly!
Signed-off-by: Neil Brown <neilb@suse.de>
2006-06-02 01:53:13 +00:00
Neil Brown
41a3b72a9c
Release 2.5
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 07:12:48 +00:00
Neil Brown
589395d696
Support --auto-update-homehost
...
This can be used to bootstrape homehost tagging.
If no arrays are found that are tagged, we look for any array
and tag it.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 04:16:07 +00:00
Neil Brown
d55e3aefc0
Support auto-assembling of stacked devices
...
and assorted bugfixes.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 03:11:57 +00:00
Neil Brown
da6b5ca9bd
Initial implementation of auto-assembly
...
This basically works, but needs various improvements and some tests.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 00:50:15 +00:00
Neil Brown
0237e0cafd
Support --update=homehost to allow updating of homehost information.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 05:16:32 +00:00
Neil Brown
c4f12c1340
Allow --update=name to update the name during assembly.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 04:57:04 +00:00
Neil Brown
e5eac01f3d
Make sure homehost is set correctly when --update=uuid
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 04:51:39 +00:00
Neil Brown
a1cbd7d053
Include homehost information in --examine as appropriate
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 07:19:04 +00:00
Neil Brown
b6750aa8da
Include homehost information in --detail where appropriate.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 07:13:03 +00:00
Neil Brown
05697ec1e2
Make homehost information appear in superblock.
...
When an array is created, if the homehost is know,
the superblock gets it, either in the uuid, (via sha1)
or in the name field.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 06:56:06 +00:00
Neil Brown
997aed5dee
Allow homehost to be set on command line or in config file
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 05:50:08 +00:00
Neil Brown
4f589ad0c5
Just updaqte copyright dates and email address
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 05:25:11 +00:00
Neil Brown
b8a8ccf945
New flag --no-degraded
...
Use to avoid starting arrays if there are
fewer devices available than last time the array was started.
This is only needed with --scan, as with --scan, that behaviour
is the default.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 04:53:22 +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
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
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
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
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
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
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
1e0d770c0f
Release some compile fixes.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-02-06 04:18:12 +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
Neil Brown
576d6d83af
Prefer version-1 superblocks for v.large devices.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-31 00:01:48 +00:00
Neil Brown
8fac0577f0
Stuff like..
...
- report Intent Bitmap in --detail
- report internal bitmap in --examine
- pass' --force through to --grow --bitmap
- support v.large arrays in --grow --bitmap
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-30 23:23:45 +00:00
Neil Brown
3d4064cc9b
Support --help --assemble etc.
...
i.e. allow '--help' to be first and still give
context sensitive help.
Also don't print truncated device-size of very large arrays.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-30 00:13:26 +00:00
Neil Brown
5dd497eecb
Enable support for v.large raid1.
...
clean up 'long long' usage for size of array, so that
with v-1 superblocks a raid1 larger than 2TB is possible.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-27 06:21:06 +00:00
Neil Brown
7d99579f6a
Support updating of uuid during --assemble.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-05 05:56:33 +00:00
Neil Brown
773135f5bd
syslog support for monitor mode
...
From: ross@jose.lug.udel.edu (Ross Vandegrift)
Hi Neil,
While adding the text message mode, I saw a FIXME asking for syslog
support in monitor mode.
This patch adds exactly that.
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-05 05:55:56 +00:00
Neil Brown
47d79ef8e5
Support --assume-clean for --create
...
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-05 05:54:48 +00:00
Neil Brown
c06487ce20
Improve option parsing
...
stuff
====Do Not Remove====
Status: ok
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-05 05:54:33 +00:00
Neil Brown
f9c25f1d2a
Support bitmaps with raid10
...
And a couple of other little things
Signed-off-by: Neil Brown <neilb@suse.de>
2005-11-22 03:37:14 +00:00
Neil Brown
7f48e21079
Make sure mdadm -S returns correct error code
...
If a bad file names was given, exit status still 0.
If some devices couldn't be stopped for "mdadm -Ss"
exit status still 0.
Thanks: Daniel Hottinger <hotti@google.com>
Signed-off-by: Neil Brown <neilb@suse.de>
2005-10-21 06:13:04 +00:00
Neil Brown
fe80f49b6e
Assorted fixes
...
Support "--build"ing arrays with bitmaps.
hot-removal of bitmaps
--re-add of drives recently removed.
assorted extra tests
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-16 06:45:23 +00:00
Neil Brown
dab6685f3d
Add 'quite' option and tidy up some tests.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-15 06:14:27 +00:00
Neil Brown
947fd4ddb5
Support nameing of version-1 arrays.
...
--name is recognised in --create and --assemble
name= is recognised in config file.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 05:23:20 +00:00
Neil Brown
dfd4d8ee42
Add write-behind support
...
Currently this includes
--write-behind to set level of write-behind supported
--write-mostly to flag devices as write-mostly.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 04:25:47 +00:00
Neil Brown
586ed40547
Support fixing of byte-swapped superblocks.
...
Good for moving between little-endian and big-endian.
Still needs documentation.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 04:25:27 +00:00
Neil Brown
bd72c2b2b8
Allow --force flag with --grow
...
.. so that you can 'grow' a raid1 to only one device.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:34:29 +00:00
Neil Brown
22892d5632
Don't list device= in --examine --scan output.
...
As the device list isn't stable, recording it should be avoided.
The device= list is still available if --verbose is given (once).
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:34:23 +00:00
Neil Brown
1337546dc1
Allow --auto to still be meaningful when --scan is given
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:33:02 +00:00
Neil Brown
91f068bf5c
Retry --stop --scan until all stoppable devices have been stopped
...
This is needed to reliably stop stacked arrays
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:32:18 +00:00
Neil Brown
6fbba4c929
Stuff
...
Description...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2006-04-17 23:42:52 +00:00
Neil Brown
e4c4352e49
Move the test for validity of raid_disk later.
...
This allows the check to be done after we know what
metadata format is being used, and so the max number of raiddisks
is known.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:45 +00:00
Neil Brown
ea32955930
Increase max-devs on type-1 superblocks
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:46 +00:00
Neil Brown
f5e166fee3
Support --grow --bitmap=internal
...
Adding a filebased bitmap is not yet supported, and
this code is still under development.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:46 +00:00
Neil Brown
55935d5180
Add support for internal bitmaps
...
For version 0.90 superblocks, an internal bitmap can be specified at create.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:47 +00:00
Neil Brown
dfe47e008e
Make sure to seed the random number generator for uuids
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:48 +00:00
Neil Brown
c82f047cfc
Initial bitmap support
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:16:35 +00:00
Neil Brown
a825febc06
A couple off minor fixed in multi-format management.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:16:36 +00:00
Neil Brown
82d9eba687
super1
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Fix raid5 creation with new code.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-05-03 23:44:40 +00:00
Neil Brown
f9ce90ba50
Add a 'super-switch' so that different format superblocks can be used.
...
This includes:
adding --metadata= option to choose metadata format
adding metadata= word to config file.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-05-03 23:44:32 +00:00
Neil Brown
0320ea4565
Change handling of devices names in args
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:18:57 +00:00
Neil Brown
e6b64cd05c
Improve error message when mode is set twice.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:29 +00:00
Neil Brown
d17c1f8cbd
Reverse order of arrays when --stop --scan
...
so that stacked arrays are stopped properly.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:24 +00:00
Neil Brown
43fc16763d
Add some missing closes of mdfd
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:18 +00:00
Neil Brown
0df46c2ad8
Change MAJOR() etc to major() etc
...
This allows for larger device number if glibc supports
it (requires 2.3.3).
Also fail before creating larger device number if glibc
support isn't present.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:13 +00:00
Neil Brown
8d80900b49
When assembling with --auto, honour common device names
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:10 +00:00
Neil Brown
a75f2fbcf2
Fix some initialisations of ident
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:04 +00:00
Neil Brown
b5e6464503
mdadm-1.8.0
2004-11-01 04:49:34 +00:00
Neil Brown
e5329c3747
mdadm-1.7.0
2004-08-11 02:16:01 +00:00
Neil Brown
dd0781e505
mdadm-1.6.0
2004-06-04 12:03:19 +00:00
Neil Brown
98c6faba80
mdadm-1.5.0
2004-01-22 02:10:29 +00:00
Neil Brown
feb716e9c3
mdadm-1.4.0
2003-10-28 23:20:01 +00:00
Neil Brown
aa88f531b4
mdadm-1.3.0
2003-07-28 23:59:00 +00:00
Neil Brown
56eedc1a3f
mdadm-1.2.0
2003-03-12 22:24:39 +00:00
Neil Brown
d013a55e94
mdadm-1.1.0
2003-03-02 23:11:38 +00:00
Neil Brown
5787fa4906
mdadm-1.0.9
2003-02-12 00:17:26 +00:00
Neil Brown
bd526cee92
mdadm-1.0.1
2002-05-20 11:17:18 +00:00
Neil Brown
2d46552003
mdadm-1.0.0
2002-05-10 04:06:19 +00:00
Neil Brown
b83d95f362
mdadm-0.8.2
2002-04-11 01:36:14 +00:00
Neil Brown
c913b90e6d
mdadm-0.8.1
2002-04-05 22:00:28 +00:00
Neil Brown
e0d1903663
mdadm-0.8
2002-04-04 01:58:32 +00:00
Neil Brown
56eb10c0b6
mdadm-0.7.1
2002-03-15 05:21:36 +00:00
Neil Brown
9a9dab3670
mdadm-0.7
2002-03-08 00:03:52 +00:00