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

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!sdd.hp.com!decwrl!csus.edu!csusac!cdsac!scotte
  3. From: scotte@cdsac.uucp (L. Scott Emmons)
  4. Subject: Re: Reducing filesystem size
  5. Message-ID: <Aug20.232432.23835@cdsac.uucp>
  6. NntpPostingHost: cdsac
  7. Date: 20 Aug 1992 23:24:32 GMT
  8. References: <1992Aug19.203658.23130@godzilla.quotron.com>
  9. Organization: Cable Data (U.S. Computer Services), Sacramento, CA
  10. Lines: 48
  11.  
  12. In article <1992Aug19.203658.23130@godzilla.quotron.com> greg@godzilla.quotron.com (Greg "Maddog" Knauss) writes:
  13. >How, exactly, do you reducing the size of /usr?  The normal method of
  14. >shrinking a filesystem is to copy it to tape, remove it, recreate it at
  15. >the new size and move the files back.  But /usr has libc.a and if you
  16. >remove that, the machine staggers around a little and then dies.  Anybody
  17. >have any ideas?  (THAT'S the last time I do a full installation of Info
  18. >Explorer...)
  19.  
  20. We have done this on our machines. What we do is create an "mksysb"
  21. tape with an altered ".fs.size" file, and then boot off the tape and
  22. restore the system.
  23.  
  24. The procedure for doing this: (as root)
  25.  
  26. o run 'mkszfile' to generate the .fs.size file.
  27.  
  28. o (generally a good idea to do an 'mksysb' here just in case an error
  29.    occurs and the system is unrecoverable from the altered tape.)
  30.  
  31. o edit "/.fs.size". The format of this file is:
  32.  
  33.   volume_group megs_per_part dev_name mnt_point num_parts lv_megs fs_type
  34.  
  35.  for example, on one of our systems:
  36.  
  37.   rootvg 4 hd2 /usr / 40 160 jfs
  38.  
  39.  The fields you are interested in are the num_parts and lv_megs
  40.  fields. Change these to the appropriate values:
  41.  
  42.     lv_megs      is the logical volume size in Megabytes
  43.  
  44.     num_parts is the number of partitions for the LV. Just use
  45.               lv_megs / megs_per_part to get this value.
  46.  
  47. o run 'mksysb' to back the system up to tape.
  48.  
  49. o Now, follow the instructions in the installation guide for restoring
  50.   from a "mksysb" backup. If you have logical volumes outside the
  51.   'rootvg' volume group, you will have to import them back into the
  52.   system. This can be done from "smit lvm"...
  53.  
  54.  
  55. It's neither an easy nor a pleasant task, but it's the only way I know
  56. of to free up that valuable disk space...
  57.  
  58.                L. Scott Emmons
  59.              csusac.csus.edu!cdsac!scotte
  60.