I've created a few OCFS filesystems (RHEL 3, OCFS 1.0.9-12) while attempting to assign ownership by oracle:dba. I've done this both with ocfstool and mkfs.ocfs. They both seem to accept the parameters, but the resulting filesystem is always owned by root:root. This is not a fatal problem, since we can just throw all of our Oracle files into a properly-owned subdirectory in each filesystem, but I was wondering if this was expected behavior. I recall running into something like this with an ext3 Oracle server, so perhaps it doesn't have anything to do with OCFS. Derek
I think this has got more to do with the way the file system was mounted. We have put the entry for mounting ocfs file systems in rc.local in the following manner /bin/mount -t ocfs -o uid=oracle,gid=dba /dev/sda /ocfs01 This mounts with proper permissions. I think if you reboot , the next time it would take it properly or you could put the above entries in rc.local or fstab and then try to unmount and mount -----Original Message----- From: ocfs-users-bounces@oss.oracle.com [mailto:ocfs-users-bounces@oss.oracle.com]On Behalf Of Derek Suzuki Sent: Tuesday, February 10, 2004 5:35 PM To: 'ocfs-users@oss.oracle.com' Subject: [Ocfs-users] Question about filesystem ownership I've created a few OCFS filesystems (RHEL 3, OCFS 1.0.9-12) while attempting to assign ownership by oracle:dba. I've done this both with ocfstool and mkfs.ocfs. They both seem to accept the parameters, but the resulting filesystem is always owned by root:root. This is not a fatal problem, since we can just throw all of our Oracle files into a properly-owned subdirectory in each filesystem, but I was wondering if this was expected behavior. I recall running into something like this with an ext3 Oracle server, so perhaps it doesn't have anything to do with OCFS. Derek _______________________________________________ Ocfs-users mailing list Ocfs-users@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs-users
Doesn't seem to help. When I manually mount with those options, then /bin/mount does show the "uid" and "gid" options set for the mounted filesystem, but permission remain root:root. ocfstool reported root:root for that filesystem even immediately after I selected oracle:dba during the formatting process. -----Original Message----- From: Varghese Abraham To: Derek Suzuki; 'ocfs-users@oss.oracle.com' Sent: 2/10/2004 5:49 PM Subject: RE: [Ocfs-users] Question about filesystem ownership I think this has got more to do with the way the file system was mounted. We have put the entry for mounting ocfs file systems in rc.local in the following manner /bin/mount -t ocfs -o uid=oracle,gid=dba /dev/sda /ocfs01 This mounts with proper permissions. I think if you reboot , the next time it would take it properly or you could put the above entries in rc.local or fstab and then try to unmount and mount
It does seem to do the translation correctly. /bin/mount ends up showing the numeric UID/GID instead of the names I supplied. And ocfstool seems to pull both names and numbers out of the passwd/group files. -----Original Message----- From: Kurt Hackel To: Derek Suzuki Cc: 'Varghese Abraham '; ''ocfs-users@oss.oracle.com' ' Sent: 2/10/2004 8:58 PM Subject: Re: [Ocfs-users] Question about filesystem ownership The mkfs.ocfs arguments for userid and groupid (-u and -g) are for numeric userid/groupids, not for the actual username or group name strings. Same goes for the mount -o options. Thanks! -kurt