<?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: Open files on a disk in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337238#M31291</link>
    <description>$ WRITE SYS$OUTPUT F$GETDVI("disk-name","TRANSCNT") will show you the transaction count, same as in $ SHOW DEV d Trans Count column. A TRANSCNT greater than 1 means open files (including devices spooled to that disk).&lt;BR /&gt;&lt;BR /&gt;In a cluster, you would need to issue this command on ALL nodes, which have the disk mounted.</description>
    <pubDate>Wed, 21 Jul 2004 05:49:08 GMT</pubDate>
    <dc:creator>Volker Halle</dc:creator>
    <dc:date>2004-07-21T05:49:08Z</dc:date>
    <item>
      <title>Open files on a disk</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337234#M31287</link>
      <description>Is there anyway other than sho dev/file to find out if any files are open on a disk?&lt;BR /&gt;What  I am trying to do is to check for opened files before dismounting disks.&lt;BR /&gt;The reason for this is that we have a 'spare' set of disks that are mounted cluster wide for testing/training purposes. At night these disks are dismounted and added to live mirror sets. once the 'cloning' is completed they are taken out of mirrsets and mounted locally to take tape backsups. these disks are then mounted cluster wide as separate data disks.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jul 2004 05:32:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337234#M31287</guid>
      <dc:creator>Zahid Ghani</dc:creator>
      <dc:date>2004-07-21T05:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Open files on a disk</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337235#M31288</link>
      <description>You could just dismount the disk and deal with the status return indicating that the disk was not dismounted as there are files open. Then parhaps do SHOW DEVICE/FILES to see which files. In a program I suspect there would a volume lock you could look at but why not let DISMOUNT do the check for you.</description>
      <pubDate>Wed, 21 Jul 2004 05:35:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337235#M31288</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-07-21T05:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Open files on a disk</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337236#M31289</link>
      <description>Ian- I am dismounting the disks but unfortunately one user ignored the instructions. As I am dismounting cluster wide the dismount command did not dismount. The user process went into RWAST state and left dismount command in very messy state mountveri etc. &lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jul 2004 05:44:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337236#M31289</guid>
      <dc:creator>Zahid Ghani</dc:creator>
      <dc:date>2004-07-21T05:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Open files on a disk</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337237#M31290</link>
      <description>Also check SHO DEV/FILE on each node of cluster. You can use the  following command and then work with this output file a.out to kill the process which are opening the files.&lt;BR /&gt;&lt;BR /&gt;$DEFIN/USER SYS$OUTPUT A.OUT&lt;BR /&gt;$MC SYSMAN SET E/C&lt;BR /&gt;DO SHO DEV/FILE &lt;DEVICE_NAME&gt;&lt;BR /&gt;EXIT&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Lokesh Jain&lt;/DEVICE_NAME&gt;</description>
      <pubDate>Wed, 21 Jul 2004 05:46:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337237#M31290</guid>
      <dc:creator>Lokesh_2</dc:creator>
      <dc:date>2004-07-21T05:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Open files on a disk</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337238#M31291</link>
      <description>$ WRITE SYS$OUTPUT F$GETDVI("disk-name","TRANSCNT") will show you the transaction count, same as in $ SHOW DEV d Trans Count column. A TRANSCNT greater than 1 means open files (including devices spooled to that disk).&lt;BR /&gt;&lt;BR /&gt;In a cluster, you would need to issue this command on ALL nodes, which have the disk mounted.</description>
      <pubDate>Wed, 21 Jul 2004 05:49:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337238#M31291</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2004-07-21T05:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Open files on a disk</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337239#M31292</link>
      <description>You can kill the user processes with STOP/ID before dismounting the disk. This will free up your disk for dismount.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Lokesh</description>
      <pubDate>Wed, 21 Jul 2004 05:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337239#M31292</guid>
      <dc:creator>Lokesh_2</dc:creator>
      <dc:date>2004-07-21T05:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Open files on a disk</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337240#M31293</link>
      <description>Volker - thats exactly what I was after.thanks ill try it.&lt;BR /&gt;Lokesh - I don't its a good idea going around killing users even though they are a pain.</description>
      <pubDate>Wed, 21 Jul 2004 05:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337240#M31293</guid>
      <dc:creator>Zahid Ghani</dc:creator>
      <dc:date>2004-07-21T05:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Open files on a disk</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337241#M31294</link>
      <description>Ahem...&lt;BR /&gt;Lokesh suggested to stop the user's process(es), not the human beings ;-)&lt;BR /&gt;&lt;BR /&gt;Watch out for any 00000000 PIDs if you are going over the list of:&lt;BR /&gt;$ SHOW DEVICE/FILES&lt;BR /&gt;&lt;BR /&gt;Remember that '$ STOP/IDENTIFICATION=0' is a different spelling for LOGOUT.</description>
      <pubDate>Wed, 21 Jul 2004 07:25:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337241#M31294</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2004-07-21T07:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Open files on a disk</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337242#M31295</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;one way to skip over the 00000000 PID files is to either test for this particular PID or take advantage of the fact that they are not associated with a process name. Also &lt;BR /&gt;dismount/override=checks and parsing the output of that command might be worth a thought. This should prevent race conditions, that are possible if you do a &lt;BR /&gt;&lt;BR /&gt;show dev/files&lt;BR /&gt;kill proc with open files&lt;BR /&gt;dismount &lt;BR /&gt;&lt;BR /&gt;since between the show dev/files and the dismount new files can potentially be opened.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Wed, 21 Jul 2004 21:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337242#M31295</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-07-21T21:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Open files on a disk</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337243#M31296</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The 00000000 can be skipped by adding /NOSYS.&lt;BR /&gt;&lt;BR /&gt;I also noticed that after stopping a process with stop/id you need to to wait until the process is gone. Otherwise some files might still be open at the moment of the dismount.&lt;BR /&gt;&lt;BR /&gt;To make the shutdown lighter, I stop all interactive and batch jobs at the beginning of the shutdown. All application servers that are running detached are stopped later by application shutdown procedures.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 22 Jul 2004 01:34:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/open-files-on-a-disk/m-p/3337243#M31296</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-07-22T01:34:33Z</dc:date>
    </item>
  </channel>
</rss>

