Bug 1279636 - [RFE] Add ability to create RAID thin pool in one command
Summary: [RFE] Add ability to create RAID thin pool in one command
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: LVM Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-09 22:17 UTC by Tony Asleson
Modified: 2024-05-06 17:34 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tony Asleson 2015-11-09 22:17:55 UTC
Description of problem:

Today if you want to create a RAID thin pool you first create LVs to be used for the metadata and the data and then run lvconvert on them to make it into a thin pool.  It would be good to have at least a single command which supports this for the general use case which utilizes best practice for sane defaults for the user that just want's their thinpool to be placed safely on multiple disks.

Comment 1 Zdenek Kabelac 2015-11-19 15:37:48 UTC
2 paths for now exists:

--

lvcreate raid LV for data 
lvcreate raid LV for metadata

lvconvert them into thin-pool

--

lvcreate thin-pool

lvconvert  -m+1 data 
lvconvert  -m+1 metadata

---


ATM lvm2 is not 'smart' enough for this layouts.

Needs to support  usage of some smart 'tags' to place those devices just like might have imagine.

We may eventually reuse meaning of option '-m+1' for this kind of operation in future to make both LVs (data & metadata) mirrored - but long way to go to reach this without creating completely senseless layouts.


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