<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Make the file size to 0 in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695607#M100404</link>
    <description>I notice that the file in question is at version 1.  Is this the first time you've run the ftp server or have you renamed old log files?  If the answer to both questions is "no" then maybe it's using the same log file every time the process is started and it just keeps appending.&lt;BR /&gt;&lt;BR /&gt;To avoid this you may need to rename the file so that the next time it starts up a new file is created.&lt;BR /&gt;&lt;BR /&gt;By the way, do you Backup this file given that it's open what seems to be 24 x 7 ?&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Oct 2010 23:23:27 GMT</pubDate>
    <dc:creator>John McL</dc:creator>
    <dc:date>2010-10-13T23:23:27Z</dc:date>
    <item>
      <title>Make the file size to 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695599#M100396</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have this file in my system disk: TCPIP$FTP_RUN.LOG which is extremely large. When i try to delete, it gives me this error:&lt;BR /&gt;-RMS-E-FLK, file currently locked by another user&lt;BR /&gt;&lt;BR /&gt;I was thinking instead of deleting it, how can i make this file to 0 bytes. Which is similiar to unix command /dev/null. Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Wed, 06 Oct 2010 03:35:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695599#M100396</guid>
      <dc:creator>jess_14</dc:creator>
      <dc:date>2010-10-06T03:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Make the file size to 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695600#M100397</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In OpenVMS null device is represented as NLA0: Execute the command $ show dev NLA0: to see the null device in VMS. Any reads from NLA0: return an immediate EOF (end of file) status.  All writes to NLA0: return success status. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Oct 2010 03:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695600#M100397</guid>
      <dc:creator>Shriniketan Bhagwat</dc:creator>
      <dc:date>2010-10-06T03:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Make the file size to 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695601#M100398</link>
      <description>Jess,&lt;BR /&gt;&lt;BR /&gt;If the file is locked, it is most likely in use by a process. &lt;BR /&gt;&lt;BR /&gt;The first step would be to identify what process is using the file. Try SHOW DEVICE/FILES to identify the Process ID that is holding the file.&lt;BR /&gt;&lt;BR /&gt;If it is a daemon of some kind, shut down the daemon and restart it. That will likely create a new version of the file. The old version may be archived, compressed, or deleted at your discretion.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Wed, 06 Oct 2010 03:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695601#M100398</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2010-10-06T03:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Make the file size to 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695602#M100399</link>
      <description>This seems to be the logfile from the FTP masterprocess. Try a &lt;BR /&gt;&lt;BR /&gt;$ @sys$manager:tcpip$ftp_shutdown&lt;BR /&gt;$ @sys$manager:tcpip$ftp_startup&lt;BR /&gt;&lt;BR /&gt;This will stop/start the process and will result in a new logfile. You may then purge the old one.&lt;BR /&gt;&lt;BR /&gt;Note: The stop/start kills all FTP processes, so be sure noone actively used FTP (show sys/pro=*FTP*)&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Wed, 06 Oct 2010 03:53:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695602#M100399</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2010-10-06T03:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Make the file size to 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695603#M100400</link>
      <description>Hi, i'd identified the processing locking the files:&lt;BR /&gt;TCPIP$FTP_1     2D400222  [TCPIP$FTP]TCPIP$FTP_RUN.LOG;1&lt;BR /&gt;&lt;BR /&gt;but we r not able to restart the ftp process right now. As this is a 24/7 production system.&lt;BR /&gt;&lt;BR /&gt;Is there any other ways to purge this logfile than shutting down the daemons? :(</description>
      <pubDate>Thu, 07 Oct 2010 01:36:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695603#M100400</guid>
      <dc:creator>jess_14</dc:creator>
      <dc:date>2010-10-07T01:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Make the file size to 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695604#M100401</link>
      <description>I looked around some (ANAL/SYS) and see no alternative. &lt;BR /&gt;This is a DCL output file, unshared. &lt;BR /&gt;So you can not for example $open, $get and $truncate.&lt;BR /&gt;&lt;BR /&gt;You'll have to stop and restart, but as Kalle warns, that will take down the slaves :-( so you need to find a moment without (important :-) users. &lt;BR /&gt;&lt;BR /&gt;Any live session will see "Connection closed by remote host." on stop/id or shutdown, but they'll just blame the network right? &lt;BR /&gt;&lt;BR /&gt;Just curious... how big a problem are we taking about here? a few 100 MB?&lt;BR /&gt;&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Oct 2010 03:12:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695604#M100401</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2010-10-07T03:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Make the file size to 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695605#M100402</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] this is a 24/7 production system.&lt;BR /&gt;&lt;BR /&gt;You can do all kinds of reconfiguration&lt;BR /&gt;(like, say, moving a big log file out of the&lt;BR /&gt;way), and then, when you're ready to put the&lt;BR /&gt;changes into effect, do these:&lt;BR /&gt;&lt;BR /&gt;      tcpip disable service ftp&lt;BR /&gt;      tcpip enable service ftp&lt;BR /&gt;&lt;BR /&gt;which probably takes less than one second to&lt;BR /&gt;complete.  Do you actually have FTP sessions&lt;BR /&gt;running at _all_ times?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note: 24/7 = 3.429.</description>
      <pubDate>Thu, 07 Oct 2010 05:16:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695605#M100402</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-10-07T05:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Make the file size to 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695606#M100403</link>
      <description>jess,&lt;BR /&gt;&lt;BR /&gt;  This is another missing piece of TCPIP - proper 24x7 logfile management. &lt;BR /&gt;&lt;BR /&gt;Unfortunately there isn't any mechanism to close down FTP for new connections, while allowing existing connections to complete. Nor is there a mechanism to send the running process a "cycle logfiles" command. Those are just two fairly simple ways which would do what you need without interruption of service. &lt;BR /&gt;&lt;BR /&gt;If you have a service contract, please log a case asking for this to be implemented (add it to the pile of similar requests submitted over the decades :-(&lt;BR /&gt;&lt;BR /&gt;The quickest way to cycle the log file is as Steven suggested:&lt;BR /&gt;&lt;BR /&gt;$ tcpip disable service ftp&lt;BR /&gt;$ tcpip enable service ftp&lt;BR /&gt;&lt;BR /&gt;HP support will probably say it's better to do:&lt;BR /&gt;&lt;BR /&gt;$ @sys$manager:tcpip$ftp_shutdown&lt;BR /&gt;$ @sys$manager:tcpip$ftp_startup&lt;BR /&gt;&lt;BR /&gt;but the difference is the shutdown procedure clears logical names and tidies up a bit. Given you're just about to redefine them all immediately, the disable/enable is less work.&lt;BR /&gt;&lt;BR /&gt;If you're paranoid about interrupting production transfers, here's a round about way to (possibly) protect yourself.&lt;BR /&gt;&lt;BR /&gt;determine the connection limit for the service:&lt;BR /&gt;&lt;BR /&gt;$ tcpip show service ftp/full&lt;BR /&gt;&lt;BR /&gt;Find a node which won't be doing "real" transfers and set its network interface to 10MB. Choose a large junk file 100's of MB and start enough FTP transfers from that node to consume all the transfer slots. Confirm that all your current FTP transfers are from that node:&lt;BR /&gt;&lt;BR /&gt;$ tcpip show device/port=21&lt;BR /&gt;&lt;BR /&gt;Now bounce your FTP server, knowing that the only transfers you will break are the large junk file.&lt;BR /&gt;&lt;BR /&gt;Clean up any mess.&lt;BR /&gt;&lt;BR /&gt;This assumes that anything which does legitimate FTP transfers will retry if it fails to connect.</description>
      <pubDate>Mon, 11 Oct 2010 02:08:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695606#M100403</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-10-11T02:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Make the file size to 0</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695607#M100404</link>
      <description>I notice that the file in question is at version 1.  Is this the first time you've run the ftp server or have you renamed old log files?  If the answer to both questions is "no" then maybe it's using the same log file every time the process is started and it just keeps appending.&lt;BR /&gt;&lt;BR /&gt;To avoid this you may need to rename the file so that the next time it starts up a new file is created.&lt;BR /&gt;&lt;BR /&gt;By the way, do you Backup this file given that it's open what seems to be 24 x 7 ?&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2010 23:23:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/make-the-file-size-to-0/m-p/4695607#M100404</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2010-10-13T23:23:27Z</dc:date>
    </item>
  </channel>
</rss>

