[Ocfs2-users] cannot write to filesystem, permission denied?

Sunil Mushran sunil.mushran at oracle.com
Tue Jun 7 10:25:13 PDT 2011


On 06/07/2011 05:01 AM, Sven Karlsson wrote:
> Hello,
>
> We have installed Fedora 15 to get the latest ocfs2 release nicely
> packaged in a 2.6.38 kernel and ocfs2-tools 1.6.3.
> Setup went fine, mkfs.ocfs2 went fine, a cluster was created and the
> local node added:
>
> # o2cb_ctl -C -i -n mycluster -t cluster
> Cluster mycluster created
> # o2cb_ctl -C -i -n lab -t node -a number=1 -a
> ip_address=192.168.111.5 -a ip_port=7778 -a cluster=mycluster
>
>
> O2CB is configured and starts up as it should and reports that
> mycluster is active, the O2CB heartbeat is active and the filesystem
> mounts OK.
>
> But: writes to the filesystem all fail with 'permission denied'. Example:
>
> # date>  /o2/file.txt
> -bash: /o2/file.txt: Permission denied
> # mkdir /o2/dir
> mkdir: cannot create directory `/o2/dir': Permission denied
> # id
> uid=0(root) gid=0(root)
> groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
> # mount | grep o2
> /dev/mapper/vg01-lv_mycluster on /o2 type ocfs2
> (rw,relatime,_netdev,heartbeat=local,nointr,data=ordered,errors=remount-ro,coherency=full,user_xattr,acl)
>
> According to strace, the permission denied is from
>
> mkdir("/o2/dir", 0777)                  = -1 EACCES (Permission denied)
>
>
>
> Do you know what is the cause of this apparent "read-only" mode?
> (although it is reported as a mounted rw)
>
> Any pointers for further troubleshooting is greatly appreciated!

You have acl enabled. Maybe that is what is triggering EACCES.



More information about the Ocfs2-users mailing list