Hello, I need to monitoring a directory in the lustre file system. I want to change the group id for each new file written in the directory. Is it possible to ask to the MDS the file attributes to obtain more speed in my chown script? 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. ---------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20121129/486b4a11/attachment.html
I found it!!! http://wiki.lustre.org/manual/LustreManual20_HTML/LustreMonitoring.html From: Alfonso Pardo Sent: Thursday, November 29, 2012 8:39 AM To: lustre-discuss at lists.lustre.org Cc: wc-discuss at whamcloud.com Subject: [Lustre-discuss] MDS files attribute Hello, I need to monitoring a directory in the lustre file system. I want to change the group id for each new file written in the directory. Is it possible to ask to the MDS the file attributes to obtain more speed in my chown script? 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 at lists.lustre.org http://lists.lustre.org/mailman/listinfo/lustre-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20121129/55e35456/attachment.html
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 at lists.lustre.org > http://lists.lustre.org/mailman/listinfo/lustre-discussCheers, Andreas -- Andreas Dilger Lustre Software Architect Intel Corporation