6.2.10. Entfernen eines Paging Devices

Die LPAR shlpar1 wurde nur zu Demonstrations-Zwecken angelegt, sie wird aber nicht wirklich benötigt. Wir deaktivieren die LPAR daher und entfernen dann das zugehörige Paging-Device hdisk3.

$ lpar -i shutdown shlpar1
$

Wie beim Hinzufügen eines Paging-Devices, gibt es auch beim Wegnehmen 2 Möglichkeiten. Entweder kann das Kommando „ms rmpgdev“ (remove paging device) verwendet werden, wobei neben dem Managed System auch der Paging Virtual-I/O-Server und das Paging-Device angegeben werden müssen:

$ ms rmpgdev ms03 ms03-vio1 hdisk3
$

Oder es kann das etwas kürzere, aber äquivalente, Kommando „vios rmpgdev“ verwendet werden:

$ vios rmpgdev ms03-vio1 hdisk3
$

Nachdem es nun nur noch ein Paging-Device gibt, das aktuell von der LPAR aix22 in Verwendung ist, lässt sich die LPAR shlpar1 natürlich auch nicht mehr starten:

$ lpar activate shlpar1
hmc01: chsysstate -m ms03 -r lpar -o on -n shlpar1
ERROR: remote HMC command returned an error (1)
StdErr: HSCL367F The activation with current configuration of one or more partitions failed with the following error:
StdErr: Lpar 6: HSCLA435 There is not a device available in the reserved storage device pool or shared memory pool that can be the paging space for partition shlpar1. This partition requires a device with a size of at least 8192 MB. Add a device of at least that size to the pool, and try the operation again. If you want to use a smaller device, then modify the partition's profile to reduce the maximum memory setting for the partition so that it is less than or equal to the size of the available device that you want to use, then try the operation again.
StdErr:
StdErr:
$

Die Fehlermeldung weist eindeutig daraufhin, das ein Paging-Device von mindestens 8 GB Größe benötigt wird, um die LPAR starten zu können.