Bug 1279636

Summary: [RFE] Add ability to create RAID thin pool in one command
Product: [Fedora] Fedora Reporter: Tony Asleson <tasleson>
Component: lvm2Assignee: LVM Team <lvm-team>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: rawhideCC: agk, bmarzins, bmr, dwysocha, heinzm, jbrassow, jonathan, lvm-team, msnitzer, prajnoha, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.