I am trying to mount the ocfs partitions using the following command Mount -t ocfs -o uid=oracle,gid=dba /dev/sda /ocfs01 as user oracle and group dba. However it mounts the volume as root. But if I use the ocfstool for the first and mount it as oracle:dba, the subsequent mounts using the above command line mounts the volume as oracle:dba. Is there something that I am missing or I will have to only use the ocfstool for the first time. Regards Sriram -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs-users/attachments/20040212/ac6693eb/attachment.htm
This issue was answered in the mailing list just two days ago :) Always good to read the mailing list archives :) ----------------------------------------------- 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. ----------------------------------------------- John -----Original Message----- From: ocfs-users-bounces@oss.oracle.com [mailto:ocfs-users-bounces@oss.oracle.com] On Behalf Of Sriram Sent: Thursday, February 12, 2004 3:48 PM To: ocfs-users@oss.oracle.com Subject: [Ocfs-users] Ocfs mount issues I am trying to mount the ocfs partitions using the following command Mount -t ocfs -o uid=oracle,gid=dba /dev/sda /ocfs01 as user oracle and group dba. However it mounts the volume as root. But if I use the ocfstool for the first and mount it as oracle:dba, the subsequent mounts using the above command line mounts the volume as oracle:dba. Is there something that I am missing or I will have to only use the ocfstool for the first time. Regards Sriram
use the actual id in digits On Thu, Feb 12, 2004 at 03:47:59PM -0800, Sriram wrote:> I am trying to mount the ocfs partitions using the following command > > Mount -t ocfs -o uid=oracle,gid=dba /dev/sda /ocfs01 as user oracle and > group dba. > > However it mounts the volume as root. > > But if I use the ocfstool for the first and mount it as oracle:dba, the > subsequent mounts using the above command line mounts the volume as > oracle:dba. > > Is there something that I am missing or I will have to only use the ocfstool > for the first time. > > > Regards > > Sriram >> _______________________________________________ > Ocfs-users mailing list > Ocfs-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs-users
actuaslly if you did a mkfs.ocfs with the right values, then you don't have to do uid=, gid= but just mount and it should put the mountpoint to the right owner On Thu, Feb 12, 2004 at 03:47:59PM -0800, Sriram wrote:> I am trying to mount the ocfs partitions using the following command > > Mount -t ocfs -o uid=oracle,gid=dba /dev/sda /ocfs01 as user oracle and > group dba. > > However it mounts the volume as root. > > But if I use the ocfstool for the first and mount it as oracle:dba, the > subsequent mounts using the above command line mounts the volume as > oracle:dba. > > Is there something that I am missing or I will have to only use the ocfstool > for the first time. > > > Regards > > Sriram >> _______________________________________________ > Ocfs-users mailing list > Ocfs-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs-users