home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / vms / 18129 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  3.9 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sdd.hp.com!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  2. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  3. Newsgroups: comp.os.vms
  4. Subject: RE: How to get files in SYSLOST back to right place
  5. Date: 18 Nov 1992 01:32:02 GMT
  6. Organization: HST Wide Field/Planetary Camera
  7. Lines: 67
  8. Distribution: world
  9. Message-ID: <1ec6eiINNc33@gap.caltech.edu>
  10. References: <9211150358.AA13495@uu3.psi.com>
  11. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  12. NNTP-Posting-Host: sol1.gps.caltech.edu
  13.  
  14. In article <9211150358.AA13495@uu3.psi.com>, leichter@lrw.com (Jerry Leichter) writes:
  15. =Your three file entries are a bit of a mystery.  Since there are two valid
  16. =directory entries for the file, ANALYZE/DISK should not have decided it was
  17. =lost, hence should not have put it in [SYSLOST].  Part of the explanation
  18. =may be that the file BP.DIR was lost - that's the only way you could have
  19. =ended up with a BP subdirectory of [SYSLOST].  But the rest of the dynamics,
  20. =I can't explain.
  21.  
  22. It's easy.  First, note that it wasn't really BP.DIR that was lost, it was
  23. GARN.DIR.  VERIFY discovered the files in the lost directories didn't have
  24. directory entries that could be found by traversing the directory tree starting
  25. with [000000]000000.DIR;1.  Hence it placed them in SYSLOST.  Then it found
  26. BP.DIR and put it in SYSLOST.  Finally, it ran across GARN.DIR and put it in
  27. SYSLOST.  We end up with:
  28.  
  29.                  [SYSLOST]
  30.                                   |    | |
  31.                                 [GARN] | |
  32.                                     |  | |
  33.                                     [BP] |
  34.                       |  |
  35.                                     (files)
  36.  
  37. =    First question.  How do I get these 3 files back to one?
  38. =
  39. =There really only is one file; you just have two extra entries for it.  You
  40. =can remove them safely with SET FILE/REMOVE.  After you do that, do another
  41. =ANALYZE/DISK/REPAIR.  It should fix up the backpointer for the file to
  42. =point to the one remaining entry.
  43.  
  44. Actually, he wants to:
  45.     $ SET FILE/NODIR [SYSLOST]BP.DIR;1
  46.     $ SET FILE/REMOVE [SYSLOST]BP.DIR;1
  47. then for each file that occurs in both [SYSLOST] and [SYSLOST.GARN.BP]
  48.     $ SET FILE/REMOVE [SYSLOST]file_name
  49.  
  50. =    Second question. Is there a way to find out where a lost file came
  51. =    from so I can put it back, or do I tell the owner of these files to
  52. =    figure it out for themself?
  53. =
  54. =It depends.  If we consider files that don't have multiple entries, you have
  55. =the file name and can determine the directory from the header backpointer.
  56.  
  57. 'Fraid not.  Once the file's been put in SYSLOST, its backpointer is set to the
  58. FID of [000000]SYSLOST.DIR;1.  You COULD, of course,
  59.     $ DEFINE SYS$OUTPUT some.file
  60.     $ ANALYZE/DISK/NOREPAIR your_disk:
  61. then go wading through some.file and find the FIDs of all the files that
  62. weren't found in directories.  But you have to do this BEFORE the files show up
  63. in [SYSLOST].
  64. =This is a tedious task to do by hand - you have the file id for what should
  65. =be a directory file.  You have to find the corresponding file header (this
  66. =can be done by dumping the right portion of the index file), then look at it
  67. =to determine its name and (most likely) the file id for the entry IT can be
  68. =found in.  Repeat until you've gotten to the MFD.  Anyone have a little
  69. =program to automate this?  It's a major pain in the rear to do by hand.
  70.  
  71. I used to have one written in DCL.  If there's much interest, I could try to
  72. figure out where I put it.
  73. --------------------------------------------------------------------------------
  74. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  75.  
  76. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  77. understanding of astronomy is purely at the amateur level (or below).  So
  78. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  79. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  80. hold me responsible for it, but my organization had nothing to do with it.
  81.