<HTML>
<HEAD>
<TITLE>Re: [torqueusers] how can i change mom_log directory</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Any reason why you recommend against writing the logs to NFS? We’re looking at moving our logs off our nodes as well, since we’re running a diskless and stateless configuration. Our /var/spool/torque directory is mounted in a tmpfs. Currently if a node reboots, we lose all of our mom_log, which is something I would like to avoid. I was thinking of doing a setup similar to what Yanan is doing, or perhaps just writing a program that would tail the mom log and dump the information to syslog (which, IMO, the MOM should be doing anyway).<BR>
<BR>
____________<BR>
Kamil Kisiel<BR>
HPC Systems Engineer, Zymeworks Inc.<BR>
201-1401 West Broadway,<BR>
Vancouver, BC, V6H 1H6, Canada<BR>
Tel: (604) 678-1388 ext. 135<BR>
Fax: (604) 737-7077<BR>
www.zymeworks.com<BR>
<BR>
<BR>
<BR>
On 30/07/08 10:38 , "Glen Beane" <<a href="glen.beane@gmail.com">glen.beane@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I have a local /var/spool/torque directory on each node and remotely mount a directory with the executables. I assume this is how almost everyone else does it.<BR>
<BR>
<BR>
If you really want your logs all in one place then on each computer you could symlink /var/spool/torque/mom_logs to /raida/PBS/hostname/mom_logs where hostname is the name of the host you are creating the symlink on. so you are setting up node10 you would ssh to node10 and symlink /var/spool/torque/mom_logs to /raida/PBS/node10/mom_logs<BR>
<BR>
you can also specify the path to a log file for pbs_mom on the command line, so if you want your logs written to your NFS mounted directory you could specify a path for the log file. Note that if you do this you will not get a new log file every day, you'll have one log file that keeps getting bigger and bigger so you will want to setup log rolling (pbs_mom can do the log rolling if you set some parameters in the config file)<BR>
<BR>
<BR>
<BR>
I still think this is all a bad idea. I would have local directories for the mom logs though, I would not write the logs to NFS <BR>
<BR>
<BR>
<BR>
On Wed, Jul 30, 2008 at 1:24 PM, Yanan Sun <<a href="nancyprc@gmail.com">nancyprc@gmail.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>so you mean if i don't copy the whole thing on each computer, it can<BR>
not have seperate jobs directory and log files?<BR>
<BR>
On Wed, Jul 30, 2008 at 1:15 PM, Glen Beane <<a href="glen.beane@gmail.com">glen.beane@gmail.com</a>> wrote:<BR>
> I would have a local pbs spool directory (like /var/spool/torque) on each<BR>
> compute node. I think it is a bad idea to mount them remotely. You'll run<BR>
> into problems with sharing the mom_priv/jobs directory too I think.<BR>
><BR>
><BR>
><BR>
><BR>
><BR>
> On Wed, Jul 30, 2008 at 1:03 PM, Yanan Sun <<a href="nancyprc@gmail.com">nancyprc@gmail.com</a>> wrote:<BR>
>><BR>
>> hi, there<BR>
>><BR>
>> i have torque/maui installed in our cluster system. the headnode is<BR>
>> running fine and i am trying to add more nodes. the files already<BR>
>> mounted on each nodes, but for the way how it mounted, the mom_log<BR>
>> file is read only. i don't want to change the way mount files on every<BR>
>> nodes, soi am trying to change the directory of the log file goes to.<BR>
>> now everything goes to /usr/PBS_spool/mom_logs, i want to change to<BR>
>> /raida/PBS/$hostname/mom_logs<BR>
>> how can i change it?<BR>
>> thanks.<BR>
>><BR>
>> Yanan<BR>
>> _______________________________________________<BR>
>> torqueusers mailing list<BR>
>> <a href="torqueusers@supercluster.org">torqueusers@supercluster.org</a><BR>
>> <a href="http://www.supercluster.org/mailman/listinfo/torqueusers">http://www.supercluster.org/mailman/listinfo/torqueusers</a><BR>
><BR>
><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
torqueusers mailing list<BR>
<a href="torqueusers@supercluster.org">torqueusers@supercluster.org</a><BR>
<a href="http://www.supercluster.org/mailman/listinfo/torqueusers">http://www.supercluster.org/mailman/listinfo/torqueusers</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
<BR />
<BR />
<HR />
Notice of Confidentiality: The information transmitted is intended only for the<BR />
person or entity to which it is addressed and may contain confidential and/or<BR />
privileged material. Any review, re-transmission, dissemination or other use of<BR />
or taking of any action in reliance upon this information by persons or entities<BR />
other than the intended recipient is prohibited. If you received this in error<BR />
please contact the sender immediately by return electronic transmission and then<BR />
immediately delete this transmission including all attachments without copying,<BR />
distributing or disclosing the same.<BR />
</BODY>
</HTML>