Steps for enabling Linux virtual servers to shut down automatically

Before you begin

You need to have a Linux® kernel that supports a shutdown signal, such as SuSE SLES 9 or later. Check your Linux system documentation to determine if it supports the shutdown signal.

You need to log onto MAINT. You also need to log onto your Linux system as a superuser.

Procedure

  1. Log on as MAINT on z/VM® and check whether your Linux virtual servers are enabled for the shutdown signal.
    Type the following command and press the Enter key.
    Note: Your Linux operating systems need to be running to see if they are enabled for the shutdown signal.
    q signals
    Example:
    q signals                                 
                                            Signalled  Timeout  
    Userid        Signal    Signal Status   By         Remaining
    LINUX01       SHUTDOWN  Enabled         -          -        
    LINUX02       SHUTDOWN  Enabled         -          -        
    LINUX03       SHUTDOWN  Enabled         -          -        
    LINUX04       SHUTDOWN  Enabled         -          -        
    LINUX05       SHUTDOWN  Enabled         -          -        
    Ready;
  2. While logged on as a superuser on Linux, check the etc/inittab file for the following lines:
     # z/VM or LPAR is shutting down
    ca:12345:ctrlaltdel:/sbin/shutdown -h now

    Important: Be sure the shutdown command shuts down Linux (-h) rather than restarting it (-r).

  3. Repeat this task for Linux virtual servers on other members of the SSI cluster.

Results

You are done.