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:
- After the failed disk has been repaired, issue
an mmadddisk command to add the disk to
the file system:
You can rebalance the file system at the same time by issuing:mmadddisk fs1 gpfs12nsd
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. - To re-replicate data that only has single copy,
issue:
Optionally, use the -b flag instead of the -r flag to rebalance across all disks.mmrestripefs fs1 -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. - 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.