Re: Bug: LVM2 create long name device failed but we can see it by run lvs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Thanks,
Xufeng Zhang
Alasdair



_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux