kickstart issue
by andrewm659 from LinuxQuestions.org on (#4Z2XK)
I have CentOS 8 setup to do kickstart. I have successfully booted CentOS 5,6,8 working but seem to be running into an issue with 7.
This is the error from the anaconda.log when trying to kickstart it.
sda is 120GB thin provsioned on vmware esxi 6.7.
I think my issue is the number of PE on the volume group but not 100% sure.
Code:02:47:01,746 DEBUG anaconda: is_valid_stage2_device(sda1) returning True
02:47:01,756 DEBUG anaconda: Storage check started with constraints {'must_be_on_linuxfs': set(['/tmp', '/var', '/usr', '/home', '/', '/usr/lib', '/usr/share']), 'must_be_on_root': set(['/etc', '/bin', '/proc', '/sbin', '/dev', '/lib', 'lost+found', '/mnt', '/root']), 'min_ram': 320, 'req_partition_sizes': {}, 'min_root': Size('250 MiB'), 'must_not_be_on_root': set([]), 'root_device_types': set([]), 'min_partition_sizes': {'/boot': Size('200 MiB'), '/home': Size('100 MiB'), '/var': Size('384 MiB'), '/tmp': Size('50 MiB'), '/usr': Size('250 MiB')}}.Here is the snippet from my kickstart config file:
Code:url --url="ftp://10.150.10.7/pub/centos/7/os/x86_64/"
# System bootloader configuration
#bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
bootloader --location=mbr --driveorder=sda --append="rhgb quiert crashkernel=auto novga console=ttyS0,115200 console=tty0"
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel --drives=sda
# Disk partitioning information
part pv.01 --fstype="lvmpv" --size=1 --grow --ondisk=sda
part /boot --asprimary --fstype="ext4" --size=2048
volgroup vg_root --pesize=65536 pv.01
logvol / --fstype="ext4" --name=lv_root --vgname=vg_root --size=3096
logvol /var --fstyp="ext4" --name=lv_var --vgname=vg_root --size=10000
logvol /var/log --fstyp="ext4" --name=lv_var_log --vgname=vg_root --size=4000
logvol /var/log/audit --fstyp="ext4" --name=lv_var_log_audit --vgname=vg_root --size=2000
logvol /usr --fstype="ext4" --name=lv_usr --vgname=vg_root --size=8000
logvol /home --fstype="ext4" --name=lv_home --vgname=vg_root --size=10000
logvol /tmp --fstype="ext4" --name=lv_tmp --vgname=vg_root --size=5000
logvol swap --fstype="swap" --name=lv_swap --vgname=vg_root --size=2048
logvol /opt --fstype="ext4" --name=lv_opt --vgname=vg_root --size=5000
%packages
@base
@core
@network-tools
bash-completion
ipa-client
%end


This is the error from the anaconda.log when trying to kickstart it.
sda is 120GB thin provsioned on vmware esxi 6.7.
I think my issue is the number of PE on the volume group but not 100% sure.
Code:02:47:01,746 DEBUG anaconda: is_valid_stage2_device(sda1) returning True
02:47:01,756 DEBUG anaconda: Storage check started with constraints {'must_be_on_linuxfs': set(['/tmp', '/var', '/usr', '/home', '/', '/usr/lib', '/usr/share']), 'must_be_on_root': set(['/etc', '/bin', '/proc', '/sbin', '/dev', '/lib', 'lost+found', '/mnt', '/root']), 'min_ram': 320, 'req_partition_sizes': {}, 'min_root': Size('250 MiB'), 'must_not_be_on_root': set([]), 'root_device_types': set([]), 'min_partition_sizes': {'/boot': Size('200 MiB'), '/home': Size('100 MiB'), '/var': Size('384 MiB'), '/tmp': Size('50 MiB'), '/usr': Size('250 MiB')}}.Here is the snippet from my kickstart config file:
Code:url --url="ftp://10.150.10.7/pub/centos/7/os/x86_64/"
# System bootloader configuration
#bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
bootloader --location=mbr --driveorder=sda --append="rhgb quiert crashkernel=auto novga console=ttyS0,115200 console=tty0"
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel --drives=sda
# Disk partitioning information
part pv.01 --fstype="lvmpv" --size=1 --grow --ondisk=sda
part /boot --asprimary --fstype="ext4" --size=2048
volgroup vg_root --pesize=65536 pv.01
logvol / --fstype="ext4" --name=lv_root --vgname=vg_root --size=3096
logvol /var --fstyp="ext4" --name=lv_var --vgname=vg_root --size=10000
logvol /var/log --fstyp="ext4" --name=lv_var_log --vgname=vg_root --size=4000
logvol /var/log/audit --fstyp="ext4" --name=lv_var_log_audit --vgname=vg_root --size=2000
logvol /usr --fstype="ext4" --name=lv_usr --vgname=vg_root --size=8000
logvol /home --fstype="ext4" --name=lv_home --vgname=vg_root --size=10000
logvol /tmp --fstype="ext4" --name=lv_tmp --vgname=vg_root --size=5000
logvol swap --fstype="swap" --name=lv_swap --vgname=vg_root --size=2048
logvol /opt --fstype="ext4" --name=lv_opt --vgname=vg_root --size=5000
%packages
@base
@core
@network-tools
bash-completion
ipa-client
%end