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

11.5.4 Shared node information change

The GFS Shared File System stores information about nodes that share the file system in each partition to restrict access from nodes other than the nodes that share the file system.

The node information mainly contains the following information:

To add and delete node information for the file system, use sfcnode(8).

See

For details on the sfcnode(8) options, see sfcnode(8).

11.5.4.1 Adding node information

Described below is the procedure for using sfcnode(8) to add node information (moony) to an existing file system (/dev/sfdsk/gfs01/dsk/volume01). Execute the command on any one of the nodes where the file system is shared.

  1. Check that the target file system is unmounted on all nodes sharing the file system.

    You can do this by checking that "STOP" is displayed in all status fields of the sfcinfo(8) outputs.

    # sfcinfo -n /dev/sfdsk/gfs01/dsk/volume01 <Enter>
    /dev/sfdsk/gfs01/dsk/volume01:
    FSID  hostID    status  hostname
       1  80a4f75b  STOP    sunny
  2. Add the node information.

    # sfcnode -a moony /dev/sfdsk/gfs01/dsk/volume01 <Enter>
  3. Confirm that the node information has been added.

    You can do this by checking that the moony field is newly displayed.

    # sfcinfo -n /dev/sfdsk/gfs01/dsk/volume01 <Enter>
    /dev/sfdsk/gfs01/dsk/volume01:
    FSID  hostID    status  hostname
       1  80a4f75b  STOP    sunny
       1  80960096  STOP    moony
  4. Confirm the MDS node.

    You can do this by checking that the moony is not displayed as MDS(S).

    # sfcrscinfo -m /dev/sfdsk/gfs01/dsk/volume01 <Enter>
    /dev/sfdsk/gfs01/dsk/volume01:
    FSID  MDS/AC  STATE  S-STATE   RID-1   RID-2   RID-N  hostname
       1  MDS(P)  stop   -             0       0       0  sunny
       1  AC      stop   -             0       0       0  sunny
       1  AC      stop   -             0       0       0  moony
  5. If it is necessary, set the added node as MDS node.

    # sfcadm -g ,moony /dev/sfdsk/gfs01/dsk/volume01 <Enter>
  6. Check if the node to the MDS node is configured has been added.

    If moony is displayed as MDS(S), the node has been added.

    # sfcrscinfo -m /dev/sfdsk/gfs01/dsk/volume01 <Enter>
    /dev/sfdsk/gfs01/dsk/volume01:
    FSID  MDS/AC  STATE  S-STATE   RID-1   RID-2   RID-N  hostname
       1  MDS(P)  stop   -             0       0       0  sunny
       1  AC      stop   -             0       0       0  sunny
       1  MDS(S)  stop   -             0       0       0  moony
       1  AC      stop   -             0       0       0  moony

11.5.4.2 Deleting node information

Described below is the procedure for using sfcnode(8) to delete node information (moony) from an existing file system (/dev/sfdsk/gfs01/dsk/volume01). If you are deleting node information while the file system is unmounted, execute sfcnode(8) on a node that shares the target file system.

  1. Check that the file system is unmounted in all nodes configuring the current file system and all nodes sharing the file system.

    You can do this by checking that "STOP" is displayed in all status fields of the sfcinfo(8) outputs.

    # sfcinfo -n /dev/sfdsk/gfs01/dsk/volume01 <Enter>
    /dev/sfdsk/gfs01/dsk/volume01:
    FSID  hostID    status  hostname
       1  80a4f75b  STOP    sunny
       1  80960096  STOP    moony
  2. Confirm whether the node of the node information to delete is the MDS node.

    You can do this by checking that the moony is displayed as MDS(S).

    # sfcrscinfo -m /dev/sfdsk/gfs01/dsk/volume01 <Enter>
    /dev/sfdsk/gfs01/dsk/volume01:
    FSID  MDS/AC  STATE  S-STATE   RID-1   RID-2   RID-N  hostname
       1  MDS(P)  stop   -             0       0       0  sunny
       1  AC      stop   -             0       0       0  sunny
       1  MDS(S)  stop   -             0       0       0  moony
       1  AC      stop   -             0       0       0  moony
  3. If the node of the node information to delete is MDS node, delete it from the MDS node.

    # sfcadm -g moony /dev/sfdsk/gfs01/dsk/volume01 <Enter>
  4. Check if the node to the MDS node is configured has been deleted.

    If moony is not displayed as MDS(S), the node has been deleted.

    # sfcrscinfo -m /dev/sfdsk/gfs01/dsk/volume01 <Enter>
    /dev/sfdsk/gfs01/dsk/volume01:
    FSID  MDS/AC  STATE  S-STATE   RID-1   RID-2   RID-N  hostname
       1  MDS(P)  stop   -             0       0       0  sunny
       1  AC      stop   -             0       0       0  sunny
       1  AC      stop   -             0       0       0  moony
  5. Delete the node information.

    # sfcnode -d -h moony /dev/sfdsk/gfs01/dsk/volume01 <Enter>
  6. Confirm that the node information has been deleted.

    You can do this by checking that the moony field is not displayed in the sfcinfo(8) outputs.

    # sfcinfo -n /dev/sfdsk/gfs01/dsk/volume01 <Enter>
    /dev/sfdsk/gfs01/dsk/volume01:
    FSID  hostID    status  hostname
       1  80a4f75b  STOP    sunny