home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8254 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.1 KB  |  62 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!wrkgrp!ets
  3. From: ets@wrkgrp.COM (Edward T Spire)
  4. Subject: Re: can't unmount /usr to shrink it
  5. Message-ID: <1992Jul28.165147.7202@wrkgrp.COM>
  6. Organization: The Workstation Group
  7. References: <1992Jul24.153227.11268@wrkgrp.COM>
  8. Date: Tue, 28 Jul 92 16:51:47 GMT
  9. Lines: 51
  10.  
  11. Turns out that on 3.2 you can no longer unmount /usr and still have a 
  12. useful system.  The current solution to shrinking /usr uses the system
  13. backup facility, which is normally a two step process.  The first step
  14. runs mkszfile, which creates /.fs.size, which records the sizes of the
  15. current file systems.  The second step runs mksysb, which writes all
  16. files in most file systems to tape, including /.fs.size.  Upon restore,
  17. the restore utility first retrieves .fs.size from the tape, then
  18. builds the file systems to the indicated sizes, and finally restores
  19. all the files from the tape.
  20.  
  21. So to shrink /usr, what you do (as root) is
  22.  
  23.   # cd /
  24.   # mkszfile
  25.  
  26.   now use your favorite editor to edit /.fs.size, which normally looks
  27.   something like this:
  28.  
  29.     imageinstall
  30.     rootvg 4 hd4 / 1 4 jfs
  31.     rootvg 4 hd2 /usr 88 352 jfs
  32.     rootvg 4 hd9var /var 1 4 jfs
  33.     rootvg 4 hd3 /tmp 3 12 jfs
  34.     rootvg 4 hd1 /home 43 172 jfs
  35.  
  36.   Change the /usr line so that the first number is the number of
  37.   4096 Meg partitions you want in the new /usr, and make the second
  38.   number the first one times 4.
  39.  
  40.   Then finish up making the backup...
  41.  
  42.   # mksysb /dev/rmt0
  43.  
  44.   Then, shut down and reinstall AIX 3.2 from the bootable tape you 
  45.   just made.
  46.  
  47. Thanks to 
  48.  
  49.           Uwe A. Untermarzonwe (untermarzoner@vnet.ibm.com)
  50.           Timothy Fredrick     (fredrick@acd.acd.ucar.edu)
  51.           Pierre Aeelin        (pa@appmag.com)
  52.           Dale A. Hubler       (hubler@.lerc.nasa.gov)
  53.  
  54. for helping me with this.
  55.  
  56. ========================================================================
  57.  
  58. Ed Spire                           email: ets@wrkgrp.com      (on uunet)
  59. The Workstation Group              voice: 800-228-0255
  60. 6300 River Road, Suite 700            or  708-696-4800
  61. Rosemont, Illinois  60018            fax: 708-696-2277
  62.