[linux-lvm] Bug: LVM2 create long name device failed but we can see it by run lvs
xufeng.zhang at windriver.com
Sat Nov 13 07:34:31 UTC 2010
On 11/12/2010 06:06 PM, Alasdair G Kergon wrote:
> On Fri, Nov 12, 2010 at 05:38:32PM +0800, xufeng zhang wrote:
>> This is the bug description:
>> When we create a logic volume with long names(such as 125), LVM2 will
>> return "Name too long" error
>> and create volume failed. However, you will see it exist in volume group
>> if you run lvs command.
>> The reason is that when LVM2 create a empty device in lv_create_empty()
>> function, it didn't check the
>> length of device names, but the empty device activate failed afterward
>> because of too long name(vgname+lvname>128).
> Thanks for reporting that.
> Presumably 'vgrename' needs a similar restriction.
Maybe I have made a mistake, I can't reproduce this bug in LVM2.2.02.76 now.
More information about the linux-lvm