-->

DEVOPSZONES

  • Recent blogs

    Not able to create LV with error "Aborting. Failed to activate new LV to wipe the start of it " in cluster setup

    Not able to create LV with error "Aborting. Failed to activate new LV to wipe the start of it " in cluster setup

    Error :

    I can not create LV. It was giving below error message.

    lvcreate -n LVScalix01b -L 900G VGScalix01b 
    Aborting. Failed to activate new LV to wipe the start of it.
    • The said error usually comes up when there is a 'volume_list' defined in /etc/lvm/lvm.conf and the 'volume_list' defined tag was not added to the VG on which we were trying to create the logical volume.

    • If /etc/lvm/lvm.conf has below entries:

    # If volume_list is defined, each LV is only activated if there is a
    # match against the list.
    #   "vgname" and "vgname/lvname" are matched exactly.
    #   "@tag" matches any tag set in the LV or VG.
    #   "@*" matches if any tag defined on the host is also set in the LV or VG
    #
    # volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
    volume_list = [ "vg00", "@node1.example.com" ]
    
    • Adding proper tag to the subjected VG or using the directive '--addtag @<tag-name>' along with the 'lvcreate' command should resolve the issue.

    Resolution :

    1. How to check the current tag on the VG where we can not create LV.

    # vgs -o +vg_tags

    2. If this particular volume group does not have this tag , try adding the tag to this VG and try to create LV. The command below can be used to add tag to the VG.

    # vgchange --addtag <Tag> <Volume Group Name>

    Here tag can be "node1.example.com" and volume group can be "VGScalix01b".

    3. Now check if the VG has the proper tag set, with the command :
    #vgs -o +vg_tags

    4. If it has the proper tag , try to create an LV on this VG.

    # lvcreate -n LVScalix01b -L 900G VGScalix01b


    Thanks for reading. Please share.

    No comments