免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: nononhm
打印 上一主题 下一主题

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

论坛徽章:
0
21 [报告]
发表于 2006-02-23 17:45 |只看该作者
u10,IDE
我想问var分区还与那些文件有关联。。

论坛徽章:
0
22 [报告]
发表于 2006-02-24 12:49 |只看该作者
ok boot cdrom -s
# mount /dev/dsk/c0t0d0s0 /mnt
1:
# touch /mnt/var/adm/utmpx
# chmod 644 /mnt/var/adm/utmpx
# chown root:bin /mnt/var/adm/utmpx

2:
# cat /mnt/dev/null > /mnt/var/adm/utmpx
# chmod 644 /mnt/var/adm/utmpx
# chown root:bin /mnt/var/adm/utmpx

3:
# cp /cdrom/ol8install/Solaris_8/Product/SUNWcsr/reloc/var/adm/utmpx /mnt/var/adm/utmpx
# cp /cdrom//sol8install/Solaris_8/Tools/Boot/etc/utmpx /mnt/etc/utmpx

# cd
# umount /mnt
# fsck -Y /dev/dsk/c0t0d0s0
# sync;sync;sync;reboot  都无效

查看:
# more /mnt/etc/vfstab 正常
# more /mnt/etc/inittab 与其他对比正常
# more /mnt/etc/console 无法打开
# more /mnt/etc/mnttab 空
# more /mnt/etc/name_to_major 看不出有什么特别

8楼是当机前一天的log,13楼为执行过脚本,执行后sysmsg@0:msglog and sysmsg@0:sysmsg丢失,报name_to_major 无法执行,改name_to_major 权限后,全部显示no found。后mknod了sysmsg@0:msglog and sysmsg@0:sysmsg,属性与之前一样。执行前能进入 SINGLE USER MODE,执行脚本后只能靠boot cdrom -s运行,还是报同样的错误:
INIT: Cannot create /var/adm/utmpx

INIT: failed write of utmpx entry:"  "

INIT: failed write of utmpx entry:"  "

INIT: SINGLE USER MODE


想问各位这还能救不?晚上前不能弄好就修复安装了。

论坛徽章:
0
23 [报告]
发表于 2006-07-04 13:17 |只看该作者
我在前些天也遇到了这个问题。我的结决办法是:
fsck -y ;exit

如果不行: stop +a
power-off
过几分钟启动。

论坛徽章:
0
24 [报告]
发表于 2006-07-04 13:21 |只看该作者
我做过镜像也出现过这样的情况。最后没折,重做了系统。

论坛徽章:
0
25 [报告]
发表于 2006-07-05 16:49 |只看该作者
LZ 的情况我在dump光纤盘的时候遇到过,在做mirror的时候也遇到过,下面是我贴出来在解决光纤盘dump的情况。
LZ的是IDE的,请检查vfstab,把和mirror有关的都注释掉,修改/etv/system中带有md的部分全部注释掉,问题应该解决。
祝好运!


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

Mar 23 11:01:16 su: 'su root' succeeded for root on /dev/console
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   February 2004
Sourcing //.profile-EIS.....
root@PFITDB1A # reboot
syncing file systems... done
rebooting...
Resetting ...


Software Reset

Enabling system bus....... Done
Initializing CPUs......... Done
Initializing boot memory.. Done

Initializing OpenBoot
Probing system devices
Probing I/O buses

Probing system devices
Probing I/O buses


Sun Fire V490, No Keyboard
Copyright 1998-2004 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.15.6, 16384 MB memory installed, Serial #67174672.
Ethernet address 0:14:4f:1:1:10, Host ID: 84010110.




                                                                     
Rebooting with command: boot

WARNING: Power Supply 1 not receiving AC power.
Boot device: disk  File and args:
SunOS Release 5.8 Version Generic_117350-28 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
configuring IPv4 interfaces: ce0.
Hostname: PFITDB1A
metainit: PFITDB1A: there are no existing databases

/dev/dsk/c1t0d0s1: No such device or address
The / file system (/dev/rdsk/c1t0d0s0) is being checked.
Can't open /dev/rdsk/c1t0d0s0
/dev/rdsk/c1t0d0s0: CAN'T CHECK FILE SYSTEM.
/dev/rdsk/c1t0d0s0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

WARNING - Unable to repair the / filesystem. Run fsck
manually (fsck -F ufs /dev/rdsk/c1t0d0s0). Exit the shell when
done to continue the boot process.


Type control-d to proceed with normal startup,
(or give root password for system maintenance): resuming system initialization
mount: /dev/dsk/c1t0d0s0 no such device
failed to open /etc/coreadm.confsyseventd: Unable to open daemon lock file '/etc/sysevent/syseventd_lock': 'Read-only file system'The /var file system (/dev/rdsk/c1t0d0s4) is being checked.
Can't open /dev/rdsk/c1t0d0s4
/dev/rdsk/c1t0d0s4: CAN'T CHECK FILE SYSTEM.
/dev/rdsk/c1t0d0s4: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

WARNING - Unable to repair the /var filesystem. Run fsck
manually (fsck -F ufs /dev/rdsk/c1t0d0s4). Exit the shell when
done to continue the boot process.


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

Mar 23 11:02:43 su: 'su root' succeeded for root on /dev/console
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   February 2004
Sourcing //.profile-EIS.....
root@PFITDB1A # eeprom
test-args: data not available.
diag-passes=1
local-mac-address?=false
scsi-initiator-id=7
oem-logo: data not available.
oem-logo?=false
oem-banner: data not available.
oem-banner?=false
ansi-terminal?=true
screen-#columns=80
screen-#rows=34
ttya-rts-dtr-off=false
ttya-ignore-cd=true
ttya-mode=9600,8,n,1,-
output-device=screen
input-device=keyboard
auto-boot-on-error?=true
load-base=16384
auto-boot?=true
boot-command=boot
diag-file: data not available.
diag-device=net
boot-file: data not available.
boot-device=/pci@9,600000/SUNW,qlc@2/fp@0,0/disk@w21000014c379c419,0:a disk net
use-nvramrc?=false
nvramrc: data not available.
security-mode=none
security-password: data not available.
security-#badlogins=0
verbosity=normal
fcode-debug?=false
diag-out-console=false
diag-trigger=error-reset power-on-reset
service-mode?=false
diag-script=normal
diag-level=min
diag-switch?=false
error-reset-recovery=sync
root@PFITDB1A # eeprom auto-boot?=false
root@PFITDB1A # reboot
syncing file systems... done
rebooting...
Resetting ...


Software Reset

Enabling system bus....... Done
Initializing CPUs......... Done
Initializing boot memory.. Done

Initializing OpenBoot
Probing system devices
Probing I/O buses

Probing system devices
Probing I/O buses


Sun Fire V490, No Keyboard
Copyright 1998-2004 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.15.6, 16384 MB memory installed, Serial #67174672.
Ethernet address 0:14:4f:1:1:10, Host ID: 84010110.




                                                                     
Rebooting with command: boot

WARNING: Power Supply 1 not receiving AC power.
Boot device: disk  File and args:
SunOS Release 5.8 Version Generic_117350-28 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
configuring IPv4 interfaces: ce0.
Hostname: PFITDB1A
metainit: PFITDB1A: there are no existing databases

/dev/dsk/c1t0d0s1: No such device or address
The / file system (/dev/rdsk/c1t0d0s0) is being checked.
Can't open /dev/rdsk/c1t0d0s0
/dev/rdsk/c1t0d0s0: CAN'T CHECK FILE SYSTEM.
/dev/rdsk/c1t0d0s0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

WARNING - Unable to repair the / filesystem. Run fsck
manually (fsck -F ufs /dev/rdsk/c1t0d0s0). Exit the shell when
done to continue the boot process.


Type control-d to proceed with normal startup,
(or give root password for system maintenance): resuming system initialization
mount: /dev/dsk/c1t0d0s0 no such device
failed to open /etc/coreadm.confsyseventd: Unable to open daemon lock file '/etc/sysevent/syseventd_lock': 'Read-only file system'The /var file system (/dev/rdsk/c1t0d0s4) is being checked.
Can't open /dev/rdsk/c1t0d0s4
/dev/rdsk/c1t0d0s4: CAN'T CHECK FILE SYSTEM.
/dev/rdsk/c1t0d0s4: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

WARNING - Unable to repair the /var filesystem. Run fsck
manually (fsck -F ufs /dev/rdsk/c1t0d0s4). Exit the shell when
done to continue the boot process.


Type control-d to proceed with normal startup,
(or give root password for system maintenance): resuming system initialization
mount: /dev/dsk/c1t0d0s4 no such device
mount: mount-point /var/run does not exist.

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

Mar 23 11:04:41 su: 'su root' succeeded for root on /dev/console
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   February 2004
Sourcing //.profile-EIS.....
root@PFITDB1A #
root@PFITDB1A #
root@PFITDB1A # mkdir a
mkdir: Failed to make directory "a"; Read-only file system
root@PFITDB1A #
root@PFITDB1A #
root@PFITDB1A # reboot
syncing file systems... done
rebooting...
Resetting ...


Software Reset

Enabling system bus....... Done
Initializing CPUs......... Done
Initializing boot memory.. Done

Initializing OpenBoot
Probing system devices
Probing I/O buses

Probing system devices
Probing I/O buses


Sun Fire V490, No Keyboard
Copyright 1998-2004 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.15.6, 16384 MB memory installed, Serial #67174672.
Ethernet address 0:14:4f:1:1:10, Host ID: 84010110.




                                                                     
Rebooting with command: boot

WARNING: Power Supply 1 not receiving AC power.
Boot device: disk  File and args:
SunOS Release 5.8 Version Generic_117350-28 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
configuring IPv4 interfaces: ce0.
Hostname: PFITDB1A
metainit: PFITDB1A: there are no existing databases

/dev/dsk/c1t0d0s1: No such device or address
The / file system (/dev/rdsk/c1t0d0s0) is being checked.
Can't open /dev/rdsk/c1t0d0s0
/dev/rdsk/c1t0d0s0: CAN'T CHECK FILE SYSTEM.
/dev/rdsk/c1t0d0s0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

WARNING - Unable to repair the / filesystem. Run fsck
manually (fsck -F ufs /dev/rdsk/c1t0d0s0). Exit the shell when
done to continue the boot process.


Type control-d to proceed with normal startup,
(or give root password for system maintenance): resuming system initialization
mount: /dev/dsk/c1t0d0s0 no such device
failed to open /etc/coreadm.confsyseventd: Unable to open daemon lock file '/etc/sysevent/syseventd_lock': 'Read-only file system'The /var file system (/dev/rdsk/c1t0d0s4) is being checked.
Can't open /dev/rdsk/c1t0d0s4
/dev/rdsk/c1t0d0s4: CAN'T CHECK FILE SYSTEM.
/dev/rdsk/c1t0d0s4: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

WARNING - Unable to repair the /var filesystem. Run fsck
manually (fsck -F ufs /dev/rdsk/c1t0d0s4). Exit the shell when
done to continue the boot process.


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

Mar 23 11:06:19 su: 'su root' succeeded for root on /dev/console
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   February 2004
Sourcing //.profile-EIS.....
root@PFITDB1A #
root@PFITDB1A #
root@PFITDB1A # init 5
root@PFITDB1A # WARNING: Power button is pressed, powering down the system!

Hardware Power On

Probing core system FRUs.. Done
Executing POST w/%o0 = 0000.0800.0101.2041
0:0>
0:0>@(#) Sun Fire[TM] V480/V490 POST 4.15.6 2005/01/06 10:48
       /dat/fw/common-source/firmware_re/post/post-build-4.15.6/Camelot/cstone/integrated  (firmware_re)  
0:0>Copyright ? 2005 Sun Microsystems, Inc. All rights reserved
  SUN PROPRIETARY/CONFIDENTIAL.
  Use is subject to license terms.
0:0>Jump from OBP->POST.
0:0>Diag level set to MIN.
0:0>Verbosity level set to NORMAL.
0:0>
0:0>Start selftest...
0:0>CPUs present in system: 0:0 1:0 2:0 3:0
0:0>Test CPU(s)....Done
0:0>Init Scan/I2C....Done
0:0>Basic Memory Test....Done
0:0>Memory Block....Done
0:0>IO-Bridge Tests....Done
0:0>Enable Errors....Done
0:0>INFO:
0:0>    POST Passed all devices.
0:0>POST:       Return to OBP.
POST Reset

Enabling system bus....... Done
Probing Memory............ Done
Initializing CPUs......... Done
Initializing boot memory.. Done

Initializing OpenBoot
Probing system devices
Probing I/O buses

Probing system devices
Probing I/O buses


Sun Fire V490, No Keyboard
Copyright 1998-2004 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.15.6, 16384 MB memory installed, Serial #67174672.
Ethernet address 0:14:4f:1:1:10, Host ID: 84010110.





Running diagnostic script obdiag/normal

Testing /pci@9,600000/SUNW,qlc@2
Testing /pci@9,700000/ebus@1/i2c@1,2e
Testing /pci@9,700000/ebus@1/i2c@1,30
Testing /pci@9,700000/ebus@1/bbc@1,0
Testing /pci@9,700000/ebus@1
Testing /pci@9,600000/network@1
Testing /pci@9,700000/network@2
Testing /pci@9,700000/usb@1,3
Testing /pci@9,700000/ebus@1/pmc@1,300700
Testing /pci@9,700000/ebus@1/rtc@1,300070


                                                                     
{3} ok
WARNING: Power Supply 1 not receiving AC power.

{3} ok
{3} ok boot cdrom -s
Resetting ...


Enabling system bus....... Done
Initializing CPUs......... Done
Initializing boot memory.. Done

Initializing OpenBoot
Probing system devices
Probing I/O buses

Probing system devices
Probing I/O buses


Sun Fire V490, No Keyboard
Copyright 1998-2004 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.15.6, 16384 MB memory installed, Serial #67174672.
Ethernet address 0:14:4f:1:1:10, Host ID: 84010110.




                                                                     
Rebooting with command: boot cdrom -s
Boot device: /pci@8,700000/ide@6/cdrom@0,0:f  File and args: -s
SunOS Release 5.8 Version Generic_108528-29 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Configuring /dev and /devices
Using RPC Bootparams for network configuration information.
Skipping interface fcip0
Skipping interface ce3
Skipping interface ce2
Skipping interface ce1
Skipping interface ce0
-
INIT: SINGLE USER MODE
#
# sync
# sync
# mkdir a
# mount /dev/dsk/c1t0d0s0 /a
# drvconfig -r /a -p /a/etc/path_to_inst
# cd /devices
# find . -print | cpio -pduVm /a/devices
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
.....................................
0 blocks
# disks -r /a
# devlinks -r /a
# sync
# reboot -- -r
syncing file systems... done
rebooting...
Resetting ...


Software Reset

Enabling system bus....... Done
Initializing CPUs......... Done
Initializing boot memory.. Done

Initializing OpenBoot
Probing system devices
Probing I/O buses

Probing system devices
Probing I/O buses


Sun Fire V490, No Keyboard
Copyright 1998-2004 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.15.6, 16384 MB memory installed, Serial #67174672.
Ethernet address 0:14:4f:1:1:10, Host ID: 84010110.




                                                                     
Rebooting with command: boot -r

WARNING: Power Supply 1 not receiving AC power.
Boot device: /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0  File and args: -r
SunOS Release 5.8 Version Generic_117350-28 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
ifconfig: plumb: ce0: Bad file number
moving addresses from failed IPv4 interfaces: ce0 (couldn't move, no alternative interface).
Hostname: PFITDB1A
metainit: PFITDB1A: there are no existing databases

Configuring /dev and /devices
Configuring the /dev directory (compatibility devices)
The system is coming up.  Please wait.
checking ufs filesystems
/dev/rdsk/c1t0d0s3: is stable.
/dev/rdsk/c1t0d0s7: is stable.
in.rdisc: No interfaces up
Starting IPv4 routing daemon.
starting rpc services: rpcbind done.
Setting default IPv4 interface for multicast: add net 224.0/4: gateway PFITDB1A
syslog service starting.
automount: /home: already mounted
Print services started.
Mar 23 11:22:44 PFITDB1A sendmail[269]: My unqualified host name (PFITDB1A) unknown; sleeping for retry
volume management starting.
The system is ready.

PFITDB1A console login: root
Password:
Mar 23 11:22:50 PFITDB1A login: ROOT LOGIN /dev/console
Last login: Wed Mar 22 13:39:52 on console
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   February 2004
Sourcing //.profile-EIS.....
root@PFITDB1A # Mar 23 11:22:55 PFITDB1A picld[94]: Device PS1 AC UNAVAILABLE
Mar 23 11:22:56 PFITDB1A picld[94]: FSP_GEN_FAULT_LED has turned ON
Mar 23 11:23:10 PFITDB1A picld[94]: Device PS1 AC UNAVAILABLE
root@PFITDB1A #
root@PFITDB1A #
root@PFITDB1A #

论坛徽章:
0
26 [报告]
发表于 2008-04-26 17:32 |只看该作者
。。。。。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP