免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3294 | 回复: 15

Cannot create /var/adm/utmpx [复制链接]

论坛徽章:
0
发表于 2008-11-05 12:03 |显示全部楼层
10可用积分
今天我的SUN V120 系统是 9 的主机在启动时报出了:
Boot device: /pci@1f,0/pci@1/scsi@8/disk@0,0  File and args: -r
SunOS Release 5.9 Version Generic_118558-03 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
|
INIT: Cannot create /var/adm/utmpx

INIT: failed write of utmpx entry:"  "

INIT: failed write of utmpx entry:"  "

INIT: SINGLE USER MODE

Type control-d to proceed with normal startup,
(or give root password for system maintenance):
single-user privilege assigned to /dev/console.
Entering System Maintenance Mode

Nov  5 11:43:39 su: 'su root' succeeded for root on /dev/console
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002

这个错误,在网上找的重建/var/adm/utmpx这个文件重起后问题依旧,请高手指教,谢谢了

论坛徽章:
0
发表于 2008-11-05 12:22 |显示全部楼层

论坛徽章:
0
发表于 2008-11-05 12:28 |显示全部楼层
这个帖子我看过了,也试了没有用呀

论坛徽章:
0
发表于 2008-11-05 12:36 |显示全部楼层
原帖由 roger0409 于 2008-11-5 12:28 发表
这个帖子我看过了,也试了没有用呀

http://www.tuifei.com/archives/115.html

第25个问题解决。

论坛徽章:
0
发表于 2008-11-05 12:38 |显示全部楼层
25 ) Q:吃惊:无法进入PROM模式
版本:SUN0S 5.5.1
硬件:INTEL P3 450

现象:从正常状态下输入
1. shutdown
2. init 5
3. init 0
4. halt
以及在启动的时候按CTRL+BREAK,都会提示出错:

INIT: failed write of utmpx entry: " "

总之无论是关机还是INIT 0,最后都是重启。

我要进入OK模式,如何做?

谢谢!!
A:我认为系统已经识别了输入的CTRL+BREAK.

提示错误如下:

INIT: Cannot create /var/adm/utmp or /var/adm/utmpx

INIT: failed write of utmpx entry: " "

INIT: failed write of utmpx entry: " "

INIT: SINGLE USER MODE
一部分问题的解决办法

Unmounting /vol error
This problem is caused by an error in one of the Solaris .rc files.


Jan 21 20:32:18 /usr/sbin/vold[418]: problem
unmounting /vol; Interrupted system call
The system attempts to unmount the /vol file system before shutting down the vold daemon which is using /vol. By trying to unmount a used file system, an error is created. The solution is to kill the daemon before unmounting the file system.

Killing the vold daemon first will fix the problem. You will have to become root first. Then create a link to an existing shutdown script before entering run level 0.

Become root and enter the following:
# ln -s /etc/init.d/volmgt /etc/rc0.d/K68volmgt
The /etc/rc0.d directory contains scripts that are executed when Solaris enters run level 0 (Shut Down). Solaris runs all scripts starting with K and passes them "stop" as a parameter. The volmgt script found in the /etc/init.d directory already uses this protocol and the above procedure will cause vold to shutdown properly.



--------------------------------------------------------------------------------

INIT: failed write of utmpx...
The error messages that is most frustrating, however, are this pair of messages. On some installations, We get these errors, and on other installations, We don’t.


INIT: f a i l e d o n w r i t e o f u t m p x entry:“sO”
INIT: f a i l e d o n w r i t e o f u t m p x entry:“fw”
For a long time, We’ve just been putting up with these error messages. It turns out that these messages occur for a similar reason as the previous error.
Here, the init command is trying to update the utmpx log file, which contains information about system run-level transitions, as well as user login and logout information. On some Solaris installations, the /var file system was on a separate partition!
When Solaris goes to run level 0, it un-mounts all the expendable file systems, such as /var. However, init then tries to enter this information in the log file, which is no longer accessible. That certainly clears things up!
Thus, all you do is provide a place for init to write your log file entries. If you really don’t care about the run-level transition messages, you can just write the information to/dev/null, and it’ll be thrown away without a trace. To do this, shut down your system and restart it. However, when you restart it, make sure you issue a boot -s command to boot it initially in single-user mode. Once you’ve booted up in single-user mode, enter these commands:

# umount /var
# mkdir /var/adm
# ln -s /dev/null /var/adm/utmpx %0

论坛徽章:
0
发表于 2008-11-05 13:17 |显示全部楼层
还是不行呀

论坛徽章:
0
发表于 2008-11-05 13:28 |显示全部楼层
如果没有cat /dev/null >/var/adm/utmpx,就
touch /var/adm/utmpx
如果不行,就从别的机器复制一个过来,然后
cat /dev/null >/var/adm/utmpx


如果有/var/adm/utmpx
cat /dev/null >/var/adm/utmpx

论坛徽章:
202
15-16赛季CBA联赛之北控
日期:2020-01-03 11:02:38黑曼巴
日期:2017-12-11 12:52:0315-16赛季CBA联赛之浙江
日期:2017-12-28 14:13:3815-16赛季CBA联赛之广夏
日期:2018-03-01 16:41:0915-16赛季CBA联赛之青岛
日期:2018-08-08 11:17:1915-16赛季CBA联赛之江苏
日期:2018-08-08 14:12:3815-16赛季CBA联赛之江苏
日期:2018-09-17 13:50:1315-16赛季CBA联赛之天津
日期:2018-12-27 08:57:2015-16赛季CBA联赛之广夏
日期:2019-01-03 14:18:1715-16赛季CBA联赛之吉林
日期:2017-12-11 12:51:5915-16赛季CBA联赛之天津
日期:2017-10-30 09:57:3515-16赛季CBA联赛之山西
日期:2017-01-11 15:00:12
发表于 2008-11-05 13:35 |显示全部楼层
SOLARIS理论上不是说此类文件如果删除,系统会自动创建的么?

论坛徽章:
0
发表于 2008-11-05 14:07 |显示全部楼层
cat /dev/null > /var/adm/utmpx 也做过了,不行呀

论坛徽章:
0
发表于 2008-11-05 14:17 |显示全部楼层
备份,然后删掉重建,然后sync;sync;reboot
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

DTCC2020中国数据库技术大会

【架构革新 高效可控】2020年12月21日-23日第十一届中国数据库技术大会将在北京隆重召开。

大会设置2大主会场,20+技术专场,将邀请超百位行业专家,重点围绕数据架构、AI与大数据、传统企业数据库实践和国产开源数据库等内容展开分享和探讨,为广大数据领域从业人士提供一场年度盛会和交流平台。

http://dtcc.it168.com


大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP