Solaris 10 8/07 Installationshandbuch: Solaris Live Upgrade und Planung von Upgrades

ProcedureSo testen Sie ein Profil für Solaris Live Upgrade

Nach der Erstellung des Profils testen Sie es mit dem Befehl luupgrade. Anhand der Ausgabe von luupgrade können Sie schnell ermitteln, ob das Profil wie beabsichtigt funktioniert.

  1. Nehmen Sie Superuser-Status oder eine entsprechende administrative Rolle an.

    Administrative Rollen umfassen Berechtigungen und reservierte Befehle. Weitere Informationen zu Rollen finden Sie unter Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Testen Sie das Profil.


    # luupgrade -u -n BU-Name -D -s BS-Abbildpfad -j Profilpfad
    
    -u

    Gibt an, dass ein Upgrade eines Betriebssystemabbildes in einer Boot-Umgebung ausgeführt werden soll.

    -n BU-Name

    Gibt den Namen der Boot-Umgebung an, die aktualisiert werden soll.

    -D

    Der Befehl luupgrade testet die mit der Option -j übergebenen Profiloptionen auf Grundlage der Festplattenkonfiguration der ausgewählten Boot-Umgebung.

    -s BS-Abbildpfad

    Gibt den Pfadnamen eines Verzeichnisses an, das ein Abbild des Betriebssystems enthält. Hierbei kann es sich um ein Verzeichnis auf einem Installationsmedium wie einer DVD-ROM oder CD-ROM oder um ein NFS- bzw. UFS-Verzeichnis handeln.

    -j Profilpfad

    Pfad eines für ein Upgrade konfigurierten Profils. Das Profil muss sich in einem Verzeichnis auf dem lokalen System befinden.


Beispiel 5–9 Testen von Profilen für Solaris Live Upgrade

Im folgenden Beispiel lautet der Name des Profils Flash_profile. Das Profil wird in der inaktiven Boot-Umgebung second_disk erfolgreich getestet.


# luupgrade -u -n u1b08 -D -s /net/installsvr/export/u1/combined.u1wos \
 -j /var/tmp/flash_profile
Validating the contents of the media /net/installsvr/export/u1/combined.u1wos.
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains Solaris version 10.
Locating upgrade profile template to use.
Locating the operating system upgrade program.
Checking for existence of previously scheduled Live Upgrade requests.
Creating upgrade profile for BE second_disk.
Determining packages to install or upgrade for BE second_disk.
Simulating the operating system upgrade of the BE second_disk.
The operating system upgrade simulation is complete.
INFORMATION: var/sadm/system/data/upgrade_cleanup contains a log of the
upgrade operation.
INFORMATION: var/sadm/system/data/upgrade_cleanup contains a log of
cleanup operations required.
The Solaris upgrade of the boot environment second_disk is complete.

Sie können das Profil nun für ein Upgrade einer inaktiven Boot-Umgebung einsetzen.