Re: Offering to help test bugs, etc, for opensuse on Power

Michal Suchánek <[email protected]> Tue, 21 Jan 2020 19:27:37 +0100
Newsgroups gmane.linux.suse.ppc
Message-ID <[email protected]>
On Tue, Jan 21, 2020 at 04:58:52PM +0000, John Mickevich wrote:
> I have contacted the manufacture of the UPS. There is no configuration on the UPS end.  The UPS contains a relay card, which sends a signal to the Power8 server when running on battery power.  The UPS will then send another signal to the Power8 server when the utility power has been restored at the UPS.  That signal is making it to the openSUSE LPAR because I see this when the UPS goes on battery power:
> 
> ==================
> powerweb:~ # Loss of system power detected. System is running on UPS/battery. Check RTAS error log for details
> 
> Message from syslogd@powerweb at Dec 26 14:42:06 ...
>  kernel:Loss of system power detected. System is running on UPS/battery. Check RTAS error log for details
> ==================
> 
> When this occurs, openSUSE starts a shutdown.  Instead of it running whatever script it is running to start the shutdown, I want to run the rc.powerfail script.  Do you know of anyway for me to find out what script is running which causes openSUSE to shutdown when the above conditions crops up?

This message appears in the kernel:
https://github.com/torvalds/linux/blob/master/arch/powerpc/platforms/pseries/ras.c#L186

The kernel shuts down immediately on receiving the MCE.

Maybe raise the issue on the linuxppc-dev mailing list. Can't really
comment on this design.

Maybe there is some information in the event that would allow the kernel
decide if it needs to shut down immediately and maybe the interface is
broken and there is not enough information to tell how long the battery
power can last and if immediate shutdown is required.

Thanks

Michal

-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]