Textmode kickstart SystemError - pvcreate failed for....

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

 



Hi,

A very strange error in a once functional kickstart file.

I get a pretty long error message, last few lines being - 

SystemError: pvcreate failed for <fsset PartitionDevice instance at
0x2a99015878>

I am attaching my kickstart file. If on this kickstart I comment out the
line "text" then the installation is performed in graphical mode and it
all works fine. But strange issue is I have done the installation using
this kickstart and the only change I have been doing is in the %post
section which should not effect the installation at least.

<kickstart_file>

install
url --url http://intranet.dom.com/rhel4/
lang en_US.UTF-8
langsupport --default en_GB.UTF-8 en_GB.UTF-8 en_US.UTF-8
keyboard uk
mouse none
text
skipx
zerombr yes
network --device eth0 --bootproto=static --ip 192.168.1.55 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 172.16.200.10,192.168.1.11 --hostname host03
network --device eth1 --bootproto static --ip 192.168.1.56 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 172.16.200.10,192.168.1.11 --hostname host03
rootpw --iscrypted $1$F/BWzbWs$VKczrfEWOCcxSuKYN6URk.

firewall --enabled --ssh --http
selinux --permissive
authconfig --enableshadow --enablemd5 --enablekrb5 --krb5realm=DOM.COM --krb5kdc=msadc01.dom.com:88,msadc02.dom.com:88 --krb5adminserver=msadc01.dom.com:749 
timezone --utc Europe/London
bootloader --location=mbr
clearpart --all --initlabel
# The following is the partition information
part /boot --fstype ext3 --size=2000 --ondisk=cciss/c0d0 --asprimary
part swap --size=8000 --ondisk=cciss/c0d0 --asprimary
part swap --size=8000 --ondisk=cciss/c0d0 --asprimary
part swap --size=8000 --ondisk=cciss/c0d0
part swap --size=8000 --ondisk=cciss/c0d0
part pv.01 --size=100 --grow --ondisk=cciss/c0d0
volgroup vg_root pv.01
logvol / --fstype ext3 --name=lv_root --vgname=vg_root --size=70000
logvol /usr/local --fstype ext3 --name=lv_usr_local --vgname=vg_root --size=10000
logvol /opt --name=lv_opt --vgname=vg_root --size=10000
logvol /apps --name=lv_apps --vgname=vg_root --size=10000
logvol /var --name=lv_var --vgname=vg_root --size=10000
logvol /var/www --name=lv_www --vgname=vg_root --size=20000
logvol /home --name=lv_home --vgname=vg_root --size=20000
logvol /tmp --name=lv_tmp --vgname=vg_root --size=10000

%packages
kernel-smp

# mail-server
postfix
-sendmail
-dovecot
-sendmail-cf
-spamassassin

# smb-server
samba
samba-client
-system-config-samba

# mysql
mysql-server
mysql

# web-server
httpd
mod_authz_ldap
mod_ssl
php
php-mysql

# editors
emacs
joe
vim-minimal

# system-tools
sysstat
screen
net-snmp-utils
iptraf

# development-tools
binutils
rcs
subversion

# Post is run in a subshell and all output is captured in a log file. Because
# its piped to tee, we see same output on the screen.
%post
(
# Switch to vt 3, so we can see what's happening here
chvt 3

# Import the GPG keys using which the RHEL packages are signed
rpm --import /usr/share/rhn/RPM-GPG-KEY

# Create a directory to hold the scripts and move into that
mkdir /root/post-install-scripts
cd /root/post-install-scripts

# Download the post-install scripts
/usr/bin/wget http://intranet_server_1.dom.com/rhel4/post-install/prod-common/scripts/post_install_1.sh
/usr/bin/wget http://intranet_server_1.dom.com/rhel4/post-install/prod-common/scripts/post_install_2.sh

# Assign execute permissions to the scripts
/bin/chmod ugo+x *.sh

# Execute the scripts
./post_install_1.sh
./post_install_2.sh

# Switch on services
/sbin/chkconfig psacct on  # Process Accounting
/sbin/chkconfig httpd on   # HTTPD server
/sbin/chkconfig mysqld on  # MySQL server

# Set up ownerships and permissions
/bin/chown -R root:root /usr/java
/bin/chown -R root:root /usr/local/scripts

# Creating the RRD databases
/usr/local/scripts/mkrrd.sh

# Erasing all the post-install scripts directory
rm -rf /root/post-install-scripts

) 2>&1 |tee /root/kickstart-post.log

# Switch back to vt 1 so that we can see the reboot screen
chvt 1
</kickstart_file>

Regards.
-- 
Ajitabh Pandey| Linux/Solaris Systems Administrator
bds - Broadcasting Dataservices Ltd
58 Uxbridge Road | London W5 2ST
T: +44 (0)20 8280 2036
E: Ajitabh.Pandey@xxxxxx
http://www.bds.tv 
Broadcasting Dataservices Ltd is a subsidiary of Red Bee Media Group

This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Broadcasting Dataservices. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender


[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