diff options
author | NeilBrown <neilb@suse.de> | 2010-12-16 11:45:21 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-12-16 11:45:21 +1100 |
commit | 78b10e663c35a301406facbda3f5be02973e2ba4 (patch) | |
tree | 545b594c2e7f1e6f8ea3f5192d49435925b25995 /managemon.c | |
parent | 94827db3b336c59c23bb1c29692d5045af7f4bec (diff) |
imsm: Prepare reshape_update in mdadm
During Online Capacity Expansion metadata has to be updated to show
array changes and allow for future assembly of array. To do this
mdadm prepares and sends reshape_update metadata update to mdmon.
The update contains the old and new number of raid disks, and the
indices of the spare disks that will be used to fill the spaces.
This works as follows:
1. reshape_super() prepares metadata update.
2. mdadm discovers the spares and adds them to the array
3. mdadm sends the update to mdmon
4. managemon in prepare_update() allocates required memory for bigger
device object
5. monitor in process_update() updates the metadata to record the
new sizes and the newly assigned devices.
6. mdadm initiates the reshape
Based on code From: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'managemon.c')
0 files changed, 0 insertions, 0 deletions