Bug 1094061 - [RFE] Thin pool should support offline metadata resize
Summary: [RFE] Thin pool should support offline metadata resize
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Kabelac
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1104702
TreeView+ depends on / blocked
 
Reported: 2014-05-04 20:59 UTC by Zdenek Kabelac
Modified: 2024-05-06 17:34 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
: 1104702 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zdenek Kabelac 2014-05-04 20:59:10 UTC
Description of problem:

Resize of thin pool's metada is supported only when thin pool is online.
Add support for metadata resize of inactive pool.

This may require multiple steps together with execution of thin util.

Version-Release number of selected component (if applicable):
2.02.106

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Zdenek Kabelac 2014-05-13 12:15:29 UTC
Thinking about the issue - we most likely will need to update metadata to add temporary backup metadata into pool metadata structure (and probably using sendfile() to copy data - since we may at most copy ~16GB which should be rather quick operation)

Then we resize the original metadata volume - and run  thin_repair to recreate 'backup' metadata into the original metadata space. And finally free 'backup' metadata as the last step (in case the new resized metadata would be wrong - there is always chance to 'swap' back the old ones in recovery path...)

This method seems to have the advantage we preserve policy and allocation position of original pool's metadata and in every step we have always unmodified metadata available.

While 'backup' metadata are attached - we do not allow activation of thin pool. To recover/repair activation   'backup' needs to be removed (lvconvert --repair).


Note You need to log in before you can comment on or make changes to this bug.