• No results found

Procedure to configure a working position as Kickstart server

In document 0029200000000MA07_2-0_ADM-UM (Page 177-181)

Where X is the number of the radar, which name is RAD_X.

MESSAGE DESCRIPTION

5 Kickstart Administration Guide

5.2 Procedure to configure a working position as Kickstart server

To configure a working position as a Kickstart server, it is required that compress the backup folder /KICKSTART_INDIA, and copy the compressed folder to the desire machine.

[root<hostname>]# tar –cf KICKSTART_INDIA.tar /KICKSTART_INDIA [root@<hostname>]# gzip -9 –v KICKSTART_INDIA.tar

[root@<hostname>]# rcp –p KICKSTART_INDIA.tar.gz <hostname>:/

In the destination machine, we need to uncompress the backup, and create the following links.

[root@<hostname>]# gunzip KICKSTART_INDIA.tar.gz [root@<hostname>]# tar -xvf KICKSTART_INDIA.tar

CONFIG.exe kickstart COMMON war BACKUPS war <DD_MM_YY> OPERATIONAL SIMULATION OPERATIONAL SIMULATION To install machines To create backups

File contain machines list

Drivers Folder

Contains Backup & Instalation files

Folder created by CONFIG.exe Folder created by BKP_APP.exe /KS_SERVER /KS_SERVER/CONFIG Backup Date BKP_APP.exe war kickstart_RHEL5_U1

S

SyysstteemmAAddmmiinniissttrraattoorr

U

UsseerrMMaannuuaal l

Use or Disclosure of this information is subject to the restrictions on the tile page of this document

Page A-162

Now, we need to install the services from /KICKSTART_INDIA/CONFIG/SERVICES folder, which kickstart server must required to work. Before this, we must uninstall some preinstalled services.

[root@<HOSTNAME>12 /]# cd /KICKSTART_INDIA/CONFIG/SERVICES/ [root@<HOSTNAME>12 SERVICES]# rpm –qa | grep –i dhclient dhclient-3.0.5-7.el5

[root@<HOSTNAME>12 SERVICES]# rpm –e –-nodeps dhclient-3.0.5-7.el5 [root@<HOSTNAME>12 SERVICES]# rpm –ivh dhcp-3.0.1-58.EL4.x86_64.rpm [root@<HOSTNAME>12 SERVICES]# rpm –ivh dhcp-devel-3.0.1-58.EL4.x86_64.rpm [root@<HOSTNAME>12 SERVICES]# rpm –ivh dhcpv6-0.10-14_EL4.x86_64.rpm

[root@<HOSTNAME>12 SERVICES]# rpm –qa | grep –i tftp tftp-0.42-3.1

[root@<HOSTNAME>12 SERVICES]# rpm –e tftp-0.42-3.1

[root@<HOSTNAME>12 SERVICES]# rpm –ivh tftp-0.39-1.x86_64.rpm

[root@<HOSTNAME>12 SERVICES]# rpm –ivh tftp-server-0.39-1.x86_64.rpm

After installing all the required services, we need to active the following services to be init by default when the machine starts-up.

5.2.1 NFS Service

Entitle the service for the machine is active as a server, sharing the resource /image [root@<HOSTNAME>12 ~]# chkconfig --list | grep -i nfs

nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@<HOSTNAME>12 ~]# chkconfig --level 2345 nfs on

[root@<HOSTNAME>12 ~]# chkconfig --list | grep -i nfs

nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off

5.2.2 DHCP Service

[root@<HOSTNAME>12 ~]# chkconfig --list | grep -i dhcpd

dhcpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@<HOSTNAME>12 ~]# chkconfig --level 0123456 dhcpd on

[root@<HOSTNAME>12 ~]# chkconfig --list | grep -i dhcpd

dhcpd 0:on 1:on 2:on 3:on 4:on 5:on 6:on

5.2.3 TFTP Service

[root@<HOSTNAME>12 ~]# chkconfig --list | grep -i tftp tftp: off

[root@<HOSTNAME>12 ~]# chkconfig --level 0123456 tftp on [root@<HOSTNAME>12 ~]# chkconfig --list | grep -i tftp tftp: on

Above procedures are the steps to prepare a machine as a kicktstart server, but it will not work until we execute the installation application (i.e. CONFIG.exe) for the first time, after this whenever we start the server all the services will be start automatically and all the machines can be installed from this kickstart server, because we already add all the required services in the startup of machine.

S

SyysstteemmAAddmmiinniissttrraattoorr

U

UsseerrMMaannuuaal l

Use or Disclosure of this information is subject to the restrictions on the tile page of this document

Page A-163

5.2.4 Procedure to configure Kickstart to install & create BACkUP of the machines

It is required to perform the following steps in Kickstart server:

5.2.4.1 Edit INDIA configuration file:

Goto the the directory /KICKSTART_INDIA/CONFIG/ and create a new file with name INDIA with the following format:

<MAC ADDRESS> <hostname> <LOCATION>/<ROLE> <S/W> <LANGUAGE> 00:22:64:F9:24:5E <hostname> OPERATIONAL/FDP1 S US

<MAC_ADDRESS> Physical address of eth0 card of the machine. <hostname> Name to give the machine.

<LOCATION> Working area of the machine (OPERATIONAL or SIMULATION). <ROLE> Role of the machine in the network.

<S/W> Type of machine partition (S) Raid (W) non Raid. <LANGUAGE> Language for machine and keyboard.

[root@<hostname>~]# cd /KICKSTART_INDIA/CONFIG/ [root@<hostname>CONFIG]# vi INDIA

00:22:64:F9:24:5E <hostname> OPERATIONAL/FDP1 S US 00:1E:0B:76:93:36 <hostname> OPERATIONAL/FDP2 S US 00:1E:0B:76:A8:9C <hostname> OPERATIONAL/RDP1 S US 00:21:5A:F4:BB:D8 <hostname> OPERATIONAL/RDP2 S US 00:22:64:2A:0B:06 <hostname> OPERATIONAL/RDCU1 S US 00:22:64:F9:25:00 <hostname> OPERATIONAL/RDCU2 S US 00:10:18:48:17:5C <hostname> OPERATIONAL/DRF1 S US 00:10:18:48:17:6A <hostname> OPERATIONAL/DRF2 S US 00:1E:0B:76:A8:E8 <hostname> OPERATIONAL/TDR S US 00:10:18:34:66:16 <hostname> OPERATIONAL/DBM_GTI S US 00:10:18:48:17:A4 <hostname> OPERATIONAL/SDD1 S US 00:10:18:48:18:94 <hostname> OPERATIONAL/SDD2 S US 00:10:18:48:17:7A <hostname> SIMULATION/DBM_GTI W US

This file is necessary for kickstart process to install or take backup of the machines.

5.2.4.2 How to install machines with Kickstart

We have done all the necessary jobs to make a complete and working Kickstart server, and now we have to execute the installation file to install operating system and ATM application from the backup if exist.

[root@<HOSTNAME>12 /]# cd /KICKSTART_INDIA/CONFIG/ [root@<HOSTNAME> CONFIG]# ./CONFIG.exe INDIA

The installation procedure will be under Red Hat Enterprise Linux 5 Update 1 Do you want continue?? (y/n)

S

SyysstteemmAAddmmiinniissttrraattoorr

U

UsseerrMMaannuuaal l

Use or Disclosure of this information is subject to the restrictions on the tile page of this document

Page A-164 Checking INDIA file...

-

--- File INDIA correct

---

File /etc/dhcpd.conf saved as /etc/dhcpd.conf.old

Do you want to do a BACKUP of all POSITIONS before the installation destroy all data on disk? (y/n): (Type [q] to abort the installation)

n

---

The BACKUP file will be installed from <DD_MM_YY> directory if exists the position.

---

Do you want continue with the configuration kickstart? (y/n):

y

Cleaning Files and Directories...

---

Generating dhcpd.conf in <hostname>... ---

--- Generanting ks.cfg for <hostname> ---

Generating pxelinux.cfg for INDIA proyect to india1

--- Generanting ks.cfg for <hostname> ---

Generating pxelinux.cfg for INDIA proyect to <HOSTNAME>2

--- Generanting ks.cfg for <hostname> ---

Generating pxelinux.cfg for INDIA proyect to <HOSTNAME>3

Etc… --- Starting Services... --- --- Starting TFTP service ... --- --- Re-starting NFS service ... --- --- Re-starting dhcpd service ... ---

S

SyysstteemmAAddmmiinniissttrraattoorr

U

UsseerrMMaannuuaal l

Use or Disclosure of this information is subject to the restrictions on the tile page of this document

Page A-165

In document 0029200000000MA07_2-0_ADM-UM (Page 177-181)