Shutdown and reboot

Joined
Jan 11, 2020
Messages
2
HI,

I am new at Freenas. I have a new, up to date, stable, server (11.2 stable).

My problem is simple. When I do a "shutdown -h now", it hangs (minumum 10 minutes, then, I rebooted), I tried several times with same effect.

From the console, the last thing I see is:
GEOM_MIRROR: device swap0 destroyed.

But reboot seems to work without issue.

At boot, I don't see errors (at least, when I look at the screen, all looks good).

Does anyone have an idea of what could be wrong?

I am not a debian expert, so, if you need any more data to help, please tell me what command and/or what file you are interrested to.

Thank you for your help.

Christian
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
To power off cleanly use shutdown -p now.

Patrick
 
Joined
Jan 11, 2020
Messages
2
Hi Patrick,

thank you, it works. I just wonder now, why on my centos systems, shutdown -h seems to do this correctly (in fact, it's the first time I read about -p...).

Anyway, it works.

Thank again to all developpers and to this forum gurus.

Christian
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
FreeBSD simply differentiates. -h is halt, -p is power off. Sparc systems do the same. init 0 to halt, init 5 is power off.

Patrick
 
Top