z/OS UNIX System Services Planning
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Steps for shutting down z/OS UNIX using F BPXOINIT,SHUTDOWN=...

z/OS UNIX System Services Planning
GA32-0884-00

About this task

You will shut down z/OS® UNIX using the F BPXOINIT,SHUTDOWN=... system command.
Before you begin: You need to notify users that the system is being shut down and ask them to log off. If you do not shut down and quiesce the UNIX workload, these critical system functions might be ended abnormally during the shutdown, which might cause several failures on the system. As a result, the system might not be shut down successfully.
  1. Use the operator SEND command to send a note to all TSO/E users telling them that the system will be shut down at a certain time. For example:
    send 'The system is being shut down in five minutes. Log off.',NOW
  2. Use the wall command to send a similar note about the impending shutdown to all shell users who are logged on. For example:
    wall The system is being shut down in five minutes. Please log off.

Perform the following steps to shut down z/OS UNIX using F BPXOINIT,SHUTDOWN.

Procedure

  1. Prevent new TSO/E logons and shut down other z/OS subsystems (such as CICS® and IMS™), following your typical procedures.

    _______________________________________________________________

  2. Shut down all JES initiators.

    _______________________________________________________________

  3. Move or unmount all of the NFS file systems by issuing the following command:
    F OMVS,STOPPFS=NFS

    _______________________________________________________________

  4. Use normal shutdown procedures to end all file system address spaces such as TCP/IP and DFSS. Do this after the final warning has been sent to users that the system is ending.

    _______________________________________________________________

  5. End running daemons such as inetd. Then end any remaining processes.
    To obtain a list of daemons that are running, issue:
    D OMVS,U=OMVSKERN
    OMVSKERN is the user ID that is used for the kernel and daemons.
    To display all processes (most daemons have recognizable names), issue:
    D OMVS,A=ALL
    Then use the F BPXOINIT,TERM=xxxxxxxx operator command or the kill command to terminate those processes.

    _______________________________________________________________

  6. Move or unmount all file systems (including the root file system). Issue:
    F BPXOINIT,SHUTDOWN=FILEOWNER
    or
    F BPXOINIT,SHUTDOWN=FILESYS

    _______________________________________________________________

  7. Take down JES. At this point, there might still be a number of initiators that are provided by WLM for use on fork and spawn. These initiators time out after 30 minutes on their own, but you can end them by issuing:
    F BPXOINIT,SHUTDOWN=FORKINIT

    _______________________________________________________________

Results

When you are done, you have ended all of the processes. You can do any of the following:
  • IPL
  • Power® off
  • Take down JES, restart JES, and then rebuild your environment. For example:
    • Remount any file systems that you unmounted. To do all the mounts, you must issue mount commands or construct a REXX exec or CLIST. If you are using automount for user file systems, there will be less work involved.
    • If you terminated the address spaces for TCP/IP and DFSS, you must restart these.
    • If you terminated daemons, log on to TSO as superuser and run /etc/rc from a shell or from the ISHELL.
    • Notify users that the system is once again available for UNIX processing.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014