Die Präsentation wird geladen. Bitte warten

Die Präsentation wird geladen. Bitte warten

FAI-Komponenten 1. NFSROOT 2. FAI config space. NFSRoot ● Verzeichnis: /srv/fai/nfsroot/ /live/filesystem.dir/ ● wird vom Kernel geladen ● Root-Verzeichnis.

Ähnliche Präsentationen


Präsentation zum Thema: "FAI-Komponenten 1. NFSROOT 2. FAI config space. NFSRoot ● Verzeichnis: /srv/fai/nfsroot/ /live/filesystem.dir/ ● wird vom Kernel geladen ● Root-Verzeichnis."—  Präsentation transkript:

1 FAI-Komponenten 1. NFSROOT 2. FAI config space

2 NFSRoot ● Verzeichnis: /srv/fai/nfsroot/ /live/filesystem.dir/ ● wird vom Kernel geladen ● Root-Verzeichnis waehrend Installation ● read-only NFSRoot Erstellen eines NFSRoot FAI config spaceAufbau config space Klassen Scripte

3 NFSRoot ● Verzeichnis der Konigurationsdateien: ● standardmaessig: /etc/fai/ ● DESY: /srv/fai/etc/fai- / ● Dateien: ● make_fai_nfsroot.conf ● fai.conf ● Befehl: ● fai-setup ● make_fai_nfsroot NFSRoot Erstellen eines NFSRoot FAI config spaceAufbau config space Klassen Scripte

4 FAI config space ● Verzeichnis: ● /srv/fai/config/ ● Inhalt: – Klassen – Konfigurationsscripte des zu installierenden Systems ● mount vom nfsroot per nfs ● weitere Moeglichkeiten: z.B. http, svn,... ● Ziel: /srv/fai/config/ NFSRoot Erstellen eines NFSRoot FAI config spaceAufbau config space Klassen Scripte

5 FAI config space ● Standardverzeichnisse ● class/ ● debconf/ ● disk_config/ ● files/ ● hooks/ ● package_config/ ● scripts/ ● DESY Erweiterungen ● bin/ ● doc/ ● root_login/ ● savelog/ ● README.classes NFSRoot Erstellen eines NFSRoot FAI config spaceAufbau config space Klassen Scripte

6 FAI config space ● Klassen: ● Ein Rechner kann zu >= 1 Klasse gehoeren ● Liste aller Klassen: FAI_Classes – /var/log/fai – /var/lib/fai ● Klassennamen: [0-9A-Z_] oder Hostname ● Klassenvariablen:.var ● Vordefinierte: DEFAULT, Hostname, LAST NFSRoot Erstellen eines NFSRootFAI config space Aufbau config space Klassen Scripte

7 FAI config space NFSRoot Erstellen eines NFSRootFAI config space Aufbau config space Klassen Scripte root@it-dns-lb04:/var/log/fai# cat FAI_CLASSES DEFAULT LINUX PXE AMD64 AMD64_SERVER UBU104-64 DELL GRUB NTP EXIM4 MONIT HOBBIT BASE NIS LADM APACHE ZDV it-dns-lb04 LAST root@it-dns-lb04:/var/log/fai#

8 FAI config space ● Scripte ● Implementiert nach Klassen ● Sortiert nach Priorisierung ● verschied. Scriptsprachen: – SHELL, Cfengine, Perl,... ● FAI-Befehle: – fcopy, ainsl, ifclass ● Ordnerstruktur beachten – FAI-Client waehrend Installation unter /target im NFSRoot NFSRoot Erstellen eines NFSRoot FAI config spaceAufbau config space Klassen Scripte

9 FAI config space ● Beispiel: NFSRoot Erstellen eines NFSRoot FAI config spaceAufbau config space Klassen Scripte #! /bin/bash # vim:ai:et:si:sw=4:ts=4 nError=0 ; trap 'nError=$((nError+1))' ERR fcopy - /usr/sbin/cfagent -D "${cfclasses}" -Khf-<<EOF control: Klasse:: actionsequence = () Actionsequence: Klasse: {${target}/....} EOF ainsl ${target}/ „ “ exit ${nError}

10 Fragen hierzu?

11 3. Installationsablauf 1. wboom Registration 2. DHCP / PXE 3. FAI

12 wboom Registration ● Moeglichkeiten: CLI (regwb) oder Web-GUI ● Host-Informationen (Name, IP, MAC,...) ● Services: – pxe, ladm – ubu104/ubu104-64 – weitere Klassen Wboom Registration DHCP/PXEFAI Installation


Herunterladen ppt "FAI-Komponenten 1. NFSROOT 2. FAI config space. NFSRoot ● Verzeichnis: /srv/fai/nfsroot/ /live/filesystem.dir/ ● wird vom Kernel geladen ● Root-Verzeichnis."

Ähnliche Präsentationen


Google-Anzeigen