执行asmcmd报错Can not create path处理
作者:王坤,微信公众号:rundba
某exadata环境执行asmcmd报错,Can not create path /u01/app/log/diag/asmcmd...,创建短目录后,递归目录自行创建,再次执行恢复正常。
1. asmcmd报错
[grid@dw01dbadm01 ~]$ asmcmd
Can 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 append
CLSU-00100: operating system function: open failed failed with error data: 2
CLSU-00101: operating system error message: No such file or directory
CLSU-00103: error location: SlfFopen1
Can't open '/u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/alert/alert.log' for append
CLSU-00100: operating system function: open failed failed with error data: 2
CLSU-00101: operating system error message: No such file or directory
CLSU-00103: error location: SlfFopen1
Can't open '/u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/alert/alert.log' for append
CLSU-00100: operating system function: open failed failed with error data: 2
CLSU-00101: operating system error message: No such file or directory
CLSU-00103: error location: SlfFopen1
Can't open '/u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/alert/alert.log' for append
CLSU-00100: operating system function: open failed failed with error data: 2
CLSU-00101: operating system error message: No such file or directory
CLSU-00103: error location: SlfFopen1
Can't open '/u01/app/log/diag/asmcmd/user_grid/dw01dbadm01.beijing.com/alert/alert.log' for append
CLSU-00100: operating system function: open failed failed with error data: 2
CLSU-00101: operating system error message: No such file or directory
CLSU-00103: error location: SlfFopen1
2. 原因
根据提示文件及目录缺失。
3. 问题解决
手动创建log目录,子孙级目录及文件会逐层创建。
[root@dw01dbadm01 u01]# cd /u01/app
[root@dw01dbadm01 app]# mkdir log
[root@dw01dbadm01 app]# ls -lrt
total 20
drwxr-xr-x 3 root oinstall 4096 May 28 07:20 12.2..1
drwxr-xr-x 12 grid oinstall 4096 May 28 07:48 grid
drwxrwx--- 6 grid oinstall 4096 May 28 08:36 oraInventory
drwxr-xr-x 8 oracle oinstall 4096 Jun 10 11:05 oracle
drwxr-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—
相关文章