Problem when shutting down TrueNAS

dlingal

Dabbler
Joined
May 31, 2021
Messages
11
Lately, I am facing an strange issue with my TrueNAS, which restart again after a shut down and the only way to poweroff the device is by holding power button for 5 seconds or by switching off the power supply. I am frustrated with this really weird behaviour because I have checked than Wake-On (LAN, Keyboard, Mouse...) is Disabled on BIOS.

More surprising is for me that, when I start TrueNAS without the pool drives attached (only freenas-boot disk connected), it works fine and shuts down properly. But, when I attach pool drives to SATA ports (this is the only difference), system will not shut down and restart again after spinning down cpu fan.
I do not know what to do to solve this issue. Any help appreciated.
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177

dlingal

Dabbler
Joined
May 31, 2021
Messages
11
Thank you very much for your advice.

I have been looking at that thread and, regarding with mentioned config items, mines are as follows:
AC Power loss: Always OFF
Wake-on LAN Disabled
Wake-on Keyboard Disabled
Wake-on mouse Disabled

I have got the following hardware and software:

SOFTWARE:
TrueNAS-12.0-U3.1 (recent upgraded from FreeNAS 11.3 U3)

HARDWARE:
Mainboard: Gigabyte GA-H61M-D2SV rev 2.0
BIOS version: F5 (04/17/2013)
RAM: 8Gb Kingston KVR13333DN9/8G
CPU: Intel Pentium G2030 @ 3.00 Ghz
PCI-E SATA expansion card CSATA600EXI
HDD (OS disk): 240Gb Kingston SSDNow SUV400S37240G
Attached to CSATA600EXI card
HDD (pool data) RAIDZ2 type with 5 drives
Western Digital WDC WD30EFRX-68EUZN0
1x attached to CSATA600EXI
4x attached to SATA Mainboard



The problem of restarting after a shut down occurs in the following situations:

With POOL disks not attached (only system SSD disk): Shutdown OK

With POOL disks attached: Shutdown WRONG.
It will restart after 2 seconds of CPU fan spins down, even with only Power button cable connected to mainboad (rest of them disconnected: F-PANEL audio, USB, Reset, HDD led, Speaker,....)
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Where is your system dataset?
 

dlingal

Dabbler
Joined
May 31, 2021
Messages
11
My system dataset (freenas-boot) is in Kingston SSDNow and all my data dataset are in pool RAIDZ2 which is located on the 5 Western Digital Red drives
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
My system dataset (freenas-boot) is in Kingston SSD
Your system dataset is not "freenas-boot". It can be on the boot drive but you must move it there as, by default, it is moved onto the first datapool at the time of creation.

I suggest that you check and move it to the boot drive as a trial if you have not already done so - System>System Dataset will show you where it is now and allow you to move it.

I don't know if this will solve your issue, but the system dataset is updated (written to) frequently. There have ben some rep[orts of succes by moving it, but, as @Papid1975 says above, there are other situations which have proved more stubborn.

Good luck with yours!
 

dlingal

Dabbler
Joined
May 31, 2021
Messages
11
Your system dataset is not "freenas-boot". It can be on the boot drive but you must move it there as, by default, it is moved onto the first datapool at the time of creation.
I am sorry, you are right. I was confused and I thought you were asking about the drive were the system (TrueNAS OS) was installed.
I have moved my system dataset to freenas-boot pool (that is, the boot drive) but it does not solve the problem. My TrueNAS continues restarting after shuting down the system (both from GUI and from command 'shutdown -p now'), as I have explained before.
 
Last edited:

dlingal

Dabbler
Joined
May 31, 2021
Messages
11
Apparently some ASUS motherboard suffer from a bug in BIOS that causes this issue (reboot after shutdown). Maybe this bug affects Gigabyte hardware as well? Anyways, check this out: https://www.truenas.com/community/threads/problems-with-wol-and-i217-nic.16381/#post-214037
WOL option:
I think I have enabled WOL on my ethernet card (it returns WOL_MAGIC in options field to 'ifconfig -m re0' command) and I have tried to disable it with "ifconfig re0 -wol" (it does not appear anymore in options ifconfig field) but the issue is still happening.
On the other hand, both turning on "wake on mouse" or "wake on keyboard" in BIOS does not work either, as somebody suggested in German VDR forum.

Option -o to shutdown command:
Finally, doing some tries I FOUND that including -o option in shutdown command gets the system down properly but I do not know how to do this behaviour predeterminated.
In summary:
'shutdown -p now' does not solve the issue and system restart again after a few seconds but 'shutdown -o -p now' works properly

Can anybody give some help?
 
Top