Re: [lustre-discuss] Large-scale UID/GID changes via lfs

2015-10-16 Thread Dilger, Andreas
Since you need to change the ownership on both the MDT and all OSTs (to 
maintain quota correctness) there isn't much benefit to using the lfs tools for 
this. 

Cheers, Andreas

> On Oct 14, 2015, at 20:53, Ms. Megan Larko  wrote:
> 
> Hello,
> 
> I have been able to successfully use "lfs lsetfacl ." to set and modify 
> permissions on a Lustre file system quickly with a small system because the 
> lfs is directed at the Lustre MDT.  It is similar, I imagine, to using "lfs 
> find..." to search a Lustre fs compared with a *nix "find..." command,  the 
> latter which must touch every stripe located on any OST.
> 
> So, how do a change UID and/or GID over a Lustre file system?  Doing a *nix 
> find and chown seems to have the same detrimental performance.  
> 
> >lfs lgetfact my.file
> The above returns the file ACL info.  I can change permissions and add a 
> group or user access/perm but I don't know how to change the "header" 
> information. (To see the difference in header information, one could try "lfs 
> lgetfact --no-head my.file" which shows the ACL info without the header.)
> 
> >lfs lsetfacl -muser:newPerson:rwx my.file
> The above adds user with those perms to the original user listed in the 
> header info.
> 
> This is using Lustre version 2.6.x (forgot minor number). on RHEL 6.5.
> 
> Suggestions genuinely appreciated.
> Cheers,
> megan
> 
> ___
> lustre-discuss mailing list
> lustre-discuss@lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
___
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org


Re: [lustre-discuss] Large-scale UID/GID changes via lfs

2015-10-15 Thread Scott Nolin
We use robinhood policy engine to do this for GIDs to provide a fake 
group quota sort of thing.


If you have to do this routinely, look into robinhood.

Regards,
Scott


On 10/14/2015 9:52 PM, Ms. Megan Larko wrote:

Hello,

I have been able to successfully use "lfs lsetfacl ." to set and
modify permissions on a Lustre file system quickly with a small system
because the lfs is directed at the Lustre MDT.  It is similar, I
imagine, to using "lfs find..." to search a Lustre fs compared with a
*nix "find..." command,  the latter which must touch every stripe
located on any OST.

So, how do a change UID and/or GID over a Lustre file system?  Doing a
*nix find and chown seems to have the same detrimental performance.

 >lfs lgetfact my.file
The above returns the file ACL info.  I can change permissions and add a
group or user access/perm but I don't know how to change the "header"
information. (To see the difference in header information, one could try
"lfs lgetfact --no-head my.file" which shows the ACL info without the
header.)

 >lfs lsetfacl -muser:newPerson:rwx my.file
The above adds user with those perms to the original user listed in the
header info.

This is using Lustre version 2.6.x (forgot minor number). on RHEL 6.5.

Suggestions genuinely appreciated.
Cheers,
megan



___
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org






smime.p7s
Description: S/MIME Cryptographic Signature
___
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org


[lustre-discuss] Large-scale UID/GID changes via lfs

2015-10-14 Thread Ms. Megan Larko
Hello,

I have been able to successfully use "lfs lsetfacl ." to set and modify
permissions on a Lustre file system quickly with a small system because the
lfs is directed at the Lustre MDT.  It is similar, I imagine, to using "lfs
find..." to search a Lustre fs compared with a *nix "find..." command,  the
latter which must touch every stripe located on any OST.

So, how do a change UID and/or GID over a Lustre file system?  Doing a *nix
find and chown seems to have the same detrimental performance.

>lfs lgetfact my.file
The above returns the file ACL info.  I can change permissions and add a
group or user access/perm but I don't know how to change the "header"
information. (To see the difference in header information, one could try
"lfs lgetfact --no-head my.file" which shows the ACL info without the
header.)

>lfs lsetfacl -muser:newPerson:rwx my.file
The above adds user with those perms to the original user listed in the
header info.

This is using Lustre version 2.6.x (forgot minor number). on RHEL 6.5.

Suggestions genuinely appreciated.
Cheers,
megan
___
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org