On Nov 29, 2012, at 12:39 AM, Alfonso Pardo wrote:
> I need to monitoring a directory in the lustre file system.

We don't have any inotify or dnotify support for Lustre.  In Lustre 2.x it is 
possible to monitor the whole filesystem with the Lustre ChangeLog 
functionality.  It might be an interesting project for someone to wire up the 
ChangeLog to the kernel inotify/dnotify, though that would obviously take some 
significant effort.

> I want to change the group id for each new file written in the directory.

You could just use the BSD-style directory group ownership to force all new 
files created there to have a specific group ID?

    chgrp {group} /path/to/dir
    chmod g+s /path/to/dir

Now all new files will have the group "{group}".  This is not Lustre-specific, 
it works for other filesystems as well.

> Is it possible to ask to the MDS the file attributes to obtain more speed in 
> my chown script?

The "lfs find" code does fetch attributes from just the MDS.  There was a 
proposal for a new Linux syscall to be able to get specific attributes of a 
file instead of all of them:

http://lists.openwall.net/linux-ext4/2010/07/01/11

but it never quite made it into the kernel.

> One more thing, is it possible to ask to the MDS the last wrote files? And 
> then apply the new group id only to the new files.
>  
>  
>  
> Thanks in advance
> ---------------------------- Confidencialidad: Este mensaje y sus ficheros 
> adjuntos se dirige exclusivamente a su destinatario y puede contener 
> información privilegiada o confidencial. Si no es vd. el destinatario 
> indicado, queda notificado de que la utilización, divulgación y/o copia sin 
> autorización está prohibida en virtud de la legislación vigente. Si ha 
> recibido este mensaje por error, le rogamos que nos lo comunique 
> inmediatamente respondiendo al mensaje y proceda a su destrucción. 
> Disclaimer: This message and its attached files is intended exclusively for 
> its recipients and may contain confidential information. If you received this 
> e-mail in error you are hereby notified that any dissemination, copy or 
> disclosure of this communication is strictly prohibited and may be unlawful. 
> In this case, please notify us by a reply and delete this email and its 
> contents immediately. ----------------------------
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss@lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss

Cheers, Andreas
--
Andreas Dilger
Lustre Software Architect
Intel Corporation






_______________________________________________
Lustre-discuss mailing list
Lustre-discuss@lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-discuss

Reply via email to