Under Construction
Operation "define": Erzeugen eines Nicht-/usr SPOTs
Um einen Nicht-/usr SPOT zu erzeugen, wird eine Quelle (Attribut source) mit den notwendigen Dateien benötigt. Möglich sind die folgenden Quellen:
- Ein ISO Installations-Image.
- Eine lpp_source NIM-Ressource mit allen Support Images (simages=yes).
- Eine mksysb NIM-Ressource.
- Eine vorhandene spot NIM-Ressource.
Zum Erzeugen einer Nicht-/usr spot Ressource müssen mindestens die drei Attribute server, location und source angegeben werden. Beim Attribut location muss das Vaterverzeichnis angegeben werden, indem die spot NIM-Ressource angelegt werden soll, nicht das Verzeichnis selbst. Dieses wird automatisch im angegebenen Vaterverzeichnis angelegt und heißt immer wie die spot NIM-Ressource!
Es werden einige weitere optionale Attribute unterstützt:
aixnim # lsnim -q define -t spot
the following attributes are required:
-a server=<value>
-a location=<value>
the following attributes are optional:
-a source=<value>
-a installp_flags=<value>
-a auto_expand=<value>
-a comments=<value>
-a force=<value>
-a verbose=<value>
-a debug=<value>
-a show_progress=<value>
-a nfs_vers=<value>
-a nfs_sec=<value>
aixnim #
Das Attribut show_progress hat standardmäßig den Wert „yes“. Um keine Ausgaben über den Fortschritt der Operation zu bekommen, z.B. bei Verwendung in Skripten, kann „-a show_progress=no“ verwendet werden.
Das Attribut auto_expand hat ebenfalls standardmäßig den Wert „yes“. Ist im Dateisystem in dem der neue SPOT angelegt wird nicht ausreichend freie Kapazität verfügbar, dann wird das Dateisystem automatisch vergrößért. Das funktioniert natürlich nur wenn noch genügend freie Kapazität in der zugehörigen Volume Group verfügbar ist. Soll keine automatische Dateisystem-Erweiterung erfolgen, dann muss das Attribut auf „no“ gesetzt werden.
Beispiel 1: Erzeugen eines SPOT aus einem Installations-ISO-Image.
Wir haben das Installations-ISO-Image AIX_v7.3_Install_7300-02-01-2346_flash_112023_LCD8265304.iso von der IBM Website heruntergeladen und auf unserem NIM-Master im Verzeichnis /export/nim/tmp abgelegt. Das ISO-Image kann direkt als Quelle (source) angegeben werden, NIM führt den notwendigen loomount selber durch.
Um einen SPOT aus diesem ISO-Image zu erzeugen, kann das folgende Kommando verwendet werden:
aixnim # nim -o define -t spot -a server=master -a location=/export/nim/spots -a source=/export/nim/tmp/AIX_v7.3_Install_7300-02-01-2346_flash_112023_LCD8265304.iso aix730201spot
Creating SPOT in "/export/nim/spots" on machine "master" from "/export/nim/tmp/AIX_v7.3_Install_7300-02-01-2346_flash_112023_LCD8265304.iso" ...
Restoring files from BOS image. This may take several minutes ...
Installing filesets ...
Be sure to check the output from the SPOT installation
to verify that all the expected software was successfully
installed. You can use the NIM "showlog" operation to
view the installation log file for the SPOT.
+-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and will be installed.
…
installp: APPLYING software for:
devices.common.IBM.soe.rte 7.3.1.0
. . . . . << Copyright notice for devices.common.IBM.soe >> . . . . . . .
Licensed Materials - Property of IBM
5765CD300
Copyright International Business Machines Corp. 2019, 2022
All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for devices.common.IBM.soe >>. . . .
Filesets processed: 152 of 445 (Total time: 1 mins 26 secs).
…
bos.net.tcp.snmpd 7.3.2.0 USR APPLY SUCCESS
bos.net.tcp.snmpd 7.3.2.0 ROOT APPLY SUCCESS
installp: * * * A T T E N T I O N ! ! !
Software changes processed during this session require
any diskless/dataless clients to which this SPOT is
currently allocated to be rebooted.
File /etc/group has been modified.
File /etc/inittab has been modified.
File /etc/passwd has been modified.
File /etc/vfs has been modified.
One or more of the files listed in /etc/check_config.files have changed.
See /var/adm/ras/config.diff for details.
Checking filesets and network boot images for SPOT "aix730201spot".
This may take several minutes ...
aixnim #
Hinweis: Die Erzeugung des SPOT hat ca 10 Minuten gedauert.
Beispiel 2: Erzeugen eines SPOT mittels einer lpp_source NIM-Ressource.
In den meisten Fällen wird ein SPOT vermutlich aus einer vollständigen (simages=yes) lpp_source erzeugt, wie im folgenden Beispiel:
aixnim # nim -o define -t spot -a server=master -a location=/export/nim/spots -a source=aix730201lpp -a nfs_vers=4 aix730201spot
Creating SPOT in "/export/nim/spots" on machine "master" from "aix730201lpp" ...
Restoring files from BOS image. This may take several minutes ...
Installing filesets ...
Be sure to check the output from the SPOT installation
to verify that all the expected software was successfully
installed. You can use the NIM "showlog" operation to
view the installation log file for the SPOT.
+-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and will be installed.
…
Checking filesets and network boot images for SPOT "aix730201spot".
This may take several minutes ...
aixnim #
Hinweis: Die Erzeugung des SPOTs hat ca. 10 Minuten gedauert.
Beispiel 3: Erzeugen eines SPOT aus einer mksysb-Ressource.
Wir verwenden in diesem Beispiel die mksysb-Ressource aix02_mksysb des NIM-Clients aix02:
aixnim # lsnim -l aix02_mksysb
aix02_mksysb:
class = resources
type = mksysb
creation_date = Mon Jun 23 11:57:17 2025
source_image = aix02
arch = power
Rstate = ready for use
prev_state = unavailable for use
nfs_vers = 4
location = /export/nim/mksysb/aix02_mksysb
version = 7
release = 3
mod = 2
oslevel_r = 7300-02
oslevel_s = 7300-02-02-2420
alloc_count = 0
server = master
aixnim #
Als Server für den SPOT verwenden wir wieder den NIM-Master:
aixnim # nim -o define -t spot -a server=master -a location=/export/nim/spots -a source=aix02_mksysb -a nfs_vers=4 aix02_spot
Creating SPOT in "/export/nim/spots" on machine "master" from "aix02_mksysb" ...
Restoring files from BOS image. This may take several minutes ...
Checking filesets and network boot images for SPOT "aix02_spot".
This may take several minutes ...
aixnim #
Hinweis: Das Erzeugen des SPOTs hat ca. 3 Minuten gedauert.
Beispiel 4: Erzeugen eins SPOT mit Hilfe eines vorhanden SPOTs (Erstellen einer Kopie).
Wir erstellen eine Kopie des früher auf dem NIM-Client aix03 erstellten SPOTs usrsportonaix03. Der Server für die Kopie soll der NIM-Master sein:
aixnim # nim -o define -t spot -a server=master -a location=/export/nim/spots -a source=usrspotonaix03 spotfromaix03
Creating SPOT in "/export/nim/spots" on machine "master" from "usrspotonaix03" ...
Restoring files from BOS image. This may take several minutes ...
Checking filesets and network boot images for SPOT "spotfromaix03".
This may take several minutes ...
aixnim #
Hinweis: Das Erzeugen hat ca. 10 Minuten gedauert, da Quelle und Ziel auf unterschiedlichen Systemen sind.