Task 03. Crash System

Let’s learn how the cluster reacts when the SAP Application server is crashed.

2.1 Crashed ASCS on s4hers

When a system crash occurs in s4hascs, check whether s4hers node is normally changed to ASCS Active node. image01

  1. Use Session Manager to connect to the ~ ASCS : s4hascs instance.

You will only need to re-open your session if you have already disconnected from it. We recommend reusing the same session with this instance. Leave your session open and go back to it when needed, as we will need to access it several times, for both prihana and sechana.

  1. Use Session Manager to connect to ~ ASCS : s4hascs (s4hascs).

  2. To simulate a system crash, we will do a forced stop of the operating system, via a fast-shutdown on s4hascs (use root user). Your Session Manager session will become unresponsive after this, you can close that tab/window in your browser.

    sudo su - 
    echo b >/proc/sysrq-trigger
    
  3. Since s4hascs has now crashed, let’s check cluster on s4hers. Use Session Manager to connect to ~ ERS : s4hers instance.

  4. Check cluster status. Use sapcontrol to check if s4hers is in Active status. If it does not show Active status yet, wait and try again.

    su - s4hadm
    sapcontrol -nr 10 -function HAGetFailoverConfig
    

    image05

  5. check cluster status via crm_mon (as root user). Execute the command below to check if s4hers is in Active status. Unlike the previous case, s4hascs is in OFFLINE status.

    sudo su -
    crm_mon -rfn1
    

    image06

  6. Due to the earlier “crash”, ~ ASCS : s4hascs (s4hascs). instance is in a stopped state. Now we will start s4hascs. Go back to the list of EC2 instances in the AWS Management Console, and select ~ ASCS : s4hascs (s4hascs). Click on Instance state, and then Start instance.

    image07

  7. Once ~ ASCS : s4hascs (s4hascs) is running and all checks are passed, use Session Manager to connect to ~ ERS : s4hers (s4hers).

  8. In s4hers, check the cluster status of s4hascs. Execute the command below to check if s4hascs is in Active status for ERS (use root user). after s4hascs is running, automatly migrate ERS to s4hascs

    sudo su -
    crm_mon -rfn1
    

    image07


2.2 Crashed ASCS on s4hers

When a system crash occurs in s4hers, check whether s4hascs node is normally changed to ASCS Active node. image08

  1. Use Session Manager to connect to the ~ ERS : s4hers instance.

  2. Execute a fast-shutdown on the s4hers instance (using root user). Your Session Manager session will become unresponsive after this, you can close that tab/window in your browser.

    sudo su - 
    echo b >/proc/sysrq-trigger
    
  3. Since s4hascs has now crashed, let’s check cluster on s4hers. Use Session Manager to connect to ~ ERS : s4hers instance.

  4. Check cluster status. Use sapcontrol to check if s4hers is in Active status. If it does not show Active status yet, wait and try again.

    su - s4hadm
    sapcontrol -nr 10 -function HAGetFailoverConfig
    

    image09

  5. check cluster status via crm_mon (as root user). Execute the command below to check if s4hers is in Active status. Unlike the previous case, s4hascs is in OFFLINE status.

    sudo su -
    crm_mon -rfn1
    

    image10

  6. Due to the “crash”, ~ ERS : s4hers (s4hers). instance is in a stopped state. Now we will start s4hers. Go back to the list of EC2 instances in the AWS Management Console, and select ~ ERS : s4hers (s4hers). Click on Instance state, and then Start instance.

    image11

  7. Once ~ ERS : s4hers (s4hers) is running and all checks are passed, use Session Manager to connect to ~ ASCS : s4hascs (s4hascs).

  8. In s4hascs, check the cluster status of s4hers. Execute the command below to check if s4hers is in Active status for ERS (use root user). after s4hers is running, automatly migrate ERS to s4hers

    sudo su -
    crm_mon -rfn1
    

    image12


© 2019 Amazon Web Services, Inc. 또는 자회사, All rights reserved.