PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment) |
Contents Index |
Part 3 Global File Services Shared File System | > Chapter 22 File System Operations (Command) | > 22.6 Change (shared node information) |
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.
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."
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.
The GFS Shared File System stores information about nodes 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 node 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 MDS 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."
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."
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 |