Top
PRIMECLUSTER Global File Services Configuration and Administration Guide 4.5
FUJITSU Software

C.3.2 Corrective action in the event of data inconsistency

This section explains procedure when it becomes impossible to mount the GFS Shared File System because super block or partition configuration data differ from each copy data.

Perform the recovery in accordance with the following procedures.

  1. Recover super block and partition configuration information in the partition using sfcadm(8).

    # sfcadm -r /dev/sfdsk/gfs01/dsk/volume01 <Enter>
  2. Recover the consistency of the file system.

    # sfcfsck /dev/sfdsk/gfs01/dsk/volume01 <Enter>
      :
    # sfcfsck -o f,nolog /dev/sfdsk/gfs01/dsk/volume01 <Enter>
      :
    #
  3. Mount the recovered file system.

    # sfcmntgl /dev/sfdsk/gfs01/dsk/volume01 <Enter>
  4. Confirm that the recovered file system can be mounted on all nodes sharing GFS Shared File System.

    # mount <Enter>
  5. Confirm on all nodes that the following messages are not output in /var/log/messages when sfcmntgl(8) was performed in step 3.

    WARNING: sfcfs_mds:2042: fsid: The size of the partition might have been changed after the file system was made.

    No need the following operations if the message is not output.

    If the message is output, there is a possibility that the GDS volume used for the GFS Shared File System was expanded. The file system can keep on using, but please perform the following operations promptly because GFS does not deal with expanded volume of GDS.

  6. Back up the files in the recovered file system. For the way to back up, refer to "13.2.1 Backing-up file by file."

    Note

    Please be sure to perform the backup with each file.

  7. Unmount the recovered file system.

    # sfcumntgl /dev/sfdsk/gfs01/dsk/volume01 <Enter>
  8. Confirm that the recovered file system can be unmounted on all nodes sharing GFS Shared File System.

    # mount <Enter>
  9. The parameter information on a GFS Shared File System is evacuated.

    # sfcmkfs -m /dev/sfdsk/gfs01/dsk/volume01 > /tmp/mkfs_cmd <Enter>

    The command line used when the file system was created is stored in /tmp/mkfs_cmd by the above procedure.

  10. Delete the recovered file system.

    # sfcadm -D /dev/sfdsk/gfs01/dsk/volume01 <Enter>
  11. Confirm the file system is deleted.

    # sfcinfo -a <Enter>
  12. Depending on the situation, re-create the partition.

    Please re-create GDS volume only when you will return to the volume size before expanding GDS volume and resume manipulation. It is not necessary to re-create if resume manipulation in the volume size after expanding GDS volume.

    See

    Please refer to "Operation" "GDS Management View" in "PRIMECLUSTER Global Disk Services Configuration and Administration Guide" about the operation method of GDS volume.

  13. Create the GFS Shared File System using the same partition or the partition created in step 12.

    # sfcmkfs -o node=sunny,moony /dev/sfdsk/gfs01/dsk/volume01 <Enter>

    When creating the GFS Shared File System with the same parameters that used before volume expansion of GDS is performed, it is created using the information which evacuated in step 9.

    # /bin/sh /tmp/mkfs_cmd <Enter>
  14. Confirm that the GFS Shared File System is created.

    # sfcinfo -a <Enter>
  15. Mount the created file system.

    # sfcmntgl /dev/sfdsk/gfs01/dsk/volume01 <Enter>
  16. Restore the file backed up in step 6. For the way to restore, refer to "13.3.1 File-by-file restoring."