home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / aix / 8984 < prev    next >
Encoding:
Text File  |  1992-08-21  |  5.3 KB  |  124 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!uvaarpa!murdoch!holmes.acc.Virginia.EDU!op
  3. From: op@holmes.acc.Virginia.EDU (Olaf  Pors)
  4. Subject: Restores of rootvg by inode
  5. Message-ID: <1992Aug21.165545.4168@murdoch.acc.Virginia.EDU>
  6. Originator: op@holmes.acc.Virginia.EDU
  7. Keywords: inode, restore
  8. Sender: usenet@murdoch.acc.Virginia.EDU
  9. Organization: University of Virginia
  10. Date: Fri, 21 Aug 1992 16:55:45 GMT
  11. Lines: 111
  12.  
  13.   After our first RS6000's (AIX 3.1, level 3001) were
  14. installed, it became apparent that AIX had no provision for
  15. incremental backups of the root volume group.  IBM's
  16. answer to my query was "use tar or cpio".
  17.  
  18.   For those readers who may be unfamiliar with different
  19. backup methods (the rest of you can skip this paragraph):
  20. the backup (by name), tar, or cpio commands may be fed a
  21. list of names (usually produced via "find") to produce an
  22. archive of directories, files, or filesystems.  On non-AIX
  23. systems, tar cannot handle special device files, and
  24. expands holes on extraction.  Cpio has trouble preserving
  25. hard links and probably also expands holes.  While some or
  26. perhaps all of these problems may now have been eliminated
  27. under AIX, any simple "by name" approach inherently has a
  28. problem having to do with the need for incremental backups
  29. and the reappearance of removed files.  It is unreasonable
  30. to perform complete backups daily, but it is necessary at
  31. many sites to make sure that on any given day, filesystems
  32. could be completely restored to their states as of the
  33. previous day, if disaster should strike.  The solution is
  34. to back up only incremental changes to filesystems on a
  35. daily basis.  If disaster occurs, a restore can be done
  36. from the most recent full backup, and any subsequent
  37. incrementals.  For example, if the full backups are done
  38. with
  39.  
  40.       find ...  | cpio ...
  41.  
  42. and incrementals are done using
  43.  
  44.       find -ctime ... | cpio ...
  45.  
  46. a later restore would bring back files that were removed
  47. since the full backup was done.  One could try to program
  48. around this problem by saving "find -ls" outputs along
  49. with each incremental backup, and removing extra files after
  50. each incremental restore, but this is a lot of effort,
  51. and may not even work, if huge files fill up a filesystem
  52. before they can be removed.  The best, and in my opinion,
  53. the only reasonable solution is to do backups and restores
  54. by inode, which takes care of all the above problems,
  55. provides for multilevel incremental backups, and an
  56. interactive restore capability.
  57.  
  58.   AIX supports the use of backup/restore by inode for
  59. non-root volume groups.  A backup by inode of filesystems
  60. in rootvg can be performed, but cannot be used to restore
  61. a dead system, since a bootable tape/diskette created by
  62. 3.2 mksysb or bosboot expects a tar/pax archive
  63. (backup-by-name archive prior to 3.2).  Therefore, anyone
  64. who considers inode backups highly desirable must create
  65. his own version of a bootable tape or diskette.  After a
  66. considerable amount of experimentation and some help from
  67. our local IBM SE, a bootable 8mm tape was constructed that
  68. would allow a restore by inode of the filesystems in the
  69. root volume group.  The creation of a customized bootable
  70. tape was also suggested in a September 1991 FAQ entry.
  71. The tape was used on a number of occasions to restore (by
  72. inode) production machines and to perform other emergency
  73. maintenance like restoring a corrupted /etc/passwd.
  74.  
  75.   I found an annoying problem with the bootable tape
  76. operating system:  often the entire root volume group
  77. would be restored via an interactive shell, then exiting
  78. the shell in order to create a boot logical volume and
  79. update the ODM on disk would result in an immediate
  80.  
  81.         INIT: SINGLE USER MODE
  82.  
  83. and all active shells had been killed.  The entire restore
  84. would then have to be repeated.  After much
  85. head-scratching, the problem was found to be due to using
  86. control-C while in an interactive shell, and was fixed by
  87. putting trap statements in a few scripts.  The problem has
  88. been reported to IBM since it manifests itself if the
  89. "limited function maintenance shell" is used from a
  90. standard boot tape.  PMR 0x770.
  91.  
  92.   A new problem at 3.2.2: I've found that when a vanilla
  93. IBM mksysb tape is booted, a maintenance shell is started,
  94. and a copy of /bin/ed is brought on board via diskette,
  95. /bin/ed doesn't work properly (reads only the first 18 or
  96. 19 lines of a file and says "?").  Therefore the bootable
  97. system can't be trusted for simple maintenance work
  98. via ed as implied by the "limited function maintenance
  99. shell" menu option.  PMR 0x725.
  100.  
  101.   Other than the ed problem, the customized boot tape
  102. serves our need well for restores of machines backed up by
  103. inode.  If there is sufficient interest, I'll post the
  104. files needed to create the tape.
  105.  
  106.   I was hoping to find that IBM would support restores of
  107. rootvg by inode at 3.2, but was quite disappointed.  This
  108. is such an essential capability at our site.  Does IBM
  109. understand the need for incremental backups?  Why on earth
  110. invent a backup-by-name, or use pax/tar, when Berkeley
  111. Unix already has a superior tried-and-true backup-by-inode
  112. method?  What are other sites doing?  Can we push for
  113. restores by inode?  I'm afraid that in subsequent
  114. releases, if somebody doesn't say something, IBM will
  115. somehow make it impossible to customize a boot tape to
  116. allow restores by inode.
  117.  
  118.  
  119. Olaf Pors
  120. Academic Computing Center
  121. University of Virginia
  122. op@Virginia.EDU
  123. 804-924-0633
  124.