4.4. Shutting down an LPAR

If you want to shut down a running LPAR, you should shut down the LPAR via the operating system used, by logging in and shutting down the operating system as the administrator. With AIX, this can be done with the shutdown command, for example:

aix02 # shutdown

SHUTDOWN PROGRAM
Mon May  3 11:57:07 CEST 2021

Broadcast message from root@aix02 (tty) at 11:57:07 ...

PLEASE LOG OFF NOW ! ! !
All processes will be killed in 1 minute.

Broadcast message from root@aix02 (vty0) at 11:58:07 ...

! ! ! SYSTEM BEING BROUGHT DOWN NOW ! ! !

Stopping IBM.ConfigRM...
0513-044 The IBM.ConfigRM Subsystem was requested to stop.

Unmounting the file systems...
Unmounting the file systems...

Bringing down network interfaces: en0 lo0

open: No such file or directory

May  3 11:58:35 portmap: terminating on signal.
....Halt completed….

Any errors that occur when shutting down the LPAR are displayed and do not go unnoticed.

It is of course still possible to shut down the operating system with PowerVM. For this purpose there is the command “lpar osshutdown” (shutdown operating system):

$ lpar osshutdown aix02
$

PowerVM executes the following command on the LPAR:

    • AIX: the shutdown command is executed.
    • Linux: the command “shutdown -h +1” is executed.
    • VIOS: the shutdown command is executed (as user padmin).

The LPAR is then in the Not Activated state:

$ lpar status aix04
NAME   LPAR_ID  LPAR_ENV  STATE    PROFILE   SYNC  RMC     PROCS  PROC_UNITS  MEM    OS_VERSION
aix02  3        aixlinux  Not Activated standard  0     inactive  1      0.2         16384  AIX 7.1 7100-04-05-1720
$

To reboot the LPAR, the option “-r” can be used for “lpar osshutdown”:

$ lpar osshutdown -r aix02
$

Note: In the event of a reboot, the LPAR remains activated, it is not deactivated and therefore not reactivated with any of its profiles. This means in particular that a change in one of the profiles does not change the configuration of the LPAR. To do this, the LPAR must be shut down (deactivated) and reactivated by specifying the changed profile!