Managing metadata for logical volume managers
AssigneeRed Hat Israel, Ltd.
InventorsEduardo Warszawski, Ayal Baron
Life of this patent
Estimating the term…
Abstract
A logical volume manager (LVM) may manage a plurality of logical volumes and a plurality of drives in a logical data storage using metadata stored on the plurality of drives. The LVM may operate in one of two modes. In the first mode, the LVM may deleted uncommitted metadata on a drive and may use committed metadata on the drive when accessing a logical volume. In a second mode, the LVM may use committed metadata on the drive when accessing the logical volume and may refrain from deleting the uncommitted metadata.
Claims20
A method comprising:
- receiving a request to access a logical volume in a plurality of logical volumes;
- determining, by a logical volume manager executable by a processing device, whether a committed metadata and an uncommitted metadata are in a drive used by the logical volume, wherein the logical volume manager is to manage the plurality of logical volumes and wherein the plurality of logical volumes use a plurality of drives;
- determining whether to operate in a first mode or a second mode, when the committed metadata and the uncommitted metadata are on the drive;
- removing the uncommitted metadata and using the committed metadata to access the logical volume, when operating in the first mode;
- and
- using the committed metadata to access the logical volume and refraining from removing the uncommitted metadata, when operating in the second mode.
A system comprising:
- a memory;
- a processing device coupled to the memory;
- and
- a logical volume manager, executable from the memory by the processing device, the logical volume manager to:
- receive a request to access a logical volume in a plurality of logical volumes;
- determine whether a committed metadata and an uncommitted metadata are in a drive used by the logical volume, wherein the logical volume manager is to manage the plurality of logical volumes and wherein the plurality of logical volumes use a plurality of drives;
- determine whether to operate in a first mode or a second mode, when the committed metadata and the uncommitted metadata are on the drive;
- remove the uncommitted metadata and use the committed metadata to access the logical volume, when operating in the first mode;
- and
- use the committed metadata to access the logical volume and refrain from removing the uncommitted metadata, when operating in the second mode.
A non-transitory computer readable storage medium having instructions that, when executed by a processing device, cause the processing device to perform operations comprising:
- receiving a request to access a logical volume in a plurality of logical volumes;
- determining whether a committed metadata and an uncommitted metadata are in a drive used by the logical volume, wherein the processing device is to manage the plurality of logical volumes and wherein the plurality of logical volumes use a plurality of drives;
- determining whether to operate in a first mode or a second mode, when the committed metadata and the uncommitted metadata are on the drive;
- removing the uncommitted metadata and using the committed metadata to access the logical volume, when operating in the first mode;
- and
- using the committed metadata to access the logical volume and refraining from removing the uncommitted metadata, when operating in the second mode.
Dependencies are inferred from the claim text.