mdadm/TODO

115 lines
3.6 KiB
Plaintext
Raw Normal View History

2001-06-08 04:36:23 +02:00
2002-03-07 00:17:40 +01:00
2002-04-04 03:58:32 +02:00
?? Allow -S /dev/md? - current complains subsequent not a/d/r - DONE
2002-03-07 00:17:40 +01:00
2002-03-15 06:21:36 +01:00
* new "Query" mode to subsume --detail and --examine.
--query or -Q, takes a device and tells if it is an MD device,
2002-04-04 03:58:32 +02:00
and also tells in a raid superblock is found.
DONE
2002-03-15 06:21:36 +01:00
2002-04-04 03:58:32 +02:00
* write mdstat.c to parse /proc/mdstat file
2002-03-07 00:17:40 +01:00
Build list of arrays: name, rebuild-percent
2002-04-04 03:58:32 +02:00
DONE
2002-03-07 00:17:40 +01:00
2002-04-04 03:58:32 +02:00
* parse /proc/partitions and map major/minor into /dev/* names,
and use that for default DEVICE list ????
* --detail --scan to read /proc/mdstat, and then iterate over these,
2002-03-07 00:17:40 +01:00
but assume --brief. --verbose can override
check each subdevice to see if it is in conf_get_devs.
Warn if not.
2002-04-04 03:58:32 +02:00
DONE, but don't warn yet...
2002-03-07 00:17:40 +01:00
* Support multipath ... maybe...
2002-04-04 03:58:32 +02:00
maybe DONE
2002-03-07 00:17:40 +01:00
* --follow to syslog
* --follow to move spares around
* --follow to notice other events:
rebuild started
spare activated
spare removed
spare added
------------------------------------
2002-03-08 01:03:52 +01:00
- --examine --scan scans all drives and build an mdadm.conf file DONE
2002-03-07 00:17:40 +01:00
2001-07-26 09:00:09 +02:00
- check superblock checksum in examine DONE
- report "chunk" or "rounding" depending on raid level DONE
2001-06-14 07:33:53 +02:00
- report "linear" instead of "-1" for raid level DONE
- decode ayout depending on raid level DONE
2002-03-07 00:17:40 +01:00
- --verbose and --force flags. DONE
2001-06-14 07:33:53 +02:00
2001-07-26 09:00:09 +02:00
- set md_minor, *_disks for Create - DONE
2001-06-14 07:33:53 +02:00
- for create raid5, how to choose between
all working, but not insync
2002-03-07 00:17:40 +01:00
one missing, one spare, insync DONE (--force)
- and for raid1 - some failed drives... (missing)
2001-08-23 04:33:20 +02:00
2001-07-26 09:00:09 +02:00
- when RUN_ARRAY, make sure *_disks counts are right
- get --detail to extract extra stuff from superblock,
like uuid DONE
2002-03-07 00:17:40 +01:00
- --detail --brief to give a config file line DONE
2001-07-26 09:00:09 +02:00
- parse config file. DONE
- test...
- when --assemble --scan, if an underlying device is an md device,
then try to assemble that device first.
2001-07-26 22:47:22 +02:00
2002-03-08 01:03:52 +01:00
- mdadm -S /dev/md0 /dev/md1 gives internal error FIXED
2001-08-23 04:33:20 +02:00
2002-03-08 01:03:52 +01:00
- mdadm --detail --scan print summary of what it can find?
2001-08-23 04:33:20 +02:00
---------
Assemble doesn't add spares. - DONE
Create to allow "missing" name for devices.
Create to accept "--force" for do exactly what is requested
- get Assemble to upgrade devices if force flag.
ARRAY lines in config file to have super_minor=n
ARRAY lines in config file to have device=pattern, and only accept
those devices
If UUID given, insist on that
If not, but super_minor given, require all found with that minor
to have same uuid
If only device given, all valid supers on those devices must have
same uuid
allow /dev/mdX as first argument before any options
Possible --dry-run option for create and assemble--force
Assemble to check that all devices mentioned in superblock
are present.
New mode: --Monitor (or --Follow)
Periodically check status of all arrays (listed in config file).
Log every event and apparent cause - or differences
Email and alert - or run a program - for important events
Move spares around if necessary.
An Array line can have a spare-group= field that indicates that
the array shares spares with other arrays with the same
spare-group name.
If an array has a failed and no spares, then check all other
arrays in the spare group. If one has no failures and a spare,
then consider that spare.
Choose the smallest considered spare that is large enough.
If there is one, then hot-remove it from it's home, and
hot-add it to the array in question.
--mail-to address
--alert-handler program
Will also extract information from /proc/mdstat if present,
and consider 20% marks in rebuild as events.
Events are:
drive fails - causes mail to be sent
rebuild started
spare activated
spare removed
2002-03-07 00:17:40 +01:00
spare added