Repairing File Systems with fsck in AIX V4 (LED 518)


Contents

About This Document
Recovery Procedure

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 V4.


Recovery Procedure

  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:
    • Bootable CD-ROM
    • NON_AUTOINSTALL mksysb
    • Bootable Install Tape

    Follow the screen prompts to the following menu:

       Welcome to Base Operating System 
       Installation and Maintenance 
    
  3. Choose Start Maintenance Mode for System Recovery (Option 3).

    The next screen displays the Maintenance menu.

  4. Choose Access a Root Volume Group (Option 1).

    The next screen displays a warning that indicates you will not be able to return to Base OS menu without rebooting.

  5. Choose 0 continue.

    The next screen displays information about all volume groups on the system.

  6. Select the root volume group by number.

  7. Choose Access this volume group and start a shell before mounting filesystems (Option 2).

    If you get errors from the preceding option, do not continue with the rest of this procedure. Correct the problem causing the error. If you need assistance correcting the problem causing the error, contact one of the following:

    • local branch office
    • your point of sale
    • your AIX support center

    If no errors occur, proceed with the following steps.

  8. 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 
    
  9. To format the default jfslog for the rootvg JFS file systems, run the following command.
       /usr/sbin/logform /dev/hd8 
    

    Answer yes when asked if you want to destroy the log.

  10. Also run fsck on any user-created file systems that are in the rootvg volume group.

  11. Type exit to exit from the shell. The file systems will automatically mount after you type exit.

  12. 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 
    

    LVname is the name of your user-defined logical volume. The preceding commands can be repeated for each user-defined volume group on the system.

  13. With the key in Normal position, issue the reboot command.
       sync;sync;sync;reboot 
    


Repairing File Systems with fsck in AIX V4 (LED 518): led518.4x.krn ITEM: FAX
Dated: 99/02/02~00:00 Category: krn
This HTML file was generated 99/06/24~12:41:54
Comments or suggestions?
Contact us