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