Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Kickstart zerombr - The Volume Group is already in Use

    Posted on

    Hi,

    I have inherited a kickstart file. I was trying to use the kick start to destroy the disk and create some partitions.

    This is part of what I inherited.

    clearpart --all --initlabel --drives=sda,sdb
    part /boot --fstype ext3 --size=512 --ondisk=sda
    part pv.2 --size=100 --grow --ondisk=sda
    part pv.3 --size=100 --grow --ondisk=sdb
    volgroup vg00 --pesize=32768 pv.2 pv.3
    logvol / --fstype ext3 --name=slashvol --vgname=vg00 --size=10240
    logvol /var --fstype ext3 --name=varvol --vgname=vg00 --size=4096
    logvol /local/mnt --fstype ext4 --name=localmntvol --vgname=vg00 --size=4096 --grow
    logvol swap --fstype swap --name=swapvol --vgname=vg00 --size=12030"

    When some machines were reimaged the kickstart stopped and the error message "The volume group name "vg00" is already in use".

    Is a reasonable fix to change the disk section so that is reads

    zerombr
    clearpart --all
    part /boot --fstype ext3 --size=512 --ondisk=sda
    part pv.2 --size=100 --grow --ondisk=sda
    part pv.3 --size=100 --grow --ondisk=sdb
    volgroup vg00 --pesize=32768 pv.2 pv.3
    logvol / --fstype ext3 --name=slashvol --vgname=vg00 --size=10240
    logvol /var --fstype ext3 --name=varvol --vgname=vg00 --size=4096
    logvol /local/mnt --fstype ext4 --name=localmntvol --vgname=vg00 --size=4096 --grow
    logvol swap --fstype swap --name=swapvol --vgname=vg00 --size=12030"

    I read that initlabel is deprecated. Is there any harm in removing --initlabel and adding zerombr ? Is there another way to get rid of the ..already in use message? I just went onto the machine that was having trouble and fdisked it.

    Thanks,

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat