08/13/96, 4FAX# 2267 Reducing File System Size in AIX 3.2 SPECIAL NOTICES Information in this document is correct to the best of our knowledge at the time of this writing. Please send feedback by fax to "AIXServ Information" at (512) 823-4009. Please use this information with care. IBM will not be responsible for damages of any kind resulting from its use. The use of this information is the sole responsibility of the customer and depends on the customer's ability to eval- uate and integrate this information into the customer's operational environment. +----------------------------------------------------------+ | | | NOTE: The information in this document has NOT been | | verified for AIX 4.1. | | | +----------------------------------------------------------+ ABOUT THIS DOCUMENT This document explains how you can reduce the size of file systems in the rootvg volume group by making a system backup, editing "/.fs.size", and reinstalling the system. It then describes how non-rootvg, or user-created, volume groups may be imported into your newly installed operating system. This document applies to AIX 3.2 on the RISC System/6000. NOTE: If you do NOT need to reduce the "/usr" or "/" file system, you can use the SIMPLER procedure in document number 2447 or 2364 from 1-800-IBM-4FAX. Documents 2447 and 2364 are written specifically for the "/tmp" and "/var" file systems, respectively. However, they can be used for any file systems with the appropriate substitutions of the mount point and logical volume name. Also note that documents 2447 and 2364 can be used for file systems that are not in the rootvg. This is not true of the document you are currently reading. STEPS NOTE: It is recommended that you back up any file systems that are not in the rootvg volume group before following this procedure. 1. With the machine in Normal mode, log in as root. 2. Remove any files that you do not want in the file systems that you plan to reduce. If you are not sure of Reducing File System Size in AIX 3.2 1 08/13/96, 4FAX# 2267 the origin or purpose of a particular file, do not delete it. 3. Make sure all file systems in the rootvg volume group are mounted. IF NOT, THEY WILL NOT BE INCLUDED IN THE REINSTALLED SYSTEM. 4. Type "mkszfile". This will create a file "/.fs.size", which will contain a list of the active file systems in the rootvg volume group, which will be included in the mksysb tape that you will create. 5. Use an editor to edit the "/.fs.size" file. Change the size of all the rootvg file systems that you are reducing to reflect the sizes you want for those file systems. Example: The /.fs.size file currently shows the file size of /usr to be 40MB with the following entry: rootvg 4 hd2 /usr 10 40 jfs The first number (4) represents the physical partition (PP) size on your system. The second number (10) represents the number of PPs needed to contain the file system. The third number (40) represents the MB of disk space required, that is, the first number multiplied by the second. If you want to reduce the size of /usr from 40 MB to 32 MB, you would edit the /usr entry to look like this: rootvg 4 hd2 /usr 8 32 jfs IMPORTANT: Make sure that you DO NOT enter a value which is less than the size required to contain the current data. Doing so will cause the reinstallation procedure to fail. Use the "df -v" command to see the current blocks used in the file systems; then divide this number by 1024 to get the total MB required. | 6. Check for anu user defined paging space(s) with the fol- | lowing command: lsvg -l | where "" is the name of the volume group. If | there are any user defined paging space(s), do the fol- | lowing to deactivate the paging space: | a. Execute the command: chps -a n b. Reboot the system. 7. Unmount all file systems that are NOT in the rootvg volume group. Reducing File System Size in AIX 3.2 2 08/13/96, 4FAX# 2267 8. If you have any non-rootvg volume groups, varyoff and export them with the following commands. (Substitute VGname with the name of the volume group.) varyoffvg VGname exportvg VGname 9. With a tape in the tape drive, type the following command: mksysb /dev/rmt0 This will create a complete system backup of the rootvg, which will include file-system size information (in the /.fs.size file) for use in the installation procedure. 10. Follow the instructions in Chapter 3 of the Installation Guide ("Installation from a System Backup"), using the tape that you created in the previous step. Choose option 2, which is: 2) Install a system that was created with the SMIT "Backup the System" function or the "mksysb" command. 11. When the operating system installation is complete, you will need to reboot the system in normal mode. The reduction of the file systems is now complete. 12. If you have any non-rootvg volume groups, you can import them with the following commands. (Substitute VGname with the name of the volume group; substitute PVname with the name of any one of the physical volumes in the volume group.) importvg -y VGname PVname varyonvg VGname 13. Now, you can mount all the file systems with mount all Reducing File System Size in AIX 3.2 3 08/13/96, 4FAX# 2267 READER'S COMMENTS Please fax this form to (512) 823-4009, attention "AIXServ Informa- tion". You may also e-mail comments to: elizabet@austin.ibm.com. These comments should include the same customer information requested below. Use this form to tell us what you think about this document. If you have found errors in it, or if you want to express your opinion about it (such as organization, subject matter, appearance) or make sug- gestions for improvement, this is the form to use. If you need technical assistance, contact your local branch office, point of sale, or 1-800-CALL-AIX (for information about support offer- ings). These services may be billable. Faxes on a variety of sub- jects may be ordered free of charge from 1-800-IBM-4FAX. Outside the U.S. call 415-855-4329 using a fax machine phone. When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any way it believes appropriate without incurring any obligation to you. NOTE: If you have a problem report or item number, supplying that number may help us determine why a procedure did or did not work in your specific situation. Problem Report or Item #: Branch Office or Customer #: Be sure to print your name and fax number below if you would like a reply: Name: Fax Number: ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ END OF DOCUMENT (reduce.usr.32.krn, 4FAX# 2267) Reducing File System Size in AIX 3.2 4