<?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: recovery of unsaved data in vax/vms in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377288#M93792</link>
    <description>Prabir,&lt;BR /&gt;&lt;BR /&gt;As Steven has mentioned, SET FILE/END_OF_FILE is useful, as is SET FILE/ATTRIBUTE.&lt;BR /&gt;&lt;BR /&gt;The challenge is finding the last record written to the file. Records are written to the file more or less in order (there can be some reordering of the writing of individual disk blocks for a variety of reasons).&lt;BR /&gt;&lt;BR /&gt;Resetting the end of file to the absolute end is a start on the process. Finding the actual end of the file is the real challenge. This analysis can be time consuming or not, depending on what was in those disk blocks before they were used and how obvious the actual record contents are. One technique for examining the contents is to use the DUMP utility.&lt;BR /&gt;&lt;BR /&gt;You may seriously need to consider outside assistance, as you have implied [Disclosure: As do others in this forum, my firm does provide such services].&lt;BR /&gt;&lt;BR /&gt;Sorting out the end of the actually written data involves analyzing the actual contents of the file, and can be time consuming. Thus, I would consider outside the scope of what can be done in an ITRC response.&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>Thu, 12 Mar 2009 03:41:23 GMT</pubDate>
    <dc:creator>Robert Gezelter</dc:creator>
    <dc:date>2009-03-12T03:41:23Z</dc:date>
    <item>
      <title>recovery of unsaved data in vax/vms</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377285#M93789</link>
      <description>&lt;!--!*#--&gt;hi&lt;BR /&gt;request help from the expert. iam looking after vax4000-505 with vms6.2 that is maintaining vital live data in a record file stored in data disk. the system of recording is alloting block of 104 with a data-record-file of 0/104 size. the allotment of block increased until itis alloted 25000 block. That time it is saved with actual size of block/alloted block i.e. say data-record-file 24835/25000. the system hanged and therefore rebooted when data record file having 0/12485. after rebooting the data-record-file showing a file as data-recod-file 0/12485. &lt;BR /&gt;i have doubt whether i can recover the data but as it is very vital information is there any possibility to recover the unsaved data if it is dumped any where.&lt;BR /&gt;i will be thankful if some one help to recover the vital data. there is only single reboot of the system after halting.</description>
      <pubDate>Thu, 12 Mar 2009 02:13:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377285#M93789</guid>
      <dc:creator>prabir kumar patra</dc:creator>
      <dc:date>2009-03-12T02:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: recovery of unsaved data in vax/vms</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377286#M93790</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] from the expert [...]&lt;BR /&gt;&lt;BR /&gt;I'm not he, but you might try:&lt;BR /&gt;&lt;BR /&gt;      SET FILE /END_OF_FILE&lt;BR /&gt;&lt;BR /&gt;HELP says:&lt;BR /&gt;&lt;BR /&gt;SET&lt;BR /&gt;&lt;BR /&gt;  FILE&lt;BR /&gt;&lt;BR /&gt;    /END_OF_FILE&lt;BR /&gt;&lt;BR /&gt;       Resets the end-of-file (EOF) mark to&lt;BR /&gt;       the highest block allocated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; i have doubt whether i can recover the&lt;BR /&gt;&amp;gt; data [...]&lt;BR /&gt;&lt;BR /&gt;Same here.</description>
      <pubDate>Thu, 12 Mar 2009 02:32:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377286#M93790</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-12T02:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: recovery of unsaved data in vax/vms</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377287#M93791</link>
      <description>&lt;!--!*#--&gt;(If that qualifier exists in VMS V6.2...)</description>
      <pubDate>Thu, 12 Mar 2009 02:34:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377287#M93791</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-12T02:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: recovery of unsaved data in vax/vms</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377288#M93792</link>
      <description>Prabir,&lt;BR /&gt;&lt;BR /&gt;As Steven has mentioned, SET FILE/END_OF_FILE is useful, as is SET FILE/ATTRIBUTE.&lt;BR /&gt;&lt;BR /&gt;The challenge is finding the last record written to the file. Records are written to the file more or less in order (there can be some reordering of the writing of individual disk blocks for a variety of reasons).&lt;BR /&gt;&lt;BR /&gt;Resetting the end of file to the absolute end is a start on the process. Finding the actual end of the file is the real challenge. This analysis can be time consuming or not, depending on what was in those disk blocks before they were used and how obvious the actual record contents are. One technique for examining the contents is to use the DUMP utility.&lt;BR /&gt;&lt;BR /&gt;You may seriously need to consider outside assistance, as you have implied [Disclosure: As do others in this forum, my firm does provide such services].&lt;BR /&gt;&lt;BR /&gt;Sorting out the end of the actually written data involves analyzing the actual contents of the file, and can be time consuming. Thus, I would consider outside the scope of what can be done in an ITRC response.&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>Thu, 12 Mar 2009 03:41:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377288#M93792</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2009-03-12T03:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: recovery of unsaved data in vax/vms</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377289#M93793</link>
      <description>Prabir,&lt;BR /&gt;&lt;BR /&gt;Both the SET FILE qualifiers mentioned in my post are verified as available in Version 6.2.&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>Thu, 12 Mar 2009 03:56:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377289#M93793</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2009-03-12T03:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: recovery of unsaved data in vax/vms</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377290#M93794</link>
      <description>If you now the data, just edit the file after set file/end and cut away the garbage at the end (nulls or garbage depending on settings). Then save and check if the file format is still the same (dir/fu).&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 12 Mar 2009 08:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377290#M93794</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-03-12T08:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: recovery of unsaved data in vax/vms</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377291#M93795</link>
      <description>&amp;gt;&amp;gt; &amp;gt; [...] from the expert [...]&lt;BR /&gt;&amp;gt; I'm not he, but you might try:&lt;BR /&gt;&amp;gt;    SET FILE /END_OF_FILE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am.&lt;BR /&gt;&lt;BR /&gt;And beware that SET FILE/END is one of the most dangerous and destructive commands you can use in these situations UNTIL you made sure to have disabled HIGH WATER MARKING (HWM)&lt;BR /&gt;&lt;BR /&gt;With HWM turned on setting the EOF forces the system to write zeroes over all the block between the last HWM recorded and the new EOF. This may well overwrite valueable data.&lt;BR /&gt;&lt;BR /&gt;Note... since RMS now has exit handlers, this is actually tricky to test on recent OpenVMS versions. I double-checked using a Personal Alpha and stopped the emulator to mimic this. Only takes seconds...&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Hein van den Heuvel ( at gmail dot com )&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:41:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377291#M93795</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-03-12T10:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: recovery of unsaved data in vax/vms</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377292#M93796</link>
      <description>&lt;!--!*#--&gt;Wim wrote&amp;gt;&amp;gt; If you now the data, just edit the file after set file/end and cut away the garbage at the end (nulls or garbage depending on settings).&lt;BR /&gt;&lt;BR /&gt;Personally I MUCH prefer DUMP/BLOC=(STA:x,COU:1) to analyze the current data, and SET FILE/ATTR=(EBK:x,FFB:y) to 'fix' the file to catch as much as possible. &lt;BR /&gt;That is... if you survived the SET FILE/END.&lt;BR /&gt;&lt;BR /&gt;Here is a cute (I think :-) experiment.&lt;BR /&gt;Running an LD device on a Personal Alpha.&lt;BR /&gt;(Yes, that is a container in a container!)&lt;BR /&gt;&lt;BR /&gt;$LD CREATE LDA1.DISK/SIZE=5000&lt;BR /&gt;$LD CONNEC LDA1.DISK LDA1:&lt;BR /&gt;$INIT LDA1: JUR&lt;BR /&gt;$MOUN LDA1: JUR/SYS&lt;BR /&gt;$LD TRACE LDA1:&lt;BR /&gt;$COPY TMP.TXT LDA1,TT: LDA1:[000000]tmp.tmp&lt;BR /&gt;! The TT: makes the copy NOT close the file and wait for input.&lt;BR /&gt;! Now crash the system and re-boot:&lt;BR /&gt;&lt;BR /&gt;$ mount/sys lda1 jur&lt;BR /&gt;%MOUNT-I-MOUNTED, JUR mounted on _P2$LDA1:&lt;BR /&gt;%MOUNT-I-REBUILD, volume was improperly dismounted; rebuild in progress&lt;BR /&gt;$DUMP/HEAD/BLOC=COUNT=0 LDA1:[000000]tmp.tmp&lt;BR /&gt;Dump of file LDA1:[000000]TMP.TMP;1 on 10-MAR-2009&lt;BR /&gt;:&lt;BR /&gt;    File name:                            TMP.TMP;1&lt;BR /&gt;:&lt;BR /&gt;Map area&lt;BR /&gt;    Retrieval pointers&lt;BR /&gt;        Count:         12        LBN:        108&lt;BR /&gt;        Count:        106        LBN:        143&lt;BR /&gt;:&lt;BR /&gt;$ dump/bloc=(star=143,coun=1) LDA1:&lt;BR /&gt;:&lt;BR /&gt;Dump of device LDA1: on 10-MAR-2009 &lt;BR /&gt;:&lt;BR /&gt;Logical block number 143 (0000008F), 512 (0200) bytes&lt;BR /&gt;&lt;BR /&gt; 0020202D 20434544 3D524555 5353492F 000E0020 2D203633 31303532 2D534D56 VMS-250136 - .../ISSUER=DEC -  . 000000&lt;BR /&gt;&lt;BR /&gt;$ set file/end              lda1:[000000]tmp.tmp&lt;BR /&gt;$ ld trace/reset lda1:&lt;BR /&gt;$ dump/bloc=(star=143,coun=1) LDA1:&lt;BR /&gt;$ ld show /trace lda1:&lt;BR /&gt;         I/O trace for device P2$LDA1:&lt;BR /&gt;    10-MAR-2009 03:47:42.05 on node P2::&lt;BR /&gt;&lt;BR /&gt;Start Time  Elaps   Pid        Lbn    Bytes  Iosb    Function&lt;BR /&gt;-------------------------------------------------------------&lt;BR /&gt;03:47:35.39 00.00 000000A5        108   6144 NORMAL  DSE|ERASE&lt;BR /&gt;03:47:35.39 00.00 000000A5        143  54272 NORMAL  DSE|ERASE&lt;BR /&gt;03:47:35.40 00.00 000000A5       2516    512 NORMAL  WRITEPBLK|EXFUNC|DATACHECK&lt;BR /&gt;03:47:35.40 00.00 000000A5       2516    512 NORMAL  WRITEPBLK|EXFUNC|DATACHECK&lt;BR /&gt;03:47:35.40 00.00 000000A5       2516    512 NORMAL  WRITEPBLK|EXFUNC|DATACHECK&lt;BR /&gt;&lt;BR /&gt;See that DSE | ERASE... that is a big "OUCH" if the data is valuable.&lt;BR /&gt;Let's repeat the same dump, for the same block:&lt;BR /&gt;&lt;BR /&gt;$  dump/bloc=(star=143,coun=1) LDA1:&lt;BR /&gt;&lt;BR /&gt;Dump of device LDA1: on 10-MAR-2009 &lt;BR /&gt;&lt;BR /&gt;Logical block number 143 (0000008F), 512 (0200) bytes&lt;BR /&gt;&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000000&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000020&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Be careful out there!&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Mar 2009 12:27:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377292#M93796</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-03-12T12:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: recovery of unsaved data in vax/vms</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377293#M93797</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;Indeed, a good observation. I normally use the SET FILE/ATTRIBUTES to reset the end of file.&lt;BR /&gt;&lt;BR /&gt;Highwater marking is indeed the default on 6.2 (verified).  SHOW DEVICE/FULL &lt;DEVICENAME&gt; will disclose that highwater marking is enabled on a particular volume. It is disabled using the SET VOLUME/NOHIGHWATER_MARKING &lt;DEVICENAME&gt; command.&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;&lt;/DEVICENAME&gt;&lt;/DEVICENAME&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:53:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377293#M93797</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2009-03-12T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: recovery of unsaved data in vax/vms</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377294#M93798</link>
      <description>I'd start by using BACKUP /PHYSICAL or such after this sort of a crash, to get a copy of the data without risking damage during repair.  For this specific case, a block-level disk clone operation isn't strictly necessary, but I've also seen cases where the data gets clobbered by some operation that happens during or after the reboot.&lt;BR /&gt;&lt;BR /&gt;One other consideration here that hasn't been mentioned so far is the need to fix this application code.  It's badly broken.  There are at least two errors here, around how the file is written, and around how the application is not maintaining a journal.&lt;BR /&gt;&lt;BR /&gt;If this is critical data, then it needs to be treated as critical data.&lt;BR /&gt;&lt;BR /&gt;Get somebody that is an expert to look at (and to update) the application code.  If this data loss has happened once, then it'll happen again.  &lt;BR /&gt;&lt;BR /&gt;And given how old the VAX 4000 model 505 box and OpenVMS VAX V6.2 is, hardware errors and related badness are very likely going to be on the rise.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Mar 2009 14:37:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/recovery-of-unsaved-data-in-vax-vms/m-p/4377294#M93798</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-03-12T14:37:02Z</dc:date>
    </item>
  </channel>
</rss>

