绑定完请刷新页面
取消
刷新

分享好友

×
取消 复制
执行asmcmd报错Can not create path处理
2021-05-27 14:34:41

作者:王坤,微信公众号:rundba


某exadata环境执行asmcmd报错,Can not create path /u01/app/log/diag/asmcmd...,创建短目录后,递归目录自行创建,再次执行恢复正常。






1. asmcmd报错


[grid@dw01dbadm01 ~]$ asmcmdCan not create path /u01/app/log/diag/asmcmd Can not create path /u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/alert Can not create path /u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/trace Can't open '/u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/alert/alert.log' for appendCLSU-00100: operating system function: open failed failed with error data: 2CLSU-00101: operating system error message: No such file or directoryCLSU-00103: error location: SlfFopen1

Can't open '/u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/alert/alert.log' for appendCLSU-00100: operating system function: open failed failed with error data: 2CLSU-00101: operating system error message: No such file or directoryCLSU-00103: error location: SlfFopen1Can't open '/u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/alert/alert.log' for appendCLSU-00100: operating system function: open failed failed with error data: 2CLSU-00101: operating system error message: No such file or directoryCLSU-00103: error location: SlfFopen1

Can't open '/u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/alert/alert.log' for appendCLSU-00100: operating system function: open failed failed with error data: 2CLSU-00101: operating system error message: No such file or directoryCLSU-00103: error location: SlfFopen1

Can't open '/u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/alert/alert.log' for appendCLSU-00100: operating system function: open failed failed with error data: 2CLSU-00101: operating system error message: No such file or directoryCLSU-00103: error location: SlfFopen1



2. 原因

根据提示文件及目录缺失。



3. 问题解决


手动创建log目录,子孙级目录及文件会逐层创建。

[root@dw01dbadm01 u01]# cd /u01/app[root@dw01dbadm01 app]# mkdir log[root@dw01dbadm01 app]# ls -lrttotal 20drwxr-xr-x  3 root   oinstall 4096 May 28 07:20 12.2..1drwxr-xr-x 12 grid   oinstall 4096 May 28 07:48 griddrwxrwx---  6 grid   oinstall 4096 May 28 08:36 oraInventorydrwxr-xr-x  8 oracle oinstall 4096 Jun 10 11:05 oracledrwxr-xr-x  2 root   root     4096 Jun 10 14:20 log[root@dw01dbadm01 app]# chown grid:oinstall log



4. 验证-OK


[grid@dw01dbadm01 ~]$ asmcmd

ASMCMD>



5. 小结


目录缺失为非正常现象,人为操作可能性较大,可能是被误删,可通过历史命令或操作系统审计进一步确认故障原因。加强人员责任心,更改rm命令,并创建回收站,同时建设系统审计,避免类似问题再次出现。

—END—



分享好友

分享这个小栈给你的朋友们,一起进步吧。

技术文章精选
创建时间:2020-05-11 11:08:47
小栈内分享每位技术人员的精彩笔记,欢迎来撩~
展开
订阅须知

• 所有用户可根据关注领域订阅专区或所有专区

• 付费订阅:虚拟交易,一经交易不退款;若特殊情况,可3日内客服咨询

• 专区发布评论属默认订阅所评论专区(除付费小栈外)

栈主、嘉宾

查看更多
  • 小雨滴
    栈主

小栈成员

查看更多
  • coldman
  • 编程小梦
  • Giao
  • gaokeke123
戳我,来吐槽~