Reinstall and keep data LV

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

 



Hi,
I am struggling!
I want to reinstall LVM based installs. I want to keep some LVs (data)
but want to overwrite the other LVs(system)

First I did a kickstart of RHEL 7, here the storage related lines

...snip
zerombr
clearpart --all --initlabel
part pv.0 --fstype=lvmpv --grow --asprimary
part /boot --fstype=xfs --size 1000 --asprimary --label BOOT
volgroup rhel_rhellv01 pv.0
logvol / --vgname=rhel_rhellv01 --name=root --size 5000 --fstype=xfs
logvol /home --vgname=rhel_rhellv01 --name=home --fstype=xfs --size \
  1000 --fsoptions="defaults,nodev,nosuid,noexec"
logvol swap --fstype="swap" --name=swap --vgname=rhel_rhellv01 --size 1000
snap...

Next I tried a reinstall with a modified kickstart

...snip
bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
part /boot --fstype=xfs --size 1000 --asprimary --label BOOT \
  --onpart=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00003-part1
part pv.0 --fstype=lvmpv --grow --asprimary \
  --onpart=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00003-part2 --noformat
volgroup rhel_rhellv01 --noformat
logvol / --vgname=rhel_rhellv01 --name=root --size 5000 --fstype=xfs \
  --useexisting
logvol /home --vgname=rhel_rhellv01 --name=home --fstype=xfs --size \
  1000 --fsoptions="defaults,nodev,nosuid,noexec" --noformat
logvol swap --fstype="swap" --name=swap --vgname=rhel_rhellv01 --size \
  1000 --useexisting
snap...

this is working with RHEL 7 (so my kickstart is not totally wrong)!

but with RHEL 8

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

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux