[Lustre-discuss] Secondary Groups permissions issue on files / directories
Mike Hanby
mhanby at uab.edu
Thu Mar 24 13:21:33 PDT 2011
Howdy,
Our Lustre file system isn't properly supporting secondary groups any longer. This used to work back when we had 1.8.3 installed, when we upgraded to 1.8.5 we also installed a new MDS and backed up / restored our MTD.
All servers and clients are CentOS 5 x86_64 with kernel 2.6.18-194.17.1.el5
Here's what's happening:
1. Create a file as user root and assign group to my users primary group
$ sudo touch /lustre/testfile
$ sudo chgrp myprimary /lustre/testfile
$ sudo chmod 770 /lustre/testfile
2. Writing to the file with 770 and primary group works
$ echo test > /lustre/testfile
$ cat /lustre/testfile
test
3. Change groups to wheel (the first of the secondary groups I am assigned)
$ sudo chgrp wheel /lustre/testfile
4. I can still read and write the file
$ echo test2 > /lustre/testfile
$ cat /lustre/testfile
test2
5. Without changing anything do an ls and then a cat on the file results in permission denied
$ ls -l /lustre/testfile
-rwxrwx--- 1 root wheel 6 Mar 24 15:07 /lustre/testfile
$ cat /lustre/testfile
cat: /lustre/testfile: Permission denied
6. Change the group back to my primary and I can read and write the file many times without issue
7. Change it back to wheel and I can cat the file many times, but once I do an 'ls -l ' on it, I can no longer cat it
8. If I set it to any of my other secondary groups (after changing back to my primary), I can't cat it at all.
This happens on both Infiniband and GigE clients.
The mdt is being mounted with acl support
/dev/sdb /mnt/mdt-mtpt lustre acl 0 0
Any suggestions on where look?
More information about the lustre-discuss
mailing list