PRIMECLUSTER Global File Services Configuration and Administration Guide 4.1 (Linux)
Contents Index PreviousNext

Appendix B Reference Manual> B.2 GFS Shared File System Specific Management Commands

B.2.7 sfcnode(8) Add, delete, and change node configuration information

<SYNOPSIS>

sfcnode -a host,... device_file

sfcnode -d [-h host,...|-i hostid,...]device_file

 

<DESCRIPTION>

The sfcnode command adds, deletes, and changes GFS Shared File System node information.

To add or update node information, specify the -a option. If a specified host name already exists, sfcnode updates node and device information for the host. If the host does not exist, sfcnode adds the node and device information. Use a comma delimiter to specify multiple host names.

To delete node information, specify the -d option. For the -h or -i option, specify the host name (host) or host ID (hostid) of the host to be deleted. sfcnode deletes the node information of the host. If neither the -h nor -i option is specified, sfcnode deletes the node information for the host on which the sfcnode is executed. Use a comma delimiter to specify multiple host names or IDs. The -h and -i options cannot be specified together.

The value which took the logical sum of the nodes ID obtained by clgetnode(8) and '0x80000000' is specified as Host ID. That is, when the node ID obtained by clgetnode(8) is 1, '0x80000001' is specified as Host ID.

After the sfcnode command changes the GFS Shared File System node information, the entries in the file system configure information in a management partition are updated. The information retained in the partitions is also changed.

 

<OPTIONS>

The following options can be specified:

-a host,...

Specifies the name of a host whose node information is to be added.

-d

Deletes node information.

-h host,...

Specifies the name of a host whose node information is to be deleted. The host must be one that can be used by the GFS Shared File System.

-i hostid,...

Specifies the ID in hexadecimal of a host to be deleted from node information. The host must be one that can be used by the GFS Shared File System. Note that a host ID specified for this option differs from a host ID obtained with hostid(1).

 

<OPERAND>

The following operand can be specified:

device_file

Specify a block special device or a character special device on the representative partition of the GFS Shared File System whose node information is to be updated.

 

<EXAMPLES>

# sfcnode -a host2 /dev/sfdsk/gfs/dsk/volume1

# sfcnode -a host1, host2 /dev/sfdsk/gfs/dsk/volume1

# sfcnode -d -h host2 /dev/sfdsk/gfs/dsk/volume1

# sfcnode -d -i 80000000 /dev/sfdsk/gfs/dsk/volume1

# sfcnode -d /dev/sfdsk/gfs/dsk/volume1

 

<SEE ALSO>

sfcmkfs(8), sfcadm(8), sfcinfo(8),sfcsetup(8)

 

<NOTES>


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004