- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Find the date a drive was initialized?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 05:45 AM
04-04-2007 05:45 AM
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?
Thank you for any help you can give.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 05:59 AM
04-04-2007 05:59 AM
Solutionto begin with:
WELCOME to the VMS ITRC Forum.
I am not sure how I should read your question.
The answer to the literal title question is simple:
the CREATION DATE of the 000000.DIR (and/or the various .SYS files) on the volume are the date/time of the INIT command.
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.
Barring special psychic powers, whatever those "proprietary tools" are doing with the relevant device dates, is for those that know those tools to tell.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 06:07 AM
04-04-2007 06:07 AM
Re: Find the date a drive was initialized?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 06:42 AM
04-04-2007 06:42 AM
Re: Find the date a drive was initialized?
Depending on the architecture, these can be subtle, or something akin to an ACE can be added to key structures.
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.
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.
I've posted up an intro (and pointers) to the GPT over at http://64.223.189.234/node/112 -- 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.
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.
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.
Stephen Hoffman
HoffmanLabs LLC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 12:12 PM
04-04-2007 12:12 PM
Re: Find the date a drive was initialized?
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.
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 & 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:
$ IF p1.EQS."" THEN INQUIRE p1 "Device"
$ f=F$PARSE("[000000]INDEXF.SYS",p1)
$ OPEN/READ/SHARE IN 'F'
$ READ IN BLK1
$ READ IN BLK2
$ CLOSE IN
$ INITDATE[32,32]=F$CVUI(%X200,32,BLK2)
$ INITDATE[0,32]=F$CVUI(%X220,32,BLK2)
$ WRITE SYS$OUTPUT F$FAO("!%D",F$CVUI(32,32,F$FAO("!AD",8,INITDATE)))
$ EXIT
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 03:35 PM
04-04-2007 03:35 PM
Re: Find the date a drive was initialized?
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.
That's the HOME BLOCK you are looking at.
It's actually documented in the
"VMS File System internals"
Table 2-15
and Figure 2-19
"Layout of the First Extent of the Index File"
Also on the system:
$ pipe libr/extr=hm2def/out=sys$output sys$Library:sys$lib_c.tlb | searc sys$pipe date
unsigned __int64 hm2$q_credate; /* volume creation date */
unsigned __int64 hm2$q_revdate; /* volume revision date */
unsigned __int64 hm2$q_copydate; /* volume copy date */
$ pipe libr/extr=$hm2def/out=sys$output sys$Library:lib.mlb | searc sys$pipe date
$EQU HM2$Q_CREDATE 60
$EQU HM2$Q_REVDATE 88
$EQU HM2$Q_COPYDATE 146
So I think your code is off by 4 bytes.
That x220 should be x1E0.
I would write it as 60*8 myself.
I don't think there is an F$GETDVI for this.
Cheers,
Hein van den Heuvel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 04:04 PM
04-04-2007 04:04 PM
Re: Find the date a drive was initialized?
>So I think your code is off by 4 bytes.
>That x220 should be x1E0.
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! ;-)
>I would write it as 60*8 myself
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!
From the disks I've looked at, it appears REVDATE and COPYDATE may be latent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2007 02:58 AM
04-05-2007 02:58 AM
Re: Find the date a drive was initialized?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2007 11:15 AM
04-05-2007 11:15 AM
Re: Find the date a drive was initialized?
a newly created stripeset on a hsz70..
$ @diskdate;-1 $1$dkc204
8-NOV-2000 17:15:27.63
$ @diskdate; $1$dkc204
8-NOV-2000 17:08:38.40
..the second one was with x1e0. I'm not
sure where time 8-nov-2000 came from,
as vms doesn' see the real disks. not
that it matters, curious.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2007 12:36 AM
04-06-2007 12:36 AM
Re: Find the date a drive was initialized?
To satisfy your curiosity do a DUMP/BLOC=(STA=2,COU=1) device:
Look for the last few lines from byte 466 onwards (x1CC) there should be readily readable text in 12 byte space filled chunks:
- Structure Name
- Volume Name
- Owner Name
and the clincher
- "DECFILE11B"
Hein.