No Write Permission on ACFS Mount Point

电玩女神 2022-08-08 03:19 264阅读 0赞

In this Document








  Symptoms







  Changes







  Cause







  Solution







  References

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.3 to 11.2.0.3 [Release 11.2]
Linux x86-64

SYMPTOMS

As oracle/ Grid user

oracle@ ~]$ cd /backup/
[oracle@ backup]$ touch test
touch: cannot touch `test’: Permission denied
[oracle@ backup]$

As root

[root@ oracle]# cd /backup/
[root@ backup]# touch test
touch: cannot touch `test’: Permission denied
[root@ backup]#

The permission on the mount point was 755 — still they had the above issue.

You are trying to vi open a General Purpose ACFS and encountering

  1. E212: Can't open file for writing

CHANGES

none

CAUSE

SELinux is enabled on the system

strace -aef -o /temp/strace.out vi test.txt

shows:

open(“/lib64/libselinux.so.1”, O_RDONLY) = 3 <————————- here

open(“/proc/self/task/9688/attr/current”, O_RDONLY) = 4
read(4, “unconfined_u:unconfined_r:unconf”…, 4095) = 54
close(4) = 0
getxattr(“/var/tmp/test.txt.swp”, “security.selinux”,
“unconfined_u:object_r:user_tmp_t:s0”, 255) = 36 <———————- here
open(“/selinux/mls”, O_RDONLY) = 4
read(4, “1”, 19) = 1
close(4) = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC, 0) = 4
connect(4, {sa_family=AF_FILE, path=”/var/run/setrans/.setrans-unix”}, 110) =
-1 ENOENT (No such file or directory)
close(4) = 0
getxattr(“/var/tmp/test.txt.swp”, “security.selinux”,
“unconfined_u:object_r:user_tmp_t:s0”, 255) = 36
lseek(3, 0, SEEK_SET) = 0
write(3, “b0VIM 7.2\0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\330%\0\0grid”…, 4096) =
4096
select(1, [0], NULL, [0], {0, 0}) = 0 (Timeout)

SOLUTION

Disable SELinux — They were able to create the files in the acfs directory

Documentation reference for compatibility of SELinux and ACFS:
-————————————————————————————————————————————————
http://st-doc.us.oracle.com/11/112/install.112/e41961/storage.htm\#CWLIN257
Oracle® Grid Infrastructure Installation Guide
11g Release 2 (11.2) for Linux
E41961-03
Note:
Deployment of Security Enhanced Linux (SELinux) is not supported on Oracle
ACFS file systems.
-————————————————————————————————————————————————

Please use ‘sestatus’ to check if SELinux is enabled. If enabled, it must be disabled.

In this Document








  Symptoms







  Cause







  Solution

APPLIES TO:

Oracle Database - Standard Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

SYMPTOMS

Touching a file on ACFS filesystem gives permisison denied error

cd /u01/app/oracle/product/11.2.0/dbhome_1
[root@oracsort2 dbhome_1]$ touch kk
touch: cannot touch `kk’: Permission denied

CAUSE

Selinux is enabled causing the issue.

SOLUTION

Disable selinux and try the touch again

发表评论

表情:
评论列表 (有 0 条评论,264人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Copy-On-Write 机制

    “写时复制”——要写的时候复制一份副本,往副本里面写,然后引用到这个副本,在引用到这个副本之前有读操作的话,读的还是之前的老版本,读写分离,写不影响读可以并发读读,读写,但是写