Bug 265466 - Unexpected start after shutdown -p now, if hw.efi.poweroff is true
Summary: Unexpected start after shutdown -p now, if hw.efi.poweroff is true
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.1-STABLE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL: https://www.truenas.com/community/pos...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-27 13:59 UTC by Nathan M.
Modified: 2022-12-28 17:37 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan M. 2022-07-27 13:59:03 UTC
On FreeBSD 13.0, when I try to shut down one of my servers using the Web UI and/or console, the server reboots 5 - 10 seconds after it powers off.  This behavior was/is not present in FreeBSD 12.  Furthermore, this same issue occurs in TrueNAS Core 13, but not TrueNAS Core 12.  The server specs are as follows:

Intel R2000 Chasis
Intel S2600GZ Motherboard
2 x Intel Xeon E5-2630L v2
2 x 16GB (32GB Total) ECC DDR3
Intel RMS25JB080 (LSI 2008) Flashed to IT
Boot Pool: 2 x Intel DC S3610 SSDs (Mirrored)
Storage Pool: 12 x 4TB HGST HUS724040ALS640 (6 drives per vdev, RaidZ2)


I originally created a thread about this in the TrueNAS community forum, and another user (also running an Ivy Bridge CPU) posted they had experienced the same problem.

https://www.truenas.com/community/threads/shutdown-causes-reboot-on-truenas-core-13-0-u1.102752/#post-706976

I have also reported this issue to iXSystems/TrueNAS:
https://ixsystems.atlassian.net/browse/NAS-117384
Comment 1 Ed Maste freebsd_committer freebsd_triage 2022-07-28 14:01:23 UTC
Can you check if `shutdown -p now` behaves the same way
Comment 2 Nathan M. 2022-07-28 14:22:48 UTC
(In reply to Ed Maste from comment #1)

It still restarts within a few seconds after powering off when running 'shutdown -p now'
Comment 3 Nathan M. 2022-09-02 00:17:48 UTC
A user in the TrueNAS forums found a workaround to this problem.  By setting hw.efi.poweroff to 0 instead 1 via sysctl, the shutdown/reboot issue is fixed.
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-12-28 17:37:26 UTC
(In reply to Nathan M. from comment #0)

> https://ixsystems.atlassian.net/browse/NAS-117384

I'm logged in, but do not have access. What, if anything, was the conclusion?


(In reply to Nathan M. from comment #3)

<https://www.truenas.com/community/posts/717893>

> … didn't solve my issue