Post on 28-Jan-2021
5
InhaltsverzeichnisWoche 1 – Vorschau. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Tag 1 Einführung in Solaris 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191.1 Wie ist Unix entstanden? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201.2 Welche Unix-Zweige gibt es? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211.3 Welche Unix-Varianten gibt es? . . . . . . . . . . . . . . . . . . . . . . . . . . 221.4 Entstehung von Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231.5 Eigenschaften von Unix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251.6 Betriebssystemkomponenten . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Die Aufgaben des Kernels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Die Aufgaben der Shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Die System- und Anwendungsprogramme (Tools) . . . . . . . . . . . 29
1.7 Die Aufgaben der Systemadministration . . . . . . . . . . . . . . . . . . . 301.8 Hilfe zu Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Das AnswerBook. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33Websites im Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33Die Manual Pages von Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
1.9 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361.10 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361.11 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Tag 2 Installation von Solaris 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392.1 Installationsvorbereitungen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Installationsdaten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40Installationsumfang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41Partitionierung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
2.2 Installationsarten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45Installations-CD-ROMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45Installationsarten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45Systemtypen: Server, Client und Standalone-System . . . . . . . . . 47
2.3 Installation auf einem Sparc-System . . . . . . . . . . . . . . . . . . . . . . 482.4 Installation auf einem INTEL-Rechner . . . . . . . . . . . . . . . . . . . 54
6
Inhaltsverzeichnis
2.5 Flashinstallation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58Voraussetzungen und Einsatzmöglichkeiten . . . . . . . . . . . . . . . 58Ein Flasharchiv mit Befehlen administrieren . . . . . . . . . . . . . . . 59Ein Flasharchiv verwenden . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
2.6 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642.7 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642.8 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Tag 3 Wichtige Solaris-Befehle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673.1 Aufbau von Unix-Befehlen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683.2 Namenskonventionen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693.3 Hilfebefehle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 703.4 Systeminformationsbefehle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 713.5 Befehle für die Verzeichnisverwaltung. . . . . . . . . . . . . . . . . . . . . 803.6 Befehle für die Datei- und Verzeichnisverwaltung . . . . . . . . . . . 833.7 Befehle für die Dateiverwaltung . . . . . . . . . . . . . . . . . . . . . . . . . 86
Dateien anzeigen und bearbeiten . . . . . . . . . . . . . . . . . . . . . . . . 86Mit Dateien arbeiten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
3.8 Suchbefehle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 963.9 Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Hard Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102Symbolische Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
3.10 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1043.11 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1043.12 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Tag 4 Der OpenBoot-PROM von Sparc-Systemen . . . . . . . . . . . . . . . . . . . . 1074.1 Der OpenBoot-PROM (OPB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
In den OpenBoot-PROM verzweigen . . . . . . . . . . . . . . . . . . . . . 109Allgemeine OpenBoot-PROM-Befehle. . . . . . . . . . . . . . . . . . . . 110Das System hochfahren und ausschalten . . . . . . . . . . . . . . . . . . 113Hardwarekonfiguration anzeigen, überprüfen und definieren . . 115Variablen des OpenBoot-PROM. . . . . . . . . . . . . . . . . . . . . . . . . 124
4.2 NVRAM-Parameter mit Hilfe des Befehls eeprom verwalten. . . 1294.3 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1304.4 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1314.5 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Inhaltsverzeichnis
7
Tag 5 Das System starten und anhalten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1335.1 Der Bootprozess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1345.2 Bootvorgang beim INTEL-Rechner . . . . . . . . . . . . . . . . . . . . . . 1365.3 Der Kernel und die Kernelmodule . . . . . . . . . . . . . . . . . . . . . . . 137
Die Kernelmodule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139Die Datei /etc/system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
5.4 Die Runlevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1445.5 Der Prozess init und die Run Control-Skripte . . . . . . . . . . . . . . 146
Die Datei /etc/inittab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147Die Run Control-Skripte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
5.6 Befehle zum Starten und Anhalten des Systems. . . . . . . . . . . . . 1575.7 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1605.8 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1605.9 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Tag 6 Zugriffsrechte unter Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1636.1 Zugriffsrechte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Benutzerkategorien . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164Zugriffsrechte und ihre Bedeutung . . . . . . . . . . . . . . . . . . . . . . . 166Überprüfen der Berechtigungen . . . . . . . . . . . . . . . . . . . . . . . . . 167
6.2 Setzen von Zugriffsrechten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168Symbolische Methode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168Oktalmethode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169Der Filter umask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
6.3 Befehle zur Änderung von Rechten, Besitzer und Gruppe . . . . 1756.4 Spezielle Zugriffsrechte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1786.5 Access Control Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1836.6 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1916.7 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1926.8 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
Tag 7 Shells und Shellprogrammierung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1957.1 Was ist eine Shell? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1967.2 Arten von Shells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1987.3 Sonderzeichen der Shells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Metazeichen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200Jobkontrolle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
8
Inhaltsverzeichnis
Ein-/Ausgabeumlenkung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210Pipe-Mechanismus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213Gesamtüberblick über die Sonderzeichen . . . . . . . . . . . . . . . . . 214
7.4 Grundlagen der Shellskriptprogrammierung . . . . . . . . . . . . . . . 216Variablen der Shellskriptprogrammierung . . . . . . . . . . . . . . . . . 217Bedingungsabfragen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219Ein Shellskriptbeispiel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
7.5 Die verschiedenen Shells unter Solaris 9 . . . . . . . . . . . . . . . . . . 225Die Bourne-Shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225Die Korn-Shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239Die C-Shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
7.6 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2587.7 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2597.8 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Woche 2 – Vorschau. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Tag 8 Benutzerverwaltung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2658.1 Grundlagen der Systemsicherheit . . . . . . . . . . . . . . . . . . . . . . . . 2668.2 Gruppen verwalten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2678.3 Benutzer verwalten. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2708.4 Weitere Befehle zur Benutzerverwaltung . . . . . . . . . . . . . . . . . . 2818.5 Weitere Dateien zur Systemsicherheit . . . . . . . . . . . . . . . . . . . . . 2838.6 Benutzerquoten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2888.7 Role Based Access Control (RBAC) . . . . . . . . . . . . . . . . . . . . . . 295
Die RBAC-Dateien . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296Die RBAC-Befehle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
8.8 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3048.9 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3058.10 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
Tag 9 Prozessverwaltung. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3079.1 Aufbau und Funktion von Prozessen. . . . . . . . . . . . . . . . . . . . . . 308
Aufbau von Prozessen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308Prozesserzeugung. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309Multitasking und Multithreading . . . . . . . . . . . . . . . . . . . . . . . . 310Scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
Inhaltsverzeichnis
9
9.2 Arten von Prozessen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312Prozessklassen und Prioritätsverwaltung . . . . . . . . . . . . . . . . . . . 312Daemonen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
9.3 Befehle für die Prozessverwaltung . . . . . . . . . . . . . . . . . . . . . . . . 3189.4 Automatisches Starten von Prozessen . . . . . . . . . . . . . . . . . . . . . 333
Einmaliges Einplanen von Prozessen . . . . . . . . . . . . . . . . . . . . . 333Wiederholtes Einplanen von Prozessen . . . . . . . . . . . . . . . . . . . 336
9.5 Interprozesskommunikation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340Signale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340Named Pipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343Sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343Doors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344Streams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344ToolTalk. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345Interprozesskommunikation (Inter Process Communication – IPC) . . . . . . . . . . . . . . . . . . . . 346
9.6 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3489.7 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3499.8 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
Tag 10 Gerätekonfiguration unter Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35110.1 Gerätedateien . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352
Physikalische Gerätenamen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352Logische Gerätenamen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354Instanznamen und BSD-Namen . . . . . . . . . . . . . . . . . . . . . . . . . 356Geräte auflisten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
10.2 Geräteverzeichnisse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36010.3 Neue Geräte anschließen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36210.4 Festplatten konfigurieren . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
Hardwareaufbau . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366Festplattencontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367Festplattenpartitionen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
10.5 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38110.6 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38210.7 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
Tag 11 Dateisysteme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38511.1 Der Verzeichnisbaum von Solaris . . . . . . . . . . . . . . . . . . . . . . . . 38611.2 Arten von Dateisystemen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
Plattenbasierte Dateisysteme . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390Netzwerk- oder verteilte Dateisysteme. . . . . . . . . . . . . . . . . . . . . 391Pseudo-Dateisysteme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
10
Inhaltsverzeichnis
11.3 Das Dateisystem ufs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393Der Aufbau von ufs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393Die verschiedenen Dateitypen und ihre Inodes . . . . . . . . . . . . . 398
11.4 Dateisysteme anlegen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39911.5 Mounten von Dateisystemen . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
Die Datei /etc/mnttab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405Die Datei /etc/vfstab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406Befehle zum Mounten. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408
11.6 Überprüfen von Dateisystemen . . . . . . . . . . . . . . . . . . . . . . . . . . 415Befehle zum Überprüfen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415Weitere Befehle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
11.7 Volume Management von Solaris . . . . . . . . . . . . . . . . . . . . . . . . 422Umgang mit CD-ROMs und Disketten . . . . . . . . . . . . . . . . . . . 422Befehle und Dateien des Volume Managements . . . . . . . . . . . . 422
11.8 Swaping unter Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425Swaping und Paging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425Der Befehl swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
11.9 RAID-Systeme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427Grundlagen von RAID. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427Solaris Volume Manager-Software . . . . . . . . . . . . . . . . . . . . . . . 432Die Meta-Befehle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
11.10 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44911.11 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45011.12 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451
Tag 12 Systemkonfiguration und -überwachung . . . . . . . . . . . . . . . . . . . . . . . 45312.1 Der Kernel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454
Die Aufgaben des Kernels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454Kernelmodule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455Kernelvariablen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456Befehle zur Anzeige von Kernelvariablen . . . . . . . . . . . . . . . . . . 460Befehle zur Kernelkonfiguration . . . . . . . . . . . . . . . . . . . . . . . . . 463
12.2 Befehle und Dateien zur Systemkonfiguration . . . . . . . . . . . . . . 46512.3 Verwaltung von Crash-Dumps. . . . . . . . . . . . . . . . . . . . . . . . . . . 46912.4 Tools zur Systemüberprüfung . . . . . . . . . . . . . . . . . . . . . . . . . . . 47412.5 Systemmeldungen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47812.6 Systemüberwachung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48312.7 Systemabrechnung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488
Systemabrechnungsbefehle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489Systemabrechnung mit Hilfe von crontab. . . . . . . . . . . . . . . . . . 492
Inhaltsverzeichnis
11
12.8 Powermanagement von Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . 493Befehle und Dateien des Powermanagements . . . . . . . . . . . . . . 493
12.9 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49412.10 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49512.11 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495
Tag 13 Softwareinstallation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49713.1 Softwarepakete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498
Befehle der Paketverwaltung . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498Dateien der Paketverwaltung . . . . . . . . . . . . . . . . . . . . . . . . . . . . 510
13.2 Patchverwaltung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513Allgemeines zu Patches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513Befehle und Dateien der Patchverwaltung . . . . . . . . . . . . . . . . . 515
13.3 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51813.4 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51813.5 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
Tag 14 Datensicherung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52114.1 Allgemeines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52214.2 Medien für Datensicherungen . . . . . . . . . . . . . . . . . . . . . . . . . . 523
Bandgeräte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523Bezeichnungen von Bandgeräten . . . . . . . . . . . . . . . . . . . . . . . . 524
14.3 Strategien . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525Sicherungsarten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525Sicherungsstrategien . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
14.4 Befehle zur Datensicherung . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53014.5 Befehle und Dateien zur Dateisystemsicherung . . . . . . . . . . . . . 543
Wiederherstellung von Dateisystemen . . . . . . . . . . . . . . . . . . . . 54914.6 UFS-Snapshot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551
Überblick über UFS-Snapshot. . . . . . . . . . . . . . . . . . . . . . . . . . . 551Anlegen eines UFS-Snapshots . . . . . . . . . . . . . . . . . . . . . . . . . . . 554Anzeige von Informationen zu UFS-Snapshots . . . . . . . . . . . . . 554Löschen eines UFS-Snapshots. . . . . . . . . . . . . . . . . . . . . . . . . . . 555Einen UFS-Snapshot sichern . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
14.7 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55814.8 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55814.9 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 559
12
Inhaltsverzeichnis
Woche 3 – Vorschau. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561
Tag 15 Drucker- und Terminalverwaltung . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56315.1 Druckerverwaltung. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564
Arbeitsweise der Druckerverwaltung . . . . . . . . . . . . . . . . . . . . . . 564Druckerarten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566Druckerkonfiguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566Befehle zur Druckerverwaltung. . . . . . . . . . . . . . . . . . . . . . . . . . 567Konfigurationsdateien der Druckerverwaltung . . . . . . . . . . . . . . 581
15.2 Terminalverwaltung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585Das Service Access Facility-System . . . . . . . . . . . . . . . . . . . . . . . 585Portmonitore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585Befehle zur Terminalverwaltung. . . . . . . . . . . . . . . . . . . . . . . . . 586Weitere Befehle zur Terminalverwaltung . . . . . . . . . . . . . . . . . . 589Dateien der Terminalinstallation . . . . . . . . . . . . . . . . . . . . . . . . 592
15.3 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59415.4 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59415.5 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595
Tag 16 Netzwerkeinführung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59716.1 Netzwerkgrundlagen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598
Netzwerkarten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598Netzwerkkomponenten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599Das OSI-Referenzmodell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600Aufbau von IP-Adressen und Subnetting. . . . . . . . . . . . . . . . . . . 602
16.2 Netzwerkkonfigurationsdateien . . . . . . . . . . . . . . . . . . . . . . . . . . 60316.3 Netzwerkprozesse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61416.4 Netzwerkbefehle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62016.5 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64016.6 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64016.7 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641
Tag 17 Weiterführende Netzwerktechniken und NFS (Network Filesystem) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64317.1 Trusted Host-Umgebung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64417.2 Routing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
Routingprozesse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648Der Befehl route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649
17.3 Überblick über NFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65117.4 NFS-Prozesse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652
Inhaltsverzeichnis
13
17.5 Konfiguration eines NFS-Servers . . . . . . . . . . . . . . . . . . . . . . . . 655Befehle zur Konfiguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655Dateien zur Konfiguration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
17.6 Konfiguration eines NFS-Clients . . . . . . . . . . . . . . . . . . . . . . . . 663Überprüfen von NFS-Funktionen. . . . . . . . . . . . . . . . . . . . . . . . 666
17.7 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66717.8 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66717.9 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668
Tag 18 Der Automounter und das Dateisystem cachefs . . . . . . . . . . . . . . . . . 66918.1 Funktion und Zugriff des Automounters . . . . . . . . . . . . . . . . . . . 67018.2 Das Dateisystem autofs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67118.3 Der Prozess automountd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67218.4 Die Befehle des Automounters . . . . . . . . . . . . . . . . . . . . . . . . . . 67318.5 Die Konfigurationsdateien des Automounters . . . . . . . . . . . . . . 674
Das Master-Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674Konfigurationsmöglichkeiten . . . . . . . . . . . . . . . . . . . . . . . . . . . 675Das Direct-Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677Das Indirect-Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677Build-in-Maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 678Executable-Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 678
18.6 Das Dateisystem cachefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679Die Verwaltung des Dateisystems cachefs. . . . . . . . . . . . . . . . . . 680Das Dateisystem cachefs und Auto-Clients . . . . . . . . . . . . . . . . . 686
18.7 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68618.8 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68618.9 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687
Tag 19 Autoinstallation (Jumpstart) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68919.1 Voraussetzungen und Rechnertypen . . . . . . . . . . . . . . . . . . . . . . 69019.2 Regelwerk erstellen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 691
Die Datei rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 692Die class-Datei . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 696Start- und Endeskripte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 701
19.3 Autoinstallation testen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 701Die Syntaxprüfung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 702Die Semantikprüfung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 702
14
Inhaltsverzeichnis
19.4 Konfiguration des Installationsservers . . . . . . . . . . . . . . . . . . . . . 704Die Datei sysidcfg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 704Netzwerk-Autoinstallation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 705Lokale Autoinstallation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 706
19.5 Konfiguration des Install-Clients. . . . . . . . . . . . . . . . . . . . . . . . . 70719.6 Autoinstallation starten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70919.7 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70919.8 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71019.9 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 710
Tag 20 Namensdienste . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71320.1 Einführung. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 714
Arten von Namensdiensten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 715Der Befehl getent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 715Die Datei /etc/nsswitch.conf . . . . . . . . . . . . . . . . . . . . . . . . . . . . 716Der Name Service Cache Daemon (nscd) . . . . . . . . . . . . . . . . . 719
20.2 Network Information Service (NIS) . . . . . . . . . . . . . . . . . . . . . . 723Überblick über NIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 723NIS-Dateien und NIS-Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . 726NIS-Konfigurationsdateien . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 728NIS-Befehle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 732NIS-Daemonen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 737Konfiguration des NIS-Master-Servers . . . . . . . . . . . . . . . . . . . . 739Konfiguration eines NIS-Slave-Servers . . . . . . . . . . . . . . . . . . . . 741NIS-Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 742
20.3 Network Information Service Plus (NIS+) . . . . . . . . . . . . . . . . . 743Aufbau und Namensraum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 743Tables von NIS+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 744
20.4 Domain Name Service (DNS) . . . . . . . . . . . . . . . . . . . . . . . . . . 747Der Befehl nslookup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 748Einen DNS-Client einrichten . . . . . . . . . . . . . . . . . . . . . . . . . . . 752
20.5 Lightweight Directory Access Protocol (LDAP) . . . . . . . . . . . . . 755Überblick und Einsatzmöglichkeiten . . . . . . . . . . . . . . . . . . . . . 755Die Datei /etc/nsswitch.ldap . . . . . . . . . . . . . . . . . . . . . . . . . . . . 756LDAP-Client konfigurieren . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757
20.6 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76220.7 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76320.8 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 763
Inhaltsverzeichnis
15
Tag 21 Solaris Management Console (SMC). . . . . . . . . . . . . . . . . . . . . . . . . . 76521.1 Die Solaris Management Console anwenden. . . . . . . . . . . . . . . 766
Überblick über die SMC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 766Den SMC-Server starten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767Die SMC starten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767Die Kategorie System Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . 769Die Kategorie System Configuration. . . . . . . . . . . . . . . . . . . . . . 775Die Kategorie Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 798Die Kategorie Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 800Die Kategorie Devices and Hardware . . . . . . . . . . . . . . . . . . . . . 815
21.2 Die Solaris Management Console anpassen . . . . . . . . . . . . . . . . 817Den SMC Toolbox-Editor starten . . . . . . . . . . . . . . . . . . . . . . . . 817Eine Toolbox-URL hinzufügen. . . . . . . . . . . . . . . . . . . . . . . . . . 817Ein Tool hinzufügen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821Einen Ordner hinzufügen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 822Eine Legacy Application hinzufügen . . . . . . . . . . . . . . . . . . . . . 823
21.3 Zusammenfassung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82621.4 F&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82721.5 Übungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 827
Anhang A Installation von Free Solaris 9 für Intel-PCs . . . . . . . . . . . . . . . . . . . . 829A.1 Voraussetzungen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 830
Hardware-Anforderungen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 830Installationsmedien . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831
A.2 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831Partitionen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831Booten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831Installationsvorgang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 832
Anhang B Glossar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837
Stichwortverzeichnis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849
Solaris 9 Systemadministration in 21 TagenInhaltsverzeichnisWoche 1 – VorschauTag 1 Einführung in Solaris 9Tag 2 Installation von Solaris 9Tag 3 Wichtige Solaris-BefehleTag 4 Der OpenBoot-PROM von Sparc-SystemenTag 5 Das System starten und anhaltenTag 6 Zugriffsrechte unter SolarisTag 7 Shells und Shellprogrammierung
Woche 2 – VorschauTag 8 BenutzerverwaltungTag 9 ProzessverwaltungTag 10 Gerätekonfiguration unter SolarisTag 11 DateisystemeTag 12 Systemkonfiguration und -überwachungTag 13 SoftwareinstallationTag 14 Datensicherung
Woche 3 – VorschauTag 15 Drucker- und TerminalverwaltungTag 16 NetzwerkeinführungTag 17 Weiterführende Netzwerktechniken und NFS (Network Filesystem)Tag 18 Der Automounter und das Dateisystem cachefsTag 19 Autoinstallation (Jumpstart)Tag 20 NamensdiensteTag 21 Solaris Management Console (SMC).
Anhang A Installation von Free Solaris 9 für Intel-PCsAnhang B GlossarStichwortverzeichnis
Ins Internet: Weitere Infos zum Buch, Downloads, etc.