upsmon配置为在停电时自动关闭系统。
然而,关闭似乎中途失败,使我无法远程访问系统:
Feb 2 12:21:54 the_host upsmon[22861]: Executing automatic power-fail shutdown
Feb 2 12:21:54 the_host shutdown: power-down by root:
Stopping cron.
Waiting for PIDS: 3871.
Stopping zfsd.
Waiting for PIDS: 3857.
Stoppingthejail....arp: writing to routing socket: No such file or directory
bridge0: can't disable some capabilities on em0: 0x1
Unmounting user-supplied file-systems
90 second watchdog timeout expired. Shutdown terminated.
Fri Feb 2 12:23:55 CET 2018
Feb 2 12:23:55 the_host init: /bin/sh on /etc/rc.shutdown terminated abnormally, going to single user mode
Feb 2 12:23:55 the_host init: /bin/sh on /etc/rc.shutdown terminated abnormally, going to single user mode
Feb 2 12:23:55 the_host upsd[22837]: mainloop: Interrupted system call
Feb 2 12:23:55 the_jail syslogd: exiting on signal 15
Feb 2 12:24:15 init: some processes would not die; ps axl advised需要物理访问才能重新启动。
2.如何确保在上述情况下保持远程访问?
发布于 2018-03-07 07:48:43
FreeBSD /sbin/init程序中的状态机根本不适合您。在这些故障和其他故障时,它从运行/etc/rc.shutdown的状态转换为“单用户模式”状态,在“控制台”终端上生成了一个交互式shell,并期望系统操作员在那里静坐和工作。
正如通知所告诉的那样,系统期望您直接干预该特权终端,并使用ps和其他命令来找出为什么您的进程不会终止、终止和重新启动关机。
当然,您可以将控制台变成真正的串行终端(而不是使用直接连接的HID硬件的内核终端仿真器提供的虚拟终端),并使用一些额外的工具包使该串行终端成为远程终端。
或者,您可以将FreeBSD提供的系统管理替换为系统管理器,该管理器不包含“单一用户模式”是通过引导和关机沿反方向遍历的阶梯上的一步。
但除此之外,这里的设计起源于大型多终端计算机在系统操作员中有不同的站点,在那里,xe直接监督引导和关机,并手动干预错误,确实对完全无头文件服务器没有保姆的概念产生了不利影响。
https://unix.stackexchange.com/questions/428628
复制相似问题