Red Hat Bugzilla – Bug 818020
fail to rename the thin LV
Last modified: 2015-01-26 19:10:20 EST
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.# lvs tsvg
lvs LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
lvs lv1 tsvg Vwi-a-tz 100.00m pool 0.00
lvs lv2 tsvg Vwi-a-tz 100.00m pool 0.00
lvs pool tsvg twi-a-tz 4.00m 0.00
# lvrename tsvg lv1 lv3
lvrename Cannot rename "lv1": name format not recognized for internal LV "pool1"
What about the other form of the command - does that work or fail?
lvrename tsvg/lv1 lv3
This is bug in for_each_sub_lv() logic in lv_manip code for thin pool rename
While for renaming pool - multiple LV must be renamed, for thin volume this is not the case.
(In reply to comment #1)
> What about the other form of the command - does that work or fail?
> lvrename tsvg/lv1 lv3
[root@laker T1]# lvrename tsvg/lv1 lv2
lvrename Cannot rename "lv1": name format not recognized for internal LV "pool"
Regression fixed upstream with this commit:
Fixed in 2.02.96
verified with lvm2-2.02.97-1.el7.x86_64
change to verified according to the comment 6