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

  • 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 28
# Additional packages from the SAP repository
cpufrequtils
compat-sap-c++
unixODBC
# ********** Post-Installation 1: Modify grub.conf, install grub and custom xfs
format for HANA_DISK **********
%post --interpreter /bin/bash
# Part 1: Modify grub.conf
sed -i 's/splashimage=(hd1,0)/splashimage=(hd0,0)/g' /boot/grub/grub.conf
sed -i 's/root (hd1,0)/root (hd0,0)/g' /boot/grub/grub.conf
# Part 2: Install the boot loader properly. Workaround for firmare->grub->kernel
DEVICE=$(echo '/dev/'$(ls -l /dev/disk/by-path | grep pci-0000:21:00.0-
scsi-0:2:0:0 | grep -E -v '[0-9]$' | cut -d/ -f3))
/sbin/grub-install $DEVICE
# Part 3: Format HANA_DISK with XFS pptions for performance again, xfsprogs
needed
mount /hana/disk 2>&1 >> /tmp/xfs.log
DEVICE=$(mount | grep \/hana\/disk | cut -d " " -f1)
umount $DEVICE
OLD_UUID=$(blkid $DEVICE | cut -d= -f3 | sed 's/\"//g' | cut -d" " -f1)
/sbin/mkfs.xfs -f -d sunit=2048,swidth=14336,agcount=24 -L HANA_DISK $DEVICE
2>&1 >> /tmp/xfs.log
NEW_UUID=$(blkid $DEVICE | cut -d= -f3 | sed 's/\"//g' | cut -d" " -f1)
# Change FSTAB options for this partition
sed -i "s/$OLD_UUID/$NEW_UUID/g" /etc/fstab
mount /hana/disk 2>&1 >> /tmp/xfs.log
mkdir -p /hana/disk/shared 2>&1 >> /tmp/xfs.log
mkdir -p /hana/disk/data 2>&1 >> /tmp/xfs.log
ln -sf /hana/disk/shared /hana/shared 2>&1 >> /tmp/xfs.log
ln -sf /hana/disk/data /hana/data 2>&1 >> /tmp/xfs.log
TEMP=$(mktemp)
cat /etc/fstab | sed 's/LABEL=HANA_BACKUP/#LABEL=HANA_BACKUP/g' > $TEMP
cp -f $TEMP /etc/fstab
rm ${TEMP}
%end
# ********** Post-Installation 2: Custom code for the OS configuration and SAP
HANA instllation **********
%post --interpreter /bin/bash
chkconfig kdump off
chkconfig rhsmcertd off
chkconfig NetworkManager off
chkconfig network on
chkconfig ntpd on
echo timehost.example.com >> /etc/ntp/step-tickers
chkconfig ntpdate on
%end
# ********** Post-Installation 3: Install the repos required. We do not have a
Satellite Server here. ***********
%post --interpreter /bin/bash
# Set the repositories to point to the PXE-server
# Use the ones from Red Hat, but cleanup first
yum clean all
rm -f /etc/yum.repos.d/*.repo
# Part 1: The machine where the RPMs are stored. !!!!!!!!!! To be modified by
OEM. !!!!!!!!!!
SERVER=192.168.0.100
# Part 2: Install the repo files
cat > /etc/yum.repos.d/rhel.repo << EOF
[rhel]
name=Red Hat Enterprise Linux $releasever - $basearch
baseurl=ftp://${SERVER}/pub/rhel6/dvd
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-sfs]
name=Red Hat Enterprise Linux - Scalable File Systems
baseurl=ftp://${SERVER}/pub/rhel6/sfs
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.
29
Vue de la page 28
1 2 ... 24 25 26 27 28 29 30 31 32 33 34 ... 39 40

Commentaires sur ces manuels

Pas de commentaire