PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment)
Contents Index PreviousNext

Part 3 Global File Services Shared File System> Chapter 22 File System Operations (Command)> 22.6 Change (shared node information)

22.6.2 Changing while mounted status

In the GFS Shared File System, you can add shared node information while the file system is mounted. First, to the GFS Shared File System, add the shared node information of the node to be added. Then enable mounting of the GFS Shared File System in the added node.

This section describes the procedure for adding shared node information while the GFS Shared File System is mounted.

If you wish to delete or update node information, perform the operations while the file system is unmounted. For details, see Section 22.6.1, "Changing an unmounted file system," in this manual.

22.6.2.1 Setting shared disk

When a new-shared node is to be added, you must set the new node into the scope of the disk class containing the GDS logical volumes making up the file system to which the node information is to be added.

For information on operating the disk class that the GDS logical volumes belong to, see the relevant item in "Operating on the management view" in the "PRIMECLUSTER Global Disk Services Configuration and Administration Guide."

22.6.2.2 Changing the management partition information

When a new-shared node is to be added, register the node information in the management partition by first executing sfcsetup -a on the node to be added.

For details on registering node information to the management partition, see Section 20.3, "Adding node configuration information to the management partition" in this manual.

22.6.2.3 Changing the shared node information

The GFS Shared File System stores information about nodeTerms that share the file system in each partition since access to the System is restricted except from nodes that share the file system.

The node information mainly contains the following information:

To add node information, use sfcnode(1M). To add node information while the file system is mounted, execute sfcnode(1M) in an existing shared node.

How to add node information (star) to an existing file system (/dev/sfdsk/gfs01/rdsk/volume1) using sfcnode(1M) is shown below.

1. Check that the target file system is mounted in the node in which sfcnode(1M) is to be executed.

You can do this by checking that "RUN" is displayed in the status field, which was output by sfcinfo(1M), of the execution node.

# sfcinfo -n /dev/sfdsk/gfs01/dsk/volume1
/dev/sfdsk/gfs01/dsk/volume1:
FSID  hostID    status  hostname
   1  8038xxxx  RUN     sunny
   1  8038yyyy  RUN     moony

2. Add the nodeTerm information (star) to the file system.

# sfcnode -a star /dev/sfdsk/gfs01/rdsk/volume1

For details on the sfcnode(1M) options, see Appendix F.2.15, "sfcnode(1M)."

3. Confirm that the node information has been added.

You can do this by checking that the new star field is newly displayed in the sfcinfo(1M) output.

# sfcinfo -n /dev/sfdsk/gfs01/dsk/volume1
/dev/sfdsk/gfs01/dsk/volume1:
FSID  hostID    status  hostname
   1  8038xxxx  RUN     sunny
   1  8038yyyy  RUN     moony
   1  8038zzzz  STOP    star

If all nodes that share the file system are set as MDSTerm placement nodes, the added node is also set as an MDS placement node.

If all nodes that share the file system are not set as MDS placement node, the added node is not set as an MDS placement node.

If all nodes that share the file system are not set as MDS placement nodes, use sfcadm(1M) to enable MDS operation on an added node. For node changes that enable MDS operation, see Section 22.8.2, "Changing the MDS operational information."

22.6.2.4 Setting vfstab

In the GFS Shared File System, it is necessary to code an entry that is to be mounted the file system on /etc/vfstab of all the nodes that share a file system.

The entry for the GFS Shared File System containing the added node information is added to /etc/vfstab of the added node.

For details on setting /etc/vfstab, see Section 22.2.3, "Setting vfstab."

22.6.2.5 Mount

Mount the GFS Shared File System containing the added node information in the added node.

1. Mount the GFS Shared File System in the added node.

The following example shows the mount point specification.

# mount /fs1
   Mount point: /fs1

2. Confirm that the GFS Shared File System can be used on the added node by mounting the file system.

Execute sfcrscinfo(1M), and check that the STATE field of MDS indicates "run" for the host and that the STATE field of AC for the added node (start) indicates "run."

# sfcrscinfo -m /dev/sfdsk/gfs01/dsk/volume1
/dev/sfdsk/gfs01/dsk/volume1:
FSID  MDS/AC  STATE  S-STATE   RID-1   RID-2   RID-N  hostname
   1  MDS(P)  run    -            0        0       0  sunny
   1  AC      run    -            0        0       0  sunny
   1  MDS(S)  wait   -            0        0       0  moony
   1  AC      run    -            0        0       0  moony
   1  AC      run    -            0        0       0  star


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004