Chinaunix首页 | 论坛 | 博客
  • 博客访问: 291781
  • 博文数量: 79
  • 博客积分: 2541
  • 博客等级: 少校
  • 技术积分: 510
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-29 15:39
文章分类

全部博文(79)

文章存档

2012年(2)

2011年(47)

2010年(30)

分类: 系统运维

2011-07-01 08:52:32

svc:/system/filesystem/local在maintenance status的解决思路

shell>svcadm enable svc:/system/filesystem/local                     /*开启local服务*/
shell>svcs -l svc:/system/filesystem/local
fmri         svc:/system/filesystem/local:default
name         local file system mounts
enabled      true
state        maintenance                                           /*依旧在维护模式*/        
next_state   none
state_time   Thu Jun 03 18:00:01 2010
logfile      /var/svc/log/system-filesystem-local:default.log
restarter    svc:/system/svc/restarter:default
dependency   require_all/none svc:/milestone/single-user (online)
dependency   require_all/none svc:/system/filesystem/minimal (online)
dependency   require_all/none svc:/system/vxvm/vxvm-reconfig (online)
shell>
shell>who -r
   .       run-level 3  Jun  3 17:59     3      0  S
shell>uname -a
SunOS shell 5.10 Generic_139555-08 sun4v sparc SUNW,SPARC-Enterprise-T1000
shell>
shell>mount -a
mount: /dev/md/dsk/d8 is already mounted or /globaldevices is busy
mount: /tmp is already mounted or swap is busy
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/taplog: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/tap: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
shell>
shell>/sbin/mountall
mount: /dev/md/dsk/d8 is already mounted or /globaldevices is busy
mount: /tmp is already mounted or swap is busy
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/tap: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/taplog: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
shell>
shell>svcadm -v disable svc:/system/filesystem/local
svc:/system/filesystem/local:default disabled.
shell>svcadm -v enable svc:/system/filesystem/local
svc:/system/filesystem/local:default enabled.
shell>svc:/system/filesystem/local:default: WARNING: /sbin/mountall -l failed: exit status 1
Reading ZFS config: done.
Jun  4 14:35:56 svc.startd[7]: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status 95.
Jun  4 14:35:56 svc.startd[7]: system/filesystem/local:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
shell>
查看local服务日志:
shell>
shell>cat /var/svc/log/system-filesystem-local:default.log
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/taplog: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/tap: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
WARNING: /sbin/mountall -l failed: exit status 1
[ May 25 12:03:28 Method "start" exited with status 95 ]
[ May 26 16:12:37 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/taplog: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/tap: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
WARNING: /sbin/mountall -l failed: exit status 1
[ May 26 16:12:39 Method "start" exited with status 95 ]
[ Jun  2 16:16:29 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/taplog: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/tap: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
WARNING: /sbin/mountall -l failed: exit status 1
[ Jun  2 16:16:31 Method "start" exited with status 95 ]
[ Jun  2 17:36:17 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/taplog: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/tap: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
WARNING: /sbin/mountall -l failed: exit status 1
[ Jun  2 17:36:19 Method "start" exited with status 95 ]
[ Jun  3 17:59:58 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/tap: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/taplog: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
WARNING: /sbin/mountall -l failed: exit status 1
[ Jun  3 18:00:01 Method "start" exited with status 95 ]
[ Jun  4 14:35:43 Leaving maintenance because disable requested. ]
[ Jun  4 14:35:43 Disabled. ]
[ Jun  4 14:35:56 Enabled. ]
[ Jun  4 14:35:56 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/tap: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/tapcgwdg/taplog: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
WARNING: /sbin/mountall -l failed: exit status 1
[ Jun  4 14:35:56 Method "start" exited with status 95 ]
shell>

===============================================================
解决办法
It seems you have two entries in your /etc/vfstab file that cannot be mounted. Try to find the two lines beginning with /dev/vx/dsk/tapcgwdg/tap and /dev/vx/dsk/tapcgwdg/taplog, then place a # in front of the two lines and finally run
Code:
svcadm clear filesystem/local
阅读(5173) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~