How to install Red Hat Enterprise Linux 7 using Kickstart file with LVM Thinpool ?

Solution Verified - Updated -

Issue

  • How to install Red Hat Enterprise Linux 7 using Kickstart file with LVM Thinpool ?
  • Used the following partitioning scheme.
clearpart --all --initlabel --drives=sda
part pv.17 --fstype="lvmpv" --ondisk=sda --size=1000 --grow
part /boot --fstype="xfs" --ondisk=sda --size=250
volgroup test --pesize=4096 pv.17
logvol none     --fstype="None" --size=11544    --thinpool --name=pool00 --vgname=test
logvol swap     --fstype="swap" --size=1024     --thin --poolname=pool00 --name=swap --vgname=test
logvol /    --fstype="xfs"  --size=5192     --thin --poolname=pool00 --name=root --vgname=test
  • This partitioning scheme results into an abrt bug as follows.
anaconda 19.31.79-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 845, in execute
    "chunksize": self.chunk_size / 1024.0 }
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 703, in execute
    l.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1784, in doKickstartStorage
    ksdata.logvol.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 364, in _doExecute
    doKickstartStorage(self.storage, self.data, self.instclass)
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 211, in run
    threading.Thread.run(self, *args, **kwargs)
TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'
  • What is the correct syntax to write in kickstart file for this partitioning?

Environment

  • Red Hat Enterprise Linux 7
  • Kickstart LVM Thin Pool

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.