Red Hat Bugzilla – Bug 1286653
linear->raid1 conversion possible, but reported as not supported
Last modified: 2015-11-30 17:37:45 EST
Description of problem:
'lvconvert --type=raid1 -m1' reports that the conversion is not supported yet, but running 'lvconvert --type=mirror -m1' followed by 'lvconvert --type=raid1' works just fine. LVM could just do these two steps on its own or at least suggest user that something like that is possible.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. have a linear LV
2. run 'lvconvert --type=raid1 -m1 theLV'
LVM complains about the conversion not being supported yet
conversion done because it's possible or at least a workaround being suggested
Works for me.
If you still think there's a problem, please provide complete data i.e. actual output from the commands with -vvvv added.
Oh, it only happens if I omit the '-m1' option. I'm not sure if it is a mandatory option, but if it is, the error message should be something else than "Converting the segment type for data/test from linear to raid1 is not yet supported.".
Created attachment 1100548 [details]
output of 'lvconvert -vvvv --type=raid1 data/test'
OK - I'll put '--type raid' into the same category as mirror.
(We are doing a thorough review and extension of this code at the moment to allow many more types of conversions.)