LVM problem after kickstart install on RHEL4

Shabazian, Chip Chip.Shabazian at bankofamerica.com
Thu May 4 16:44:13 UTC 2006


Have you installed lvm on these boxes before?  On the HP DL servers,
with CCISS controllers, I've noticed a failure on them if there were
existing lvm partitions unless you clear the partition table with
--initlabel:

clearpart --all --initlabel

Alternatively, you can delete and re-create the partitions in the CCISS
controller BIOS.

Chip

-----Original Message-----
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Ajitabh Pandey
Sent: Thursday, May 04, 2006 7:56 AM
To: kickstart-list at redhat.com
Subject: LVM problem after kickstart install on RHEL4

Hi,

A very strange problem, after the RHEL4 update 3 kickstart install from
an http server. When the system comes up after the install it is not
able to mount the LVMs. A little investigation tells that the directory
/dev/vg_root does not exists. Following is my kickstart file, perhaps
something obviously wrong there. System is DL585 G2.

<kickstart>
install
url --url http://our.management-server.net/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 # This static address does not work at
the moment as install method is # kickstart over http, so system need to
have an address network --device eth0 --bootproto=static --ip
192.168.1.55 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver
192.168.1.10,192.168.1.11 --hostname noddy03 network --device eth1
--bootproto static --ip 192.168.1.56 --netmask 255.255.0.0 --gateway
192.168.1.254 --nameserver
192.168.1.10,192.168.1.11 --hostname noddy03 rootpw --iscrypted
$1dsjhdhs$F/uKYN6URk.

#firewall --disabled
firewall --enabled --ssh --http
#selinux --permissive
selinux --disabled
authconfig --enableshadow --enablemd5 --enablekrb5
--krb5realm=MYDOMAIN.NET
--krb5kdc=mswinadc01.mydomain.net:88,mswinadc02.mydomain.net:88
--krb5adminserver=mswinadc01.bds.tv: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 / --fstype ext3
--size=70000 --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 swap
--size=8000 --ondisk=cciss/c0d0 part pv.01 --noformat --size=100 --grow
--ondisk=cciss/c0d0 volgroup vg_root pv.01 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
zsh
sysstat
screen
openldap-clients
nmap
open
net-snmp-utils
mc
iptraf
ethereal
ckermit

# development-tools
binutils
rcs
subversion

%post
rpm --import /usr/share/rhn/RPM-GPG-KEY
/usr/sbin/useradd -G wheel -c "Administrator" -d /home/admin -s
/bin/bash admin

</kickstart>

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 at BDS.TV
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

_______________________________________________
Kickstart-list mailing list
Kickstart-list at redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list




More information about the Kickstart-list mailing list