05/22/96, 4FAX# 4724 Repairing File Systems with fsck in AIX 4.1 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. ABOUT THIS DOCUMENT This document covers the use of fsck (file-system check) in maintenance mode to repair inconsistencies in file systems. This document applies to AIX 4.1. STEPS 1. Turn the key to the Service position. 2. With BOOTABLE MEDIA OF THE SAME VERSION AND LEVEL AS THE SYSTEM, boot the system. The bootable media can be ANY ONE of the following: o Bootable cdrom o NON_AUTOINSTALL Mksysb o Bootable Install Tape Follow the prompts to the "Welcome to Base OS" menu. 3. Choose "Start Maintenance Mode for System Recovery" (Option 3) The Next Screen would prompt the following Menu "Mainte- nance" o Choose "Access a Root Volume Group" (Option 1) o Choose "0 continue" and Select Volume group by number At this stage the console would display information about rootvg, and also Display a Menu with 2 Options. o Choose "Access this volume group and start a shell before mounting the filesystems" (Option 2) If you get errors from the above option, do not continue with the rest of this procedure. Correct the problem Repairing File Systems with fsck in AIX 4.1 1 05/22/96, 4FAX# 4724 causing the error. If you need assistance correcting the problem causing the error, contact one of the fol- lowing: o local branch office o your point of sale o 1-800-CALL-AIX (to register for fee-based services) All of the above avenues for assistance may be billable. If no errors occur, procede with the steps outlined below: | 4. Run the following commands to check and repair file systems. (The "-y" option gives fsck permission to repair file systems when necessary.) fsck -y /dev/hd1 fsck -y /dev/hd2 fsck -y /dev/hd3 fsck -y /dev/hd4 fsck -y /dev/hd9var 5. Format the default jfslog for the rootvg jfs file systems, by running the following command. /usr/sbin/logform /dev/hd8 Answer YES when asked if you want to destroy the log. 6. Also run fsck on any user-created file systems that are in the rootvg volume group. 7. Type "exit" to exit from the shell. The file systems will automatically mount after you type "exit". 8. If you have file systems in a volume group other than rootvg, you may run fsck on them now by running these commands: varyonvg VGname fsck -y /dev/LVname where LVname is the name of your user-defined logical volume. The above commands can be repeated for each user-defined volume group on the system. 9. With the key in Normal position, issue the reboot command. sync;sync;sync;reboot Repairing File Systems with fsck in AIX 4.1 2 05/22/96, 4FAX# 4724 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 (how.to.fsck.41.krn, 4FAX# 4724) Repairing File Systems with fsck in AIX 4.1 3