Reinstall and keep data LV

Markus Falb wnefal at gmail.com
Thu Aug 19 23:26:20 UTC 2021


On Thu, Aug 19, 2021 at 10:52 PM David Barr <dafydd at dafydd.com> wrote:
>
> On 8/19/21 12:54, Markus Falb wrote:
> >
> > error: logical volume "root" given in logvol command does not exist
> >
> > What is wrong with my kickstart? What should I change that it works
> > with RHEL 8 too?
> >
> > Best Regards, Markus
>
>
> I'm going to guess that it can't find the previous root LV that you've asked it for with --useexisting.
> Do you have a way to test without that option? Will it build a bare root LV on a new VG?

I tested like you said.

I removed --useexisting from logvol root, but then it complains about
home etc.. So I removed --usexisting and --noformat from all logvol
definitions and it actually began installing, but failed with

error: logical volume "swap" already exists in volume group "rhel_rhellv01"

With --useexisting the LVs are not  found and it does not even begin
the installation.

Without --useexisting it begins installation but can't create the LVs
because they already exist. This does not surprise me. And when I look
on the console the LVs are not activated, but I can do vgchange -ay.
However, the old /boot is destroyed at that point and the old system
won't boot anymore and I have to install/repair again.

I'm not sure how to proceed. Maybe I try Fedora to see if it only
fails with RHEL 8 (as I said it does work with RHEL 7)

Best Regards, Markus




More information about the Kickstart-list mailing list