Non-disruptive modification of a device mapper stack
AssigneeGlobalfoundries Inc.
InventorClement L. Dickey
Life of this patent
Estimating the term…
Abstract
Embodiments relate to non-disruptive modification of a device mapper stack. Aspects include receiving the device mapper stack comprising a first device mapper layer having an active mapping table and creating a second device mapper layer having a copy of the active mapping table from the first device mapper layer. Aspects further include creating an inactive mapping table having a desired mapping logic in the first device mapper layer and suspending and resuming an operation of the first device mapper layer. Suspending and resuming causes the active mapping table of the first device mapper layer to be replaced with the inactive mapping table of the first device mapper layer.
Claims12
A method for non-disruptive modification of a device mapper stack comprising:
- receiving the device mapper stack comprising a first device mapper layer having an active mapping table;
- creating a second device mapper layer having a copy of the active mapping table from the first device mapper layer;
- creating an inactive mapping table having a desired mapping logic in the first device mapper layer;
- and
- suspending and resuming an operation of the first device mapper layer, wherein the suspending and resuming causes the active mapping table of the first device mapper layer to be replaced with the inactive mapping table of the first device mapper layer.
A method for non-disruptive modification of a device mapper stack comprising:
- receiving a device mapper stack comprising a first device mapper layer having an modified mapping table and a second device mapper layer having a original mapping table;
- copying the original mapping table from the second device mapper layer into the first device mapper layer;
- storing the original mapping table as an inactive mapping table for the first device mapper layer;
- suspending and resuming an operation of the first device mapper layer, wherein the suspending and resuming causes the active mapping table of the first device mapper layer to be replaced with the inactive mapping table of the first device mapper layer;
- and
- removing the second device mapper layer from the device mapper stack.
A computer program product for non-disruptive modification of a device mapper stack, the computer program product comprising:
- a non-transitory computer readable storage medium having program code embodied therewith, the program code executable by a processor to:
- receive the device mapper stack having a first device mapper layer comprising an active mapping table;
- creating a second device mapper layer having a copy of the active mapping table from the first device mapper layer;
- creating an inactive mapping table having a desired mapping logic in the first device mapper layer;
- suspending and resuming an operation of the first device mapper layer, wherein the suspending and resuming causes the active mapping table of the first device mapper layer to be replaced with the inactive mapping table of the first device mapper layer.
Dependencies are inferred from the claim text.