home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!wrkgrp!ets
- From: ets@wrkgrp.COM (Edward T Spire)
- Subject: Re: can't unmount /usr to shrink it
- Message-ID: <1992Jul28.165147.7202@wrkgrp.COM>
- Organization: The Workstation Group
- References: <1992Jul24.153227.11268@wrkgrp.COM>
- Date: Tue, 28 Jul 92 16:51:47 GMT
- Lines: 51
-
- Turns out that on 3.2 you can no longer unmount /usr and still have a
- useful system. The current solution to shrinking /usr uses the system
- backup facility, which is normally a two step process. The first step
- runs mkszfile, which creates /.fs.size, which records the sizes of the
- current file systems. The second step runs mksysb, which writes all
- files in most file systems to tape, including /.fs.size. Upon restore,
- the restore utility first retrieves .fs.size from the tape, then
- builds the file systems to the indicated sizes, and finally restores
- all the files from the tape.
-
- So to shrink /usr, what you do (as root) is
-
- # cd /
- # mkszfile
-
- now use your favorite editor to edit /.fs.size, which normally looks
- something like this:
-
- imageinstall
- rootvg 4 hd4 / 1 4 jfs
- rootvg 4 hd2 /usr 88 352 jfs
- rootvg 4 hd9var /var 1 4 jfs
- rootvg 4 hd3 /tmp 3 12 jfs
- rootvg 4 hd1 /home 43 172 jfs
-
- Change the /usr line so that the first number is the number of
- 4096 Meg partitions you want in the new /usr, and make the second
- number the first one times 4.
-
- Then finish up making the backup...
-
- # mksysb /dev/rmt0
-
- Then, shut down and reinstall AIX 3.2 from the bootable tape you
- just made.
-
- Thanks to
-
- Uwe A. Untermarzonwe (untermarzoner@vnet.ibm.com)
- Timothy Fredrick (fredrick@acd.acd.ucar.edu)
- Pierre Aeelin (pa@appmag.com)
- Dale A. Hubler (hubler@.lerc.nasa.gov)
-
- for helping me with this.
-
- ========================================================================
-
- Ed Spire email: ets@wrkgrp.com (on uunet)
- The Workstation Group voice: 800-228-0255
- 6300 River Road, Suite 700 or 708-696-4800
- Rosemont, Illinois 60018 fax: 708-696-2277
-