Replicated metadata and data

The courses of action to be followed to recover the lost files if you have replicated metadata and data and only disks in a single failure group has failed.

If you have replicated metadata and data and only disks in a single failure group have failed, everything should still be running normally but with slightly degraded performance. You can determine the replication values set for the file system by issuing the mmlsfs command. Proceed with the appropriate course of action:
  1. After the failed disk has been repaired, issue an mmadddisk command to add the disk to the file system:
    mmadddisk fs1 gpfs12nsd
    You can rebalance the file system at the same time by issuing:
    mmadddisk fs1 gpfs12nsd -r
    Note: Rebalancing of files is an I/O intensive and time consuming operation, and is important only for file systems with large files that are mostly invariant. In many cases, normal file update and creation will rebalance your file system over time, without the cost of the rebalancing.
  2. To re-replicate data that only has single copy, issue:
    mmrestripefs fs1 -r
    Optionally, use the -b flag instead of the -r flag to rebalance across all disks.
    Note: Rebalancing of files is an I/O intensive and time consuming operation, and is important only for file systems with large files that are mostly invariant. In many cases, normal file update and creation will rebalance your file system over time, without the cost of the rebalancing.
  3. Optionally, check the file system for metadata inconsistencies by issuing the offline version of mmfsck:
    mmfsck fs1

    If mmfsck succeeds, you may still have errors that occurred. Check to verify no files were lost. If files containing user data were lost, you will have to restore the files from the backup media.

    If mmfsck fails, sufficient metadata was lost and you need to recreate your file system and restore the data from backup media.