免费注册 查看新帖 |

Chinaunix

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

求助,solaris10 下ssh一直处于offline [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-04-13 11:22 |只看该作者 |倒序浏览
本帖最后由 yxbwzx 于 2012-04-13 11:25 编辑

首先,刚接触solaris
# svcs -l ssh
fmri             svc:/network/ssh:default
name           SSH server
enabled        true
state           offline
next_state   none
dependency  require_all/none svc:/system/filesystem/local (maintenance)
dependency  optional_all/none svc:/system/filesystem/autofs (offline)
其余依赖都处于online状态

# svcadm enable ssh
# svcs ssh

状态依旧是offline

请问该怎么解决

论坛徽章:
0
2 [报告]
发表于 2012-04-13 11:36 |只看该作者
svcs -xv 看看那是不是有依赖服务没起来啊

论坛徽章:
0
3 [报告]
发表于 2012-04-13 12:54 |只看该作者
yzkj01 发表于 2012-04-13 11:36
svcs -xv 看看那是不是有依赖服务没起来啊


# svcs -xv ssh

svc:/network/ssh:default (SSH server)
State: offline since Fri Apr 13 11:52:10 2012
Reason: Service svc:/system/filesystem/local:default is not running because a method failed.
See: http://sun.com/msg/SMF-8000-GE
Path: svc:/network/ssh:default
            svc:/system/filesystem/local:default
Reason: Service svc:/network/rpc/gss:default is uninitialized.
See: http://sun.com/msg/SMF-8000-GE
Path: svc:/network/ssh:default
            svc:/system/filesystem/autofs:default
                svc:/network/nfs/client:defautl
                    svc:/network/rpc/gss:default
See: man -M /usr/share/man -s 1M sshd
Impact: 3 dependent services are not running:
            svc:/milestone/multi-user-server:default
            svc:/system/basicreg:default
            svc:/system/zones:default

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
4 [报告]
发表于 2012-04-13 13:15 |只看该作者
svc:/system/filesystem/local (maintenance)
文件系统有问题了,fsck检查下

论坛徽章:
1
19周年集字徽章-19
日期:2020-01-08 15:08:20
5 [报告]
发表于 2012-04-13 15:09 |只看该作者
还是蜘蛛眼睛好呀 蜘蛛最近又回归了?

论坛徽章:
0
6 [报告]
发表于 2012-04-13 16:05 |只看该作者
东方蜘蛛 发表于 2012-04-13 13:15
svc:/system/filesystem/local (maintenance)
文件系统有问题了,fsck检查下


# svcadm clear system/filesystem/local

# checking ufs filesystems
fsck:could not stat /dev/rdsk/c0t2d0s2: No such file or directory
fsckall failed with exit code 1.

WARNING -Unable to repair one or more filesystems.
Run fsck manually (fsck filesystem...).

svc:/system/filesystem/local:default: WARNING: /sbin/mountall -l failed: exit status 32
Reading ZFS config: done.

Apr 13 15:30:32 svc.startd[7]: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status 95.
Apr 13 15:30:32 svc.startd[7]: system/filesystem/local:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)

# svcs -xv system/filesystem/local
svc: /system/filesystem/local:default (local file system mounts)
State: maintenance since Fri Apr 13 15:30:32 2012
Reason: Start method exited with $SMP_EXIT_ERR_FATAL.
See: http://sun.com/msg/SMF-8000-KS
See: /var/svc/log/system-filesystem-local:default.log
Impact:35 dependent services are not running:

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
7 [报告]
发表于 2012-04-13 16:19 |只看该作者
fsck:could not stat /dev/rdsk/c0t2d0s2: No such file or directory
fsckall failed with exit code 1.

WARNING -Unable to repair one or more filesystems.
Run fsck manually (fsck filesystem...).

好好检查下你的vfstab是否正确。

论坛徽章:
0
8 [报告]
发表于 2012-04-13 17:11 |只看该作者
东方蜘蛛 发表于 2012-04-13 16:19
fsck:could not stat /dev/rdsk/c0t2d0s2: No such file or directory
fsckall failed with exit code 1.
...


你好,我看了下,但是不太明白是什么问题,请赐教
以下是纯手工输出。。

#to mount                to fsck                       point                       type      pass    at boot     options
#
fd                             -                               /dev/fd                    fd          -         no            -
/proc                        -                               /proc                       proc       -         no            -
/dev/dsk/c0t1d0s1     -                               -                             swap     -         no            -
/dev/dsk/c0t1d0s0     /dev/rdsk/c0t1d0s0    /                              ufs       1         no            -
/dev/dsk/c0t1d0s7     /dev/rdsk/c0t1d0s7    /data                        ufs       2         yes           -
/dev/dsk/c0t2d0s2     /dev/rdsk/c0t2d0s2    /shangda                  ufs       2         yes           -
/devices                    -                               /devices                    devfs     -        no             -
sharefs                     -                               /etc/dfs/sharetab       sharefs  -        no             -
ctfs                          -                               /system/contract        ctfs       -        no             -
objfs                        -                               /system/object           objfs     -        no             -
swap                        -                               /tmp                         tmpfs    -        yes            -

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
9 [报告]
发表于 2012-04-13 17:56 |只看该作者
本帖最后由 东方蜘蛛 于 2012-04-13 17:56 编辑

把c0t2d0s2那行注释掉重启看看。

论坛徽章:
0
10 [报告]
发表于 2012-04-18 16:17 |只看该作者
蜘蛛威武~~我主机换了存储,也遇到这个问题,照蜘蛛说的,将原来的存储在/etc/vfstab中注释掉就好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP