home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / aix / 9005 < prev    next >
Encoding:
Internet Message Format  |  1992-08-23  |  1.8 KB

  1. Path: sparky!uunet!sabus!tim
  2. From: tim@sabus.UUCP (Tim Brown)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: Reducing filesystem size
  5. Message-ID: <259@sabus.UUCP>
  6. Date: 21 Aug 92 19:53:27 GMT
  7. References: <1992Aug19.203658.23130@godzilla.quotron.com> <Aug20.232432.23835@cdsac.uucp>
  8. Organization: The SABUS Group
  9. Lines: 40
  10.  
  11. scotte@cdsac.uucp (L. Scott Emmons) writes:
  12.  
  13. >In article <1992Aug19.203658.23130@godzilla.quotron.com> greg@godzilla.quotron.com (Greg "Maddog" Knauss) writes:
  14. >>How, exactly, do you reducing the size of /usr?  The normal method of
  15. >>shrinking a filesystem is to copy it to tape, remove it, recreate it at
  16. >>the new size and move the files back.  But /usr has libc.a and if you
  17. >>remove that, the machine staggers around a little and then dies.  Anybody
  18. >>have any ideas?  (THAT'S the last time I do a full installation of Info
  19. >>Explorer...)
  20.  
  21. >We have done this on our machines. What we do is create an "mksysb"
  22. >tape with an altered ".fs.size" file, and then boot off the tape and
  23. >restore the system.
  24.  
  25. [stuff deleted]
  26. If you have some extra disk...
  27. Here is how I do it:
  28. 1. make a new filesystem called /temp
  29. 2. copy everything from /usr into it.
  30. (cd /usr;tar cf - . )|(cd /temp;tar xf -) will do it, there
  31. are other ways as well.
  32. 3. edit /etc/filesystems, switching the mount points for the lv's
  33. pointing to /usr and /temp
  34. 4. reboot. This is needed to free /usr up to be deleted and resized.
  35.  
  36. You could be done at this point but I go one furhter...
  37. 5. remove the old /usr (now /temp).
  38. 6. make one the right size with the same lv name (hd1*) in the rootvg
  39. 7. copy /usr to /temp (the new one).
  40. 8. edit /etc/filesystems and switch the lv's back to normal.
  41. 9. reboot.
  42. 10. Get rid of /temp.
  43.  
  44. Done
  45.  
  46. -- 
  47. Tim Brown
  48. The SABUS Group
  49. 2091 Cliffside Dr.        Anchorage, Alaska 99501
  50. (907)277-4232            tim%sabus@uunet.uu.net
  51.