From Fedora Project Wiki
(Created page with "{{admon/important | Comments and Explanations | The page source contains comments providing guidance to fill out each section. They are invisible when viewing this page. To re...")
 
(Move to Fedora 22, see tracking bug for more details)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{admon/important | Comments and Explanations | The page source contains comments providing guidance to fill out each section. They are invisible when viewing this page. To read it, choose the "edit" link.<br/> '''Copy the source to a ''new page'' before making changes!  DO NOT EDIT THIS TEMPLATE FOR YOUR CHANGE PROPOSAL.'''}}
<!-- Self Contained or System Wide Change Proposal?
Use this guide to determine to which category your proposed change belongs to.
Self Contained Changes are:
* changes to isolated/leaf package without the impact on other packages/rest of the distribution
* limited scope changes without the impact on other packages/rest of the distribution
* coordinated effort within SIG with limited impact outside SIG functional area, accepted by the SIG
System Wide Changes are:
* changes that does not fit Self Contained Changes category touching
* changes that require coordination within the distribution (for example mass rebuilds, release engineering or other teams effort etc.)
* cham defaults
For Self Contained Changes, sections marked as "REQUIRED FOR SYSTEM WIDE CHANGES" are OPTIONAL but FESCo/Wrangler can request more details (especially in case the change proposal category is
improper or updated to System Wide category). For System Wide Changes all fields on this form are required for FESCo acceptance (when applies). 
We request that you maintain the same order of sections so that all of the change proposal pages are uniform.
-->
<!-- The actual name of your proposed change page should look something like: Changes/Your_Change_Proposal_Name.  This keeps all change proposals in the same namespace -->
= LVM Cache Logical Volumes <!-- The name of your change proposal --> =
= LVM Cache Logical Volumes <!-- The name of your change proposal --> =


== Summary ==
== Summary ==
<!-- A sentence or two summarizing what this change is and what it will do. This information is used for the overall changeset summary page for each release. -->
LVM can now use fast block devices (e.g. SSDs and PCIe Flash) to improve the performance of larger but slower block devices.  These hierarchical or layered logical volumes are called "Cache Logical Volumes" in LVM.
LVM can now use fast block devices (e.g. SSDs and PCIe Flash) to improve the performance of larger but slower block devices.  These hierarchical or layered logical volumes are called "Cache Logical Volumes" in LVM.


Line 40: Line 16:
* Name: [[User:dlehman| Dave Lehman]]
* Name: [[User:dlehman| Dave Lehman]]
* Email: dlehman@fedoraproject.org
* Email: dlehman@fedoraproject.org
* Name: [[User:vpodzime| Vratislav Podzimek]]
* Email: vpodzime@redhat.com
* Release notes owner: <!--- To be assigned by docs team [[User:FASAccountName| Release notes owner name]] <email address> -->
* Release notes owner: <!--- To be assigned by docs team [[User:FASAccountName| Release notes owner name]] <email address> -->
<!--- UNCOMMENT only for Changes with assigned Shepherd (by FESCo)
<!--- UNCOMMENT only for Changes with assigned Shepherd (by FESCo)
Line 50: Line 28:


== Current status ==
== Current status ==
* Targeted release: [[Releases/21 | Fedora 21 ]]  
* Targeted release: [[Releases/22 | Fedora 22 ]]  
* Last updated: (DATE)
* Last updated: 2014-04-28
<!-- After the change proposal is accepted by FESCo, tracking bug is created in Bugzilla and linked to this page  
<!-- After the change proposal is accepted by FESCo, tracking bug is created in Bugzilla and linked to this page  
Bugzilla states meaning as usual:
Bugzilla states meaning as usual:
Line 60: Line 38:
CLOSED as NEXTRELEASE -> change is completed and verified and will be delivered in next release under development
CLOSED as NEXTRELEASE -> change is completed and verified and will be delivered in next release under development
-->
-->
* Tracker bug: <will be assigned by the Wrangler>
* Tracker bug: [https://bugzilla.redhat.com/show_bug.cgi?id=1098130 #1098130]


== Detailed Description ==
== Detailed Description ==
<!-- Expand on the summary, if appropriate.  A couple sentences suffices to explain the goal, but the more details you can provide the better. -->
LVM is now capable of using fast block devices (e.g. SSDs) as write-back or write-though caches for larger slower block devices.  Users can create cache logical volumes to improve the performance of their existing logical volumes or create new cache logical volumes composed of a small and fast device coupled with a large and slow device.  These cache logical volumes can be used with most LVM segment types, including RAID 1/4/5/6/10, linear, stripe and thin pools.
LVM is now capable of using fast block devices (e.g. SSDs) as write-back or write-though caches for larger slower block devices.  Users can create cache logical volumes to improve the performance of their existing logical volumes or create new cache logical volumes composed of a small and fast device coupled with a large and slow device.  These cache logical volumes can be used with most LVM segment types, including RAID 1/4/5/6/10, linear, stripe and thin pools.


== Benefit to Fedora ==
== Benefit to Fedora ==
<!-- What is the benefit to the platform?  If this is a major capability update, what has changed?  If this is a new functionality, what capabilities does it bring? Why will Fedora become a better distribution or project because of this proposal?-->
Users will have the advantage of fast block device speeds with the capacity of larger but slower block devices.
Users will have the advantage of fast block device speeds with the capacity of larger but slower block devices.


Line 73: Line 49:
* Proposal owners:
* Proposal owners:
<!-- What work do the feature owners have to accomplish to complete the feature in time for release?  Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?-->
<!-- What work do the feature owners have to accomplish to complete the feature in time for release?  Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?-->
'''The LVM team''' must deliver the lvm2 package implementing cache LV (already included in release 2.02.106)


* Other developers: N/A (not a System Wide Change) <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
* Other developers: N/A (not a System Wide Change) <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
<!-- What work do other developers have to accomplish to complete the feature in time for release?  Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?-->
<!-- What work do other developers have to accomplish to complete the feature in time for release?  Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?-->
'''The Anaconda team''' must develop a UI for configuring cache LVs during installation.  If Anaconda support is not provided, users will have to configure cache LVs after installation or by dropping into a command line.  Also, Anaconda could fail if installing a new OS onto an existing cache LV if support is not provided.
'''The dracut team''' must provide boot support.  If dracut does not provide support, cache LVs will not be usable as root devices.


* Release engineering: N/A (not a System Wide Change)  <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
* Release engineering: N/A (not a System Wide Change)  <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
Line 104: Line 84:
3. What are the expected results of those actions?
3. What are the expected results of those actions?
-->
-->
<!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
It is not strictly necessary to have SSDs or other fast block devices.  You can use any block device as the cache for any other block device - even if they are the same device, as long as there is enough space!  While you may not see the benefits of this arrangement without a fast device, it is still possible to check for correct functionality (i.e. can the cache LV be created, removed, resized, renamed, or changed?  is there any corruption?  etc).
 
To test the feature user will have to:
 
* install the system with cache configured once the Anaconda UI is available
* converting existing LVs to use SSD cache once the LVM package is updated to include latest upstream patches


An SSD or other fast block device is recommended to actually increase the speed but the feature will be testable without one as the user may create a cache device from the data disk with effect of decreased performance.
If Anaconda has support for LVM cache logical volumes, users will be able to configure them at install time.  Otherwise, it is possible to convert existing logical volumes to cache logical volumes once the system has been installed.


Information on how to setup cache logical volumes can be found in the lvm(8) man page.
Information on how to setup cache logical volumes can be found in the lvm(8) man page.
Line 144: Line 119:


<!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
<!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
* Command line: Cache section of the upstream [[https://git.fedorahosted.org/cgit/lvm2.git/tree/man/lvm.8.in#n401| lvm(8)]] man page.
* Command line: Cache section of the upstream [https://git.fedorahosted.org/cgit/lvm2.git/tree/man/lvm.8.in#n401| lvm(8)] man page.


== Release Notes ==
== Release Notes ==

Latest revision as of 12:08, 15 October 2014

LVM Cache Logical Volumes

Summary

LVM can now use fast block devices (e.g. SSDs and PCIe Flash) to improve the performance of larger but slower block devices. These hierarchical or layered logical volumes are called "Cache Logical Volumes" in LVM.

Owner

Current status

Detailed Description

LVM is now capable of using fast block devices (e.g. SSDs) as write-back or write-though caches for larger slower block devices. Users can create cache logical volumes to improve the performance of their existing logical volumes or create new cache logical volumes composed of a small and fast device coupled with a large and slow device. These cache logical volumes can be used with most LVM segment types, including RAID 1/4/5/6/10, linear, stripe and thin pools.

Benefit to Fedora

Users will have the advantage of fast block device speeds with the capacity of larger but slower block devices.

Scope

  • Proposal owners:

The LVM team must deliver the lvm2 package implementing cache LV (already included in release 2.02.106)

  • Other developers: N/A (not a System Wide Change)

The Anaconda team must develop a UI for configuring cache LVs during installation. If Anaconda support is not provided, users will have to configure cache LVs after installation or by dropping into a command line. Also, Anaconda could fail if installing a new OS onto an existing cache LV if support is not provided.

The dracut team must provide boot support. If dracut does not provide support, cache LVs will not be usable as root devices.

  • Release engineering: N/A (not a System Wide Change)
  • Policies and guidelines: N/A (not a System Wide Change)

Upgrade/compatibility impact

  • Nothing changes for users following update path.
  • The logical volumes using cache will become unavailable from systems using older kernels and LVM. The cache will have to be dropped to grant access for those legacy systems.

How To Test

It is not strictly necessary to have SSDs or other fast block devices. You can use any block device as the cache for any other block device - even if they are the same device, as long as there is enough space! While you may not see the benefits of this arrangement without a fast device, it is still possible to check for correct functionality (i.e. can the cache LV be created, removed, resized, renamed, or changed? is there any corruption? etc).

If Anaconda has support for LVM cache logical volumes, users will be able to configure them at install time. Otherwise, it is possible to convert existing logical volumes to cache logical volumes once the system has been installed.

Information on how to setup cache logical volumes can be found in the lvm(8) man page.

User Experience

Users will enjoy the increased speed of disk storage while keeping capacity of HDD.

Dependencies

  • Anaconda: Implementation of UI
  • Dracut: Module to Detect and install required configuration files and kernel modules

Contingency Plan

  • LVM2: Changes are already present upstream. If severe bugs are found, cache can be disabled here.
  • Dracut: There is already a hardcoded dm-cache installation. If the detection is not done in time, it will work as is.
  • Anaconda: Cache will work even without UI except it will not be configurable by regular users without using command line. Users can also setup cache LVs after installation.
  • LVM2: We will need an ability to drop the cache should the cache device fail or become corrupted. (This can be done using Live CD.)
  • Contingency deadline: beta freeze
  • Blocks release? No
  • Blocks product? -

Documentation

  • Command line: Cache section of the upstream lvm(8) man page.

Release Notes