IBM Books

IBM General Parallel File System for AIX: Administration and Programming Reference

Restoring quota files

User and group quota files can be restored from either a backup copy of the original quota file or if there is no backup file available, a new file. When restoring quota files, the backup file or new file must be in the root directory of the file system.

The user or group files can be restored from backup copies by issuing the mmcheckquota command with the appropriate options.

  1. To restore the user quota file for the filesystem fs1 from the backup file userQuotaInfo, enter:
    mmcheckquota -u userQuotaInfo fs1
    
  2. This will restore the user quota limits set for the filesystem, but the usage information will be backlevel. To bring the usage information to current values, the command must be reissued:
    mmcheckquota fs1
    

If no backup file is available and the quota files are to be restored using a new file, these steps must be followed:

  1. The existing corrupted quota files need to be removed:
    1. Disable quota management:
      mmchfs fs1 -Q no
      
    2. Unmount the file system.
    3. Remount the file system.
    4. Remove the user.quota and group.quota files.
  2. Enable quota management:
    mmchfs fs1 -Q yes
    
  3. Unmount the file system.
  4. Remount the file system.
  5. Re-establish quota limits by issuing the mmedquota command.
  6. Gather the currant quota usage values by issuing the mmcheckquota command.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]