Red Hat LINUX VIRTUAL SERVER 4.7 - ADMINISTRATION Spécifications Page 31

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 40
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 30
BOOTPROTO=${BPROTO[${i}]}
IPADDR=${IPADDR[${i}]}
PREFIX=${PREFIX[${i}]}
HWADDR=${HWADDR[${i}]}
ONBOOT=${bootstart}
TYPE=Ethernet
EOF
echo "# Network card ${i}" >> /etc/udev/rules.d/70-persistent-net.rules
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"$
{HWADDR[${i}]}\", ATTR{type}==\"1\", KERNEL==\"eth"'*'"\", NAME=\"eth${i}\""
>> /etc/udev/rules.d/70-persistent-net.rules
echo "" >> /etc/udev/rules.d/70-persistent-net.rules
i=$(expr ${i} + 1);
done
cp /etc/udev/rules.d/70-persistent-net.rules /root
if [ ${max} -eq 0 ]; then
# Define a default dhcp network interface
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 <<EOF
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
EOF
fi
# Part 4: Define the hostname. This is just for testing and should be resolved
using DNS.
hostname $(echo ${HOSTNAME})
cat > /etc/sysconfig/network <<EOF
NETWORKING=yes
HOSTNAME=${HOSTNAME}
GATEWAY=${GATEWAY}
DOMAIN=${DOMAIN}
DNS1=${DNS1}
DNS2=${DNS2}
EOF
# Part 5: Also, extend the file /etc/hosts. Without the extension, the SAP HANA
installer will lock up. !!!!!!!!!! The index of IPADDR[4] to be modified by
OEM. !!!!!!!!!!
DOMEXT=$(echo ${DOMAIN} | cut -d, -f1)
cat >> /etc/hosts <<EOF
${IPADDR} ${HOSTNAME}.${DOMEXT} ${HOSTNAME}
EOF
%end
# ********** Post-Installation 6: Configuration of the network time protocol
(NTP) **********
%post --interpreter /bin/bash
# Part 1: Set the NTP server. !!!!!!!!!! To be modified by OEM. !!!!!!!!!!
NTP=ntp.example.com
# Part 2: Write the file /etc/ntp.conf
cat > /etc/ntp.conf << EOF
driftfile /var/lib/ntp/drift
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1
server ${NTP}
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
EOF
# Part 3: Set the time manually
service ntpd stop 2>/dev/null 1>&2
ntpdate ${NTP}
service ntpd start
%end
# ********** Post-Installation 7: Create a symbolic link because hdbnsutil
crashes otherwise **********
%post --interpreter /bin/bash
ln -s /usr/lib64/libssl.so.1.0.1e /usr/lib64/libssl.so.1.0.1
Red Hat Enterprise Linux (RHEL) 6.5 Configuration Guide for SAP HANA
Appendix
P U B L I C
© 2015 SAP SE or an SAP affiliate company. All rights reserved.
31
Vue de la page 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 39 40

Commentaires sur ces manuels

Pas de commentaire