InstallServer

From popdata
Jump to: navigation, search

Setup:

apt-get install fai-client fai-doc fai-kernels fai-quickstart fai-server dhcp3-server tftpd-hpa</tt>
cd /home
mv /srv /home
ln -s srv fai
cd /
ln -s /home/srv
  • setup config files in /etc/fai
  • setup nfsroot: fai-setup -v (or copy old one)
  • install/config /etc/dhcp3/dhcpd.conf base:
option domain-name "phlo.ubc.ca";
option domain-name-servers 10.80.20.80;
option subnet-mask 255.255.255.0;
use-host-decl-names on;
server-name install;
filename "fai/pxelinux.0";

default-lease-time 600;
max-lease-time 7200;

subnet 10.99.0.0 netmask 255.255.255.0 {
    range 10.99.0.220;
    range 10.99.0.221;
    range 10.99.0.222;
    range 10.99.0.223;
    range 10.99.0.224;
    range 10.99.0.225;
    option routers 10.99.0.254;
    option ntp-servers ntp.ubc.ca;
    server-name install;
    next-server install;
    option root-path "/srv/fai/nfsroot";
}

host phlo2 {
    hardware ethernet 00:18:fe:31:5a:86;
    fixed-address phlo2;
}
  • add eth0 to INTERFACES in /etc/default/dhcp3-server
  • make sure /var/lib/tftpboot/fai is populated (fai-setup does it)
  • install/config /etc/exports add:
/srv/fai/config 10.99.0.0/255.255.255.0(async,ro,no_subtree_check)
/srv/fai/nfsroot 10.99.0.0/255.255.255.0(async,ro,no_subtree_check,no_root_squash)
  • prepare a machine: fai-chboot -vFI -k "console=ttyS1,38400" phlo7


to rebuild the packages list on cabot

cd /home/www/debian
dpkg-scanpackages packages /dev/null | gzip -9 > packages/Packages.gz

to build kernel packages:

  • make sure that /etc/initramfs-tools/modules has cciss at the bottom
setenv CONCURRENCY_LEVEL 8
cd /usr/src/linux-3.4
make oldconfig
make-kpkg --initrd --append-to-version .20130511 kernel_image
make-kpkg --initrd --append-to-version .20130511 kernel_source
make-kpkg --initrd --append-to-version .20130511 kernel_headers

64 bit linux

  • install ia32-libs to run 32 bit applications
  • add ia32_emul to kernel config

Install a Machine

  • go to hudson2
  • add machine to /etc/hosts
  • add machine to /etc/dhcp/dhcpd.conf (you need the mac address of the ethernet used to install - boot from the network and it will be in the logs on cabot)
  • restart dhcp /etc/init.d/isc-dhcp-server restart
  • connect machine to adm (vlan 89) network
  • on hudson2:
fai-chboot -vFi -u nfs://10.80.90.40/srv/fai/config -k "console=tty0 console=ttyS0,38400 nomodeset" einstein
fai-chboot -vFI -u nfs://10.80.90.40/srv/fai/config einstein  # if not a machine with serial console
  • boot from network, remember to change booting settings to boot from "legacy BIOS"
    • on iLO: vsp
    • at the right time, do "boot from network", F12 is ESCAPE,@
  • change networt port to appropriate place
  • change /etc/network/interfaces to proper static address

</pre>

  • test StorageSpeed : bonnie -f -u sgomes
  • update DNS with new hostname
  • setup syspulse

PROM settings

HP power saving settings

HP Proliant DL360G7 server Kelsey crashed suddenly 6 times with no logs (except HP integrated Lights Out whatsit). Suspect power issue.