home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / informix / 2695 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  3.4 KB

  1. Path: sparky!uunet!gossip.pyramid.com!pyramid!infmx!davek
  2. From: davek@informix.com (David Kosenko)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Help, tbtape is trashing my rootdbs!
  5. Keywords: Online, IBM RT
  6. Message-ID: <1992Dec14.171459.21988@informix.com>
  7. Date: 14 Dec 92 17:14:59 GMT
  8. References: <1992Dec7.223649.18907@bogart.uucp>
  9. Sender: news@informix.com (Usenet News)
  10. Organization: Informix Software, Inc.
  11. Lines: 67
  12.  
  13. Michael Faurot writes:
  14. >Here's the problem . . .
  15. >
  16. >    After initializing rootdbs and shared memory without any
  17. >    difficulties I use ISQL to create a couple of databases, fill
  18. >    one of them up with records and the other is simply empty.
  19. >
  20. >    Now I wish to back-up this entire configuration to tape.  So I
  21. >    use the Archive option from within tbmonitor.  I then choose
  22. >    the option to Create, mount the tape in the drive, select "0"
  23. >    for a level 0 archive and then receive the following error
  24. >    message:
  25. >
  26. >        Error reading from the disk, Error No. = 5.
  27. >
  28. >    If I don't shutdown OnLine, I can still access the databases
  29. >    but if I do shutdown OnLine, I get the following error messages
  30. >    when I attempt to bring it back up:
  31. >
  32. >        Bad Primary Chunk '/dev/rootdbs'
  33. >        tbinit: fatal error in shared memory initialization
  34. >
  35. >    I'm fairly certain there's nothing wrong with the tape
  36. >    perameters I'm using because, oddly enough, if I only create
  37. >    the first database, I can back-up the system without it
  38. >    corrupting the rootdbs.  It's only after I add the second
  39. >    database and attempt to back it up that it trashes rootdbs.
  40. >
  41. >    If I make no attempts to back-up the OnLine partitions, OnLine
  42. >    goes up and down just fine.  
  43. >
  44. >Now when I went to school, I was always of the impression that
  45. >back-up utilties are for the preservation of your data.  Maybe I'm
  46. >missing something but this tbtape program just doesn't seem to be
  47. >fitting the mold here too well. 
  48.  
  49. An interesting case of drawing the wrong conclusion from the evidence 
  50. presented.
  51.  
  52. Tbtape does nothing but read the data in your OnLine system.  The error
  53. message you receive is one that tbtape is getting when doing a read of
  54. the data.  Whenever such an error is encountered, the chunk is marked as
  55. down and OnLine will not come up after the next shutdown without a restore
  56. from archive (more on this in a bit). Btw, error 5 is an o/s error and
  57. means "I/O error."
  58.  
  59. I will speculate that the reason the second database seems to "cause" the 
  60. problem is that the space allocated for the tables in that database contain
  61. the problem area.  Since tbtape will only try to read allocated space, it
  62. does not encounter the problem until the second database is created. I am 
  63. not sure why the bad block was not encountered at the create time - it must
  64. be that the space allocated is not all read at the create time.
  65.  
  66. What you should do is run a low-level disk surface check on the devices you
  67. are using for your chunks.  Typically, this problem is caused by bad blocks 
  68. present on the device.
  69.  
  70. As per bringing your system back up after a "bad block experience": if you
  71. edit your tbconfig file and set MIRROR to 1, you will be able to restart
  72. your system even though the chunk is marked as down.
  73.  
  74. Dave
  75. -- 
  76. Disclaimer: These opinions are not those of Informix Software, Inc.
  77. **************************************************************************
  78. "I look back with some satisfaction on what an idiot I was when I was 25,
  79.  but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
  80.