Re: [CentOS] kickstart question

2009-06-13 Thread Ian Forde
On Fri, 2009-06-12 at 14:54 +0200, Rainer Duffner wrote:
 Jerry Geis schrieb:
  Hi all,
 
  I have a kickstart file that works for /dev/sda.
  I now need to detect an HP server and use /dev/cciss instead of hard 
  coded /dev/sda.
 
  How can I detect what the name of the device is and use /dev/cciss and 
  not /dev/sda?
 
  Jerry
  ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos

 
 
 You want to use cobbler (www.et.redhat.com).

Or you can use a begin script that does a 'fdisk -l' and parses out the
available disks and puts that into the ks file...

-I

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] kickstart question

2009-06-12 Thread Jerry Geis
Hi all,

I have a kickstart file that works for /dev/sda.
I now need to detect an HP server and use /dev/cciss instead of hard 
coded /dev/sda.

How can I detect what the name of the device is and use /dev/cciss and 
not /dev/sda?

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question

2009-06-12 Thread Rainer Duffner
Jerry Geis schrieb:
 Hi all,

 I have a kickstart file that works for /dev/sda.
 I now need to detect an HP server and use /dev/cciss instead of hard 
 coded /dev/sda.

 How can I detect what the name of the device is and use /dev/cciss and 
 not /dev/sda?

 Jerry
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
   


You want to use cobbler (www.et.redhat.com).



cheers,
Rainer
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question

2009-06-12 Thread Ross Walker
On Jun 12, 2009, at 8:24 AM, Jerry Geis ge...@pagestation.com wrote:

 Hi all,

 I have a kickstart file that works for /dev/sda.
 I now need to detect an HP server and use /dev/cciss instead of hard
 coded /dev/sda.

 How can I detect what the name of the device is and use /dev/cciss and
 not /dev/sda?

Don't explicitly list devices for a server kickstart, let anaconda  
detect what's there and use the graphical disk utility to set things up.

Server hardware and installs vary too much to standardize disk  
layouts, packages, sure, but not disks.

-Ross

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question

2009-06-12 Thread Joseph L. Casale
I have a kickstart file that works for /dev/sda.
I now need to detect an HP server and use /dev/cciss instead of hard
coded /dev/sda.

If you already know where you want the install, simply replace 'sda' or
whatever it was with 'cciss/c0d0' or whatever controller/disc you intend.

jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question

2009-05-05 Thread John Kennedy
On Monday 04 May 2009 18:28:16 Jerry Geis wrote:
 Hi all,

 My kickstart section for packages is
 %packages
 @base-x
 @dialup
 @gnome-desktop
 @base
 @development-libs
 @core
snip


 I do not have package @mysql in the list - yet after install rpm -qa |
 grep -i mysql reports mysql loaded.

 how can I stop mysql from loading from anaconda?

 Thanks, this is centos 5.3 x86_64

 Jerry

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

If you look through comps.xml file in the install disks /repodata/ directory it 
will list all the packages that are mandatory, default, and optional for each 
package group. If you are remastering your install disks then you can edit the 
file to match your needs.
Hope this helps,
John
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] kickstart question

2009-05-04 Thread Jerry Geis
Hi all,

My kickstart section for packages is
%packages
@base-x
@dialup
@gnome-desktop
@base
@development-libs
@core
@x-software-development
@mail-server
@development-tools
@web-server
@graphical-internet
@sound-and-video
@legacy-software-development
@editors
@smb-server
@ftp-server
mesa-libGLU-devel
device-mapper-multipath
xorg-x11-server-Xnest
xorg-x11-server-Xvfb
imake


I do not have package @mysql in the list - yet after install rpm -qa | 
grep -i mysql reports mysql loaded.

how can I stop mysql from loading from anaconda?

Thanks, this is centos 5.3 x86_64

Jerry

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question

2009-05-04 Thread Joshua Baker-LePain
On Mon, 4 May 2009 at 1:28pm, Jerry Geis wrote

 I do not have package @mysql in the list - yet after install rpm -qa |
 grep -i mysql reports mysql loaded.

 how can I stop mysql from loading from anaconda?

Type 'yum remove mysql' and see what depends on it.  I'd guess something 
in the gnome-desktop group is bringing it in as a dependency.

-- 
Joshua Baker-LePain
QB3 Shared Cluster Sysadmin
UCSF
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question

2009-05-04 Thread Jerry Geis

 / I do not have package @mysql in the list - yet after install rpm -qa |
 // grep -i mysql reports mysql loaded.
 //
 // how can I stop mysql from loading from anaconda?
 /
 Type 'yum remove mysql' and see what depends on it.  I'd guess something 
 in the gnome-desktop group is bringing it in as a dependency.

   
I get dovecot and mysqlclient ??

How do I keep it out?

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question

2009-05-04 Thread Joshua Baker-LePain
On Mon, 4 May 2009 at 1:38pm, Jerry Geis wrote


 / I do not have package @mysql in the list - yet after install rpm -qa |
 // grep -i mysql reports mysql loaded.
 //
 // how can I stop mysql from loading from anaconda?
 /
 Type 'yum remove mysql' and see what depends on it.  I'd guess something
 in the gnome-desktop group is bringing it in as a dependency.


 I get dovecot and mysqlclient ??

Keep going up the tree -- try 'yum remove'ing those and see how much gets 
ripped out.  If you're ok with it, then put those packages at the bottom 
of the 'packages section in your ks.cfg with - signs in front of them.

-- 
Joshua Baker-LePain
QB3 Shared Cluster Sysadmin
UCSF
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question

2009-05-04 Thread John R Pierce




Jerry Geis wrote:

  

  / I do not have package @mysql in the list - yet after install "rpm -qa |
  

// grep -i mysql" reports mysql loaded.
//
// how can I stop mysql from loading from anaconda?
/
Type 'yum remove mysql' and see what depends on it.  I'd guess something 
in the gnome-desktop group is bringing it in as a dependency.

  

  
  I get dovecot and mysqlclient ??

How do I keep it out?
  


are you using dovecot (a POP/IMAP mail service) ? if not, remove it
too. ditto mysqlclient, however, removing that likely will complain
about yet more dependencies.




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] kickstart question with 2 network cards

2008-05-19 Thread Jerry Geis

I am using kickstart to automate installs. working nicely.
I now have a box with 2 NIC cards and I am getting prompted for which 
nick to use.


I have a line like:
network --device eth0 --bootproto dhcp --hostname tmp.msgnet.com

in my kickstart.
This line does not seem to be enough to say install with eth0 even 
though there may be an eth1.


How do I tell kickstart to not prompt for which network and just use eth0.

Thanks,

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question with 2 network cards

2008-05-19 Thread Fabian Arrotin

On Mon, 19 May 2008, Jerry Geis wrote:


I am using kickstart to automate installs. working nicely.
I now have a box with 2 NIC cards and I am getting prompted for which nick to 
use.


I have a line like:
network --device eth0 --bootproto dhcp --hostname tmp.msgnet.com

in my kickstart.
This line does not seem to be enough to say install with eth0 even though 
there may be an eth1.


How do I tell kickstart to not prompt for which network and just use eth0.

ksdevice=eth0 .. read 
http://wiki.centos.org/TipsAndTricks/KickStart?highlight=%28ksdevice%29 
for more options ...;


--
Fabian Arrotin [EMAIL PROTECTED]
Internet network currently down, TCP/IP packets delivered now by UPS/Fedex ...
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] kickstart question

2008-04-30 Thread Jerry Geis

I have a couple lines like:

part / --ondisk=sda --fstype ext3 --size=2 --asprimary
part swap  --ondisk=sda   --size=4000  --asprimary
part /home --ondisk=sda --fstype ext3 --size=1 --asprimary --grow

in my kickstart file.

Is there a way to have 1 kickstart file that works for hda and sda both???

So I would like to have 1 kickstart file that works for either a hda 
install or sda install.

Thanks,
Jerry

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question

2008-04-30 Thread Joshua Baker-LePain

On Wed, 30 Apr 2008 at 2:46pm, Jerry Geis wrote


I have a couple lines like:

part / --ondisk=sda --fstype ext3 --size=2 --asprimary
part swap  --ondisk=sda   --size=4000  --asprimary
part /home --ondisk=sda --fstype ext3 --size=1 --asprimary --grow

in my kickstart file.

Is there a way to have 1 kickstart file that works for hda and sda both???


If you only expect to have 1 drive in the systems you're installing, you 
can just leave off the --ondisk=.


--
Joshua Baker-LePain
QB3 Shared Cluster Sysadmin
UCSF
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart question

2008-04-30 Thread Ben

Jerry Geis wrote:

I have a couple lines like:

part / --ondisk=sda --fstype ext3 --size=2 --asprimary
part swap  --ondisk=sda   --size=4000  --asprimary
part /home --ondisk=sda --fstype ext3 --size=1 --asprimary --grow

in my kickstart file.

Is there a way to have 1 kickstart file that works for hda and sda 
both???


So I would like to have 1 kickstart file that works for either a hda 
install or sda install.

Thanks,
Jerry

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Jerry,

see the attached example of my partitioning %pre script i use for all my 
builds.


hope it helps.

Ben
%include /tmp/part-include

%pre

#!/bin/bash

set $(list-harddrives)

#$1 = 1st disk name
#$2 = 1st disk size
#$3 = 2nd disk name
#$4 = 2nd disk size
#so on

let numhd=$#/2

drive1=$1
drive2=$3

# calculate swap
mem=$(grep MemTotal /proc/meminfo | awk '{print $2}')
swap=$(( $mem / 1000 * 2 ))

#Write out partition scheme based on whether there are 1 or 2 hard drives

if [ $numhd == 2 ] ; then
#2 drives
echo # partitioning scheme generated in %pre for 2 drives 
 /tmp/part-include
echo bootloader --location=mbr --driveorder=$drive1,$drive2   
 /tmp/part-include
echo clearpart --all --initlabel  
 /tmp/part-include
echo part raid.11 --size=100 --ondisk=$drive1 
 /tmp/part-include
echo part raid.21 --size=100 --ondisk=$drive2 
 /tmp/part-include
echo part raid.13 --size=100 --ondisk=$drive1 --grow  
 /tmp/part-include
echo part raid.23 --size=100 --ondisk=$drive2 --grow  
 /tmp/part-include

echo raid /boot --fstype ext3 --level=RAID1 --device=md0 raid.11 
raid.21   /tmp/part-include
echo raid pv.01 --level=RAID1 --device=md2 raid.13 raid.23
 /tmp/part-include

echo volgroup vg0 pv.01   
 /tmp/part-include

echo logvol swap --fstype swap --name=swap --vgname=vg0 --size=$swap  
  /tmp/part-include
echo logvol / --fstype ext3 --name=root --vgname=vg0 --size=300 
--grow /tmp/part-include
else
#1 drive
echo # partitioning scheme generated in %pre for 1 drives 
 /tmp/part-include
echo bootloader --location=mbr --driveorder=$drive1   
 /tmp/part-include
echo clearpart --all --initlabel  
 /tmp/part-include
echo part /boot --fstype ext3 --size=100   --ondisk=$drive1   
 /tmp/part-include
echo part swap  --fstype ext3 --size=$swap --ondisk=$drive1   
 /tmp/part-include
echo part / --fstype ext3 --size=300   --ondisk=$drive1  --grow   
 /tmp/part-include
fi

[ -f /tmp/part-include ] || touch /tmp/part-include
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos