<?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: Find the date a drive was initialized? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975409#M12089</link>
    <description>Dean, in my expereince it is failrly common to pick up the remnants of an old file structure in  a newly created HSZ/HSG logical unit. Even with stiping and raid-5 and such. The home block is simply block 2, and repeated several times more.&lt;BR /&gt;To satisfy your curiosity do a DUMP/BLOC=(STA=2,COU=1) device:&lt;BR /&gt;Look for the last few lines from byte 466 onwards (x1CC) there should be readily readable text in 12 byte space filled chunks:&lt;BR /&gt;- Structure Name&lt;BR /&gt;- Volume Name&lt;BR /&gt;- Owner Name&lt;BR /&gt;and the clincher&lt;BR /&gt;- "DECFILE11B"&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Fri, 06 Apr 2007 07:36:52 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2007-04-06T07:36:52Z</dc:date>
    <item>
      <title>Find the date a drive was initialized?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975400#M12080</link>
      <description>I work on a govn't system that swaps drives constantly and we use a proprietary suite of tools for copying disks.  Any disk that is copied using this suite maintains it's original modified date on dir/full, so there's no way to tell when the disk was made using dir/full.&lt;BR /&gt;&lt;BR /&gt;Is there any way to tell when a disk was initialized?  Is there another way to tell when a disk (i suppose volume would be more accurate) was created?&lt;BR /&gt;&lt;BR /&gt;Thank you for any help you can give.</description>
      <pubDate>Wed, 04 Apr 2007 12:45:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975400#M12080</guid>
      <dc:creator>C Nipper</dc:creator>
      <dc:date>2007-04-04T12:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find the date a drive was initialized?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975401#M12081</link>
      <description>C,&lt;BR /&gt;&lt;BR /&gt;to begin with:&lt;BR /&gt;&lt;BR /&gt;WELCOME to the VMS ITRC Forum.&lt;BR /&gt;&lt;BR /&gt;I am not sure how I should read your question.&lt;BR /&gt;&lt;BR /&gt;The answer to the literal title question is simple:&lt;BR /&gt;the CREATION DATE of the 000000.DIR (and/or the various .SYS files) on the volume are the date/time of the INIT command.&lt;BR /&gt;&lt;BR /&gt;But if the disk was created by a BACKUP/IMAGE with the disk as output device (and without the /NOINIT qualifier), then the data (including dates) of the original saveset is used, and there is no way (at  least, that  _I_ know of) to tell when that was done.&lt;BR /&gt;&lt;BR /&gt;Barring special psychic powers, whatever those "proprietary tools" are doing with the relevant device dates, is for those that know those tools to tell.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Wed, 04 Apr 2007 12:59:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975401#M12081</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-04-04T12:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find the date a drive was initialized?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975402#M12082</link>
      <description>Thanks for the quick response.  I'll check with them (they work in the same cube farm as me) about what it's using as it's copy procedure and respond back.</description>
      <pubDate>Wed, 04 Apr 2007 13:07:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975402#M12082</guid>
      <dc:creator>C Nipper</dc:creator>
      <dc:date>2007-04-04T13:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find the date a drive was initialized?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975403#M12083</link>
      <description>There are certainly ways to implement what you want here, particularly given this unspecified suite of tools.  &lt;BR /&gt;&lt;BR /&gt;Depending on the architecture, these can be subtle, or something akin to an ACE can be added to key structures.&lt;BR /&gt;&lt;BR /&gt;I'm familiar with a number of replication schemes and related issues, including OpenVMS I64 and its GPT-level structures.  Depending on the specific local requirements, there are various mechanisms and schemes that can be utilized.&lt;BR /&gt;&lt;BR /&gt;The typical approach used by replication tools is block-oriented (for reasons of EFI and otherwise), and this most definitely does not have a replication date.  Particularly with typical GPT hackery these tools often perform.&lt;BR /&gt;&lt;BR /&gt;I've posted up an intro (and pointers) to the GPT over at &lt;A href="http://64.223.189.234/node/112" target="_blank"&gt;http://64.223.189.234/node/112&lt;/A&gt; --  the other volume-level structure involved here ("above" the GPT) is the ODS Storage Control Block (SCB), then whatever the application might choose to apply on top of (or into) the system-level volume structures; GPT or ACL-level mechanisms, in the FAT partition, etc.&lt;BR /&gt;&lt;BR /&gt;And it occurs to me that if this is OpenVMS I64 system disk, the FAT partition likely contains the date details as the usual means to replicate disks preserves these structures.  When the system disk is instantiated via standard tools and mechanisms, EFI$CP writes the FAT structures, including dates.  &lt;BR /&gt;&lt;BR /&gt;I haven't yet posted up particular details of the FAT-level implementation present within OpenVMS I64 and EFI, but it's familiar turf and certainly worth an article or three.&lt;BR /&gt;&lt;BR /&gt;Stephen Hoffman&lt;BR /&gt;HoffmanLabs LLC&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Apr 2007 13:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975403#M12083</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-04-04T13:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find the date a drive was initialized?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975404#M12084</link>
      <description>&lt;!--!*#--&gt;C,&lt;BR /&gt;&lt;BR /&gt;  I'm not entirely sure which date you really want? That of the original volume before it was copied? Or, the date the target volume was initialized, before dumping the replicated data on it? I suspect you want the latter.&lt;BR /&gt;&lt;BR /&gt;  Hunting around the physical blocks at the beginning of the disk, I've found a field that looks like a date stamp at about the right time (ie: shortly before the creation date of INDEXF.SYS &amp;amp; friends on an unreplicated disk). Depending on how your tools replicate the disk, this date might be a more accurate reflection of when the physical disk was initialised than the directory dates. Very crude DCL to pull it out:&lt;BR /&gt;&lt;BR /&gt;$ IF p1.EQS."" THEN INQUIRE p1 "Device"&lt;BR /&gt;$ f=F$PARSE("[000000]INDEXF.SYS",p1)&lt;BR /&gt;$ OPEN/READ/SHARE IN 'F'&lt;BR /&gt;$ READ IN BLK1&lt;BR /&gt;$ READ IN BLK2&lt;BR /&gt;$ CLOSE IN&lt;BR /&gt;$ INITDATE[32,32]=F$CVUI(%X200,32,BLK2)&lt;BR /&gt;$ INITDATE[0,32]=F$CVUI(%X220,32,BLK2)&lt;BR /&gt;$ WRITE SYS$OUTPUT F$FAO("!%D",F$CVUI(32,32,F$FAO("!AD",8,INITDATE)))&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;Note, I found this by examining the hex dump for numbers that looked like a VMS date at about the right time. I've sanity checked it on a few disks and it looks reasonable. A more rigourous approach would be to cross check it against the source code, or the IDSM.&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Apr 2007 19:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975404#M12084</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-04-04T19:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find the date a drive was initialized?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975405#M12085</link>
      <description>&lt;BR /&gt;John wrote... Note, I found this by examining the hex dump for numbers that looked like a VMS date at about the right time. I've sanity checked it on a few disks and it looks reasonable. A more rigourous approach would be to cross check it against the source code, or the IDSM.&lt;BR /&gt;&lt;BR /&gt;That's the HOME BLOCK you are looking at.&lt;BR /&gt;&lt;BR /&gt;It's actually documented in the &lt;BR /&gt;"VMS File System internals"&lt;BR /&gt;Table 2-15&lt;BR /&gt;and Figure 2-19&lt;BR /&gt;"Layout of the First Extent of the Index File"&lt;BR /&gt;&lt;BR /&gt;Also on the system:&lt;BR /&gt;$ pipe libr/extr=hm2def/out=sys$output sys$Library:sys$lib_c.tlb | searc sys$pipe date&lt;BR /&gt;    unsigned __int64 hm2$q_credate;     /* volume creation date             */&lt;BR /&gt;    unsigned __int64 hm2$q_revdate;     /* volume revision date             */&lt;BR /&gt;    unsigned __int64 hm2$q_copydate;    /* volume copy date                 */&lt;BR /&gt;$ pipe libr/extr=$hm2def/out=sys$output sys$Library:lib.mlb | searc sys$pipe date&lt;BR /&gt;$EQU    HM2$Q_CREDATE   60&lt;BR /&gt;$EQU    HM2$Q_REVDATE   88&lt;BR /&gt;$EQU    HM2$Q_COPYDATE  146&lt;BR /&gt;&lt;BR /&gt;So I think your code is off by 4 bytes.&lt;BR /&gt;That x220 should be x1E0.&lt;BR /&gt;I would write it as 60*8 myself.&lt;BR /&gt;&lt;BR /&gt;I don't think there is an F$GETDVI for this.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Apr 2007 22:35:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975405#M12085</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-04T22:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Find the date a drive was initialized?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975406#M12086</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;So I think your code is off by 4 bytes.&lt;BR /&gt;&amp;gt;That x220 should be x1E0.&lt;BR /&gt;&lt;BR /&gt;  Thanks, you are, of course correct, and thanks for confirming the fields and giving them names. I was confusing myself with little endian and reading dumps right to left. The low longword should have been the previous line! Since the low 32 bits of a time value only represents a bit over 7 minutes, it doesn't make a whole lot of difference where those bits come from, the result was still well within reason! ;-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I would write it as 60*8 myself&lt;BR /&gt;&lt;BR /&gt;  Yes, I originally wrote it as %X40*8 based on the DUMP display, but changed it to the constant hoping to reduce the confusion of a mixed radix expression!&lt;BR /&gt;&lt;BR /&gt;  From the disks I've looked at, it appears REVDATE and COPYDATE may be latent.</description>
      <pubDate>Wed, 04 Apr 2007 23:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975406#M12086</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-04-04T23:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find the date a drive was initialized?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975407#M12087</link>
      <description>The home block moved with GPT disks; all home blocks are now alternate home blocks, and the primary home block is no longer required nor necessarily present.&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:58:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975407#M12087</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-04-05T09:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find the date a drive was initialized?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975408#M12088</link>
      <description>Interesting, I ran your prodecure john on&lt;BR /&gt;a newly created stripeset on a hsz70..&lt;BR /&gt;&lt;BR /&gt;$ @diskdate;-1 $1$dkc204&lt;BR /&gt; 8-NOV-2000 17:15:27.63&lt;BR /&gt;$ @diskdate; $1$dkc204&lt;BR /&gt; 8-NOV-2000 17:08:38.40&lt;BR /&gt;&lt;BR /&gt;..the second one was with x1e0. I'm not&lt;BR /&gt;sure where time 8-nov-2000 came from,&lt;BR /&gt;as vms doesn' see the real disks. not&lt;BR /&gt;that it matters, curious.&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Apr 2007 18:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975408#M12088</guid>
      <dc:creator>Dean McGorrill</dc:creator>
      <dc:date>2007-04-05T18:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Find the date a drive was initialized?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975409#M12089</link>
      <description>Dean, in my expereince it is failrly common to pick up the remnants of an old file structure in  a newly created HSZ/HSG logical unit. Even with stiping and raid-5 and such. The home block is simply block 2, and repeated several times more.&lt;BR /&gt;To satisfy your curiosity do a DUMP/BLOC=(STA=2,COU=1) device:&lt;BR /&gt;Look for the last few lines from byte 466 onwards (x1CC) there should be readily readable text in 12 byte space filled chunks:&lt;BR /&gt;- Structure Name&lt;BR /&gt;- Volume Name&lt;BR /&gt;- Owner Name&lt;BR /&gt;and the clincher&lt;BR /&gt;- "DECFILE11B"&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Apr 2007 07:36:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-the-date-a-drive-was-initialized/m-p/3975409#M12089</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-06T07:36:52Z</dc:date>
    </item>
  </channel>
</rss>

