Got it

There Is a High Probability that a SUSE 10 SP1 System Fails to Be Shut Down by Using the ACPI

111 0 0 0 0

Hi team!

Here's a case that There Is a High Probability that a SUSE 10 SP1 System Fails to Be Shut Down by Using the ACPI.


Symptom

There is a high probability that a SUSE 10 SP1 system fails to be shut down by using ACPI. 

However, the VM can be shut down successfully by using the shutdown or init command. 

The procedure is as follows:

1. Start the VM.

2. Use the shutdownFlags (self, 2) interface to shut down the VM from the outside in ACPI mode.



Possible Causes

The procedure of shutting down the VM by using ACPI is as follows:

1. The VM receives a message that the SCI is interrupted.

2. The VM kernel processes an ACPI shut down event, 

    and writes button/power PWRF 00000080 00000005 in the /proc/acpi/event file.

3. The acpid service monitors the /proc/acpi/event file. 

    After receiving a message, the server reads this message and writes it into the /var/run/acpid.socket file.

4. The powersaved service monitors the /var/run/acpid.socket file. 

    After receiving this message, the service invokes the wm_shutdown script.

5. The wm_shutdown script invokes shutdown -h now to shut down the VM.

If you fail to shut down the VM, run the acpi_listen command to read ACPI shut down messages received by the VM.

1

After further checking, the powersaved service is found to be abnormal. 

It does not monitor the /var/run/acpid.socket file. 

Therefore, strace is used to trace the powersaved service.

2

During the initialization of the powersaved service, a reading error occurs and the reading process waits. The powersaved service does not read data in /var/run/acpid.socket, causing the shutdown process to be failed. 

After searching using Google, the powersaved service has such bugs. 

SUSE systems of new versions no longer use the powersaved service and do not have this problem.



Handling Procedure

The Guest OS has received a shutdown message from the ACPI, but an error occurs during the initialization of the powersaved service, causing the shutdown failure. 

You can use the VMTools to shut down the VM, or forcibly shut down the VM after the external shutdown fails without using the ACPI notification.

The methods to shut down VMTools are as follows:

The python shutdown interface shutdownFlags uses 3 to shut down the VM from the guest agent:

shutdownFlags (self, 3)

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.