问题总结第一张专辑(2005年开始)[9]

[入库:2005年9月19日] [更新:2007年3月24日]

本文简介:

or similar, the not seeded message above goes away and opnessh programs then work properly. 
我发现在我的机器上没有/var/run/egd-pool, /dev/egd-pool,/etc/egd-pool and /etc/entropy.这几个目录,文件都没有。但我还是作了联接 
ln -s /var/spool/prngd/pool /dev/egd-pool ) 

Jan 16 15:23:11 public prngd[1968]: socket /var/spool/prngd/pool already used by another process, exiting. ] 

more /var/spool/prngd/pool显示 
pool: Operation not supported on transport endpoint 

后来用/usr/local/bin/egc.pl /var/spool/prngd/pool get 测试prngd。却 
提示/usr/local/bin/egc.pl: not found 。[b:ec0c18dbeb]奇怪的是egc.pl明明就在/usr/local/bin下。[/b:ec0c18dbeb] 
谁能告诉我prngd到底起了没有。
A:building prngd的文档 

cd prngd-0.9.25 
Edit Makefile with 
CC=gcc 
CFLAGS=-O -DSOLARIS 
SYSLIBS=-lsocket -lnsl 

# building with gcc 
make 

Install prngd: 

cp prngd /usr/local/sbin 
cp contrib/Solaris-7/prngd.conf.solaris-7 /etc/prngd.conf 
cat /var/log/syslog > /etc/prngd-seed 

Copy the startup script of prngd 

cp contrib/Solaris-8/prngd ../../../local/lib 
edit prngd for location of prngd & and 
PRNGD=/usr/local/sbin/prngd 
SOCKETDIR=/var/run 
SOCKET=$SOCKETDIR/prngd-socket 

start prngd to create entropy under /var/run/ 
../prngd start 

prngd运行时,会有这个进程出现。不过推荐你使用这个随机生成器,容易耐用稳定: 
http://www.cosy.sbg.ac.at/~andi/SUNrand/

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... 

本文关键:问题总结第一张专辑(2005年开始)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top