免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2957 | 回复: 8
打印 上一主题 下一主题

紧急问题!!!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-08 11:28 |只看该作者 |倒序浏览
紧急问题,操作系统启动不成功,报以下错误,我现在知道错误所在了,可是如何修复呀?主要问题是做完系统镜像后,vfstab文件也都改成md的了,后来在调试文件系统时,又将以前备份的vfstab文件改成现在可用的vfstab文件,将改成md文件系统vfstab改名了,现在就启动不了,只能进入单用户模式,且vfstab等文件不能编辑,有什么办法吗?
[root@test]# ls -al vf*
-rw-r--r--   1 root     root        1624 Apr 29 23:13 vfstab
-rw-r--r--   1 root     root        1549 Apr 24 09:09 vfstab.bak
[root@test]# mv vfstab vfstab1
mv: cannot rename vfstab to vfstab1: Read-only file system

Rebooting with command: boot
Boot device: /pci@8,600000/SUNW,qlc@2/fp@0,0/disk@w21000014c3e84a61,0:a  File and args:
SunOS Release 5.10 Version Generic_118822-25 64-bit
Copyright 1983-2005 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
SUNW,pci-gem0: Using Gigabit SERDES Interface
SUNW,pci-gem0: Auto-Negotiated 1000 Mbps Full-Duplex Link Up
Hostname: test
[ system/sysevent:default failed repeatedly (see 'svcs -x' for details) ]
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run

Root password for system maintenance (control-d to bypass): checking ufs filesystems
/dev/rdsk/c1t0d0s4: is logging.
/dev/rdsk/c1t0d0s6: is logging.
cron aborted: cannot create fifo queue
cron aborted: cannot create fifo queue
cron aborted: cannot create fifo queue
May  8 09:53:08 svc.startd[7]: instance svc:/system/sac:default exited with status 16
cron aborted: cannot create fifo queue
May  8 09:53:08 svc.startd[7]: instance svc:/system/sac:default exited with status 16
May  8 09:53:08 svc.startd[7]: instance svc:/system/sac:default exited with status 16
May  8 09:53:08 svc.startd[7]: instance svc:/system/sac:default exited with status 16
May  8 09:53:08 svc.startd[7]: instance svc:/system/sac:default exited with status 16
cron aborted: cannot create fifo queue
May  8 09:53:08 svc.startd[7]: instance svc:/system/sac:default exited with status 16
May  8 09:53:08 svc.startd[7]: instance svc:/system/sac:default exited with status 16
May  8 09:53:08 svc.startd[7]: instance svc:/system/sac:default exited with status 16
cron aborted: cannot create fifo queue
May  8 09:53:08 svc.startd[7]: instance svc:/system/sac:default exited with status 16
[ system/sac:default failed repeatedly (see 'svcs -x' for details) ]
cron aborted: cannot create fifo queue
cron aborted: cannot create fifo queue
cron aborted: cannot create fifo queue
[ system/cron:default failed repeatedly (see 'svcs -x' for details) ]
May  8 09:53:10 svc.startd[7]: Could not update "running" snapshot for refresh of svc:/system/filesystem/autofs:default.
May  8 09:53:14 test ntpdate[532]: only 1 multicast addr can be used, exiting
May  8 09:53:14 test sendmail[498]: My unqualified host name (test) unknown; sleeping for retry
May  8 09:53:14 test sendmail[499]: My unqualified host name (test) unknown; sleeping for retry
May  8 09:54:14 test sendmail[499]: unable to qualify my own domain name (test) -- using short name
May  8 09:54:14 test sendmail[498]: unable to qualify my own domain name (test) -- using short name
supLogin incorrect

[root@test]# svcs -x
svc:/application/print/server:default (LP print server)
State: disabled since Tue May 08 09:52:52 2007
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: lpsched(1M)
Impact: 2 dependent services are not running.  (Use -v for list.)

svc:/system/sysevent:default (system event notification)
State: maintenance since Tue May 08 09:53:06 2007
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: syseventd(1M)
   See: /etc/svc/volatile/system-sysevent:default.log
Impact: 1 dependent service is not running.  (Use -v for list.)

svc:/system/console-login:default (Console login)
State: offline since Tue May 08 09:52:51 2007
Reason: Unknown.
   See: http://sun.com/msg/SMF-8000-AR
   See: ttymon(1M)
Impact: This service is not running.

svc:/system/sac:default (SAF service access controller)
State: maintenance since Tue May 08 09:53:08 2007
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: sac(1M)
   See: /etc/svc/volatile/system-sac:default.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
State: maintenance since Tue May 08 09:53:09 2007
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: cron(1M)
   See: crontab(1)
   See: /etc/svc/volatile/system-cron:default.log
Impact: This service is not running.

论坛徽章:
0
2 [报告]
发表于 2007-05-08 11:37 |只看该作者
mv: cannot rename vfstab to vfstab1: Read-only file system

Try mount -o remote,rw /
If it doesn't work, try
df -k to find out which device is mounted on / and issue: mount -o remote,rw the_device_name

论坛徽章:
0
3 [报告]
发表于 2007-05-08 11:59 |只看该作者
我刚才按照这个方法做了一下:
镜像盘的boot引导:
①启动信息
#installboot /usr/platform/`uname –i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0
(本系统是solaris10,做这步时提示如下,不知是否完毕:
[root@test]# installboot /usr/platform/ 'uname -i' /lib/fs/ufs/bootblk /dev/rdsk/c1t0d0s0
Usage: installboot bootblk raw-device
[root@test]# installboot /usr/platform/'uname -i' /lib/fs/ufs/bootblk /dev/rdsk/c1t0d0s0
Usage: installboot bootblk raw-device
[root@test]# installboot /usr/platform/'uname -i'/lib/fs/ufs/bootblk /dev/rdsk/c1t0d0s0
/usr/platform/uname -i/lib/fs/ufs/bootblk: File not found )

②修改EEPROM
推荐进入OK模式修改
#ls –l /dev/dsk/c0t0d0s0 **获得启动参数
lrwxrwxrwx 1 root root 41 Jun 14 11:08 /dev/dsk/c0t0d0s0 -> ../../devices/pci@1f,4000/scsi@3/sd@0,0:a
#init 0
ok devalias (察看启动设备)
ok nvalias rootdisk /pci@1f,4000/scsi@3/disk@0,0
ok nvalias mirrdisk /pci@1f,4000/scsi@3/disk@1,0
ok setenv boot-device rootdisk mirrdisk disk:a
③测试
ok boot rootdisk **系统正常启动,找到启动文件
ok boot mirrdisk **系统正常启动,找到启动文件
现在系统的/目前成了
Filesystem            kbytes    used   avail capacity  Mounted on
/pseudo/md@0:0,0,blk 10332220 1018434 9210464    10%    /

论坛徽章:
0
4 [报告]
发表于 2007-05-08 12:04 |只看该作者
原帖由 briangao 于 2007-5-8 11:37 发表

Try mount -o remote,rw /
If it doesn't work, try
df -k to find out which device is mounted on / and issue: mount -o remote,rw the_device_name


谢谢你的解答。
vfstab文件肯定是在/目录下,如果mount -o /的话,系统会不会启不来呀,也就是说连单用户模式都进不了,我是第一次做,谢谢你的继续答复。

现在的问题就是要如何将vfstab文件中的/dev/dsk/c0t0d0s* 改为/dev/md/dsk/d*
jiefangxiaosa 该用户已被删除
5 [报告]
发表于 2007-05-08 19:47 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
jiefangxiaosa 该用户已被删除
6 [报告]
发表于 2007-05-08 19:48 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
7 [报告]
发表于 2007-05-10 10:07 |只看该作者
原帖由 jiefangxiaosa 于 2007-5-8 19:48 发表
当然,前提是有网络引导. 试试看boot cdrom -s后修复呢?


试着boot cdrom -s了,可是提示需要输入filename,输入什么呢,试着输入vfstab,提示not found this file,输入其它也是,下一步该如何呢

论坛徽章:
0
8 [报告]
发表于 2007-05-10 16:36 |只看该作者
mount -o remote,rw /
无法做这步,总是提示/ busy

论坛徽章:
0
9 [报告]
发表于 2007-05-10 16:57 |只看该作者
原帖由 unix-xyz 于 2007-5-10 10:07 发表


试着boot cdrom -s了,可是提示需要输入filename,输入什么呢,试着输入vfstab,提示not found this file,输入其它也是,下一步该如何呢


没记错的话,应该输入unix
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP