/** Create VG. */ private boolean vgCreate(final Host host, final String vgName, final List<String> pvNames) { for (final String pv : pvNames) { final BlockDevInfo bdi = host.getBrowser().getDrbdGraph().findBlockDevInfo(host.getName(), pv); if (bdi != null) { bdi.getBlockDevice().setVolumeGroupOnPhysicalVolume(vgName); bdi.getBrowser().getDrbdGraph().startAnimation(bdi); } } final boolean ret = LVM.vgCreate(host, vgName, pvNames, false); if (ret) { answerPaneAddText( "Volume group " + vgName + " was successfully created " + " on " + host.getName() + "."); } else { answerPaneAddTextError("Creating of volume group " + vgName + " failed."); } return ret; }