
A–1
A Using the sfsconfig command
The sfsconfig command is a tool that you can use to automatically perform the following tasks on client
nodes:
• Configure the correct options lnet settings in the /etc/modprobe.conf and
/etc/modprobe.conf.lustre files or the /etc/modules.conf and
/etc/modules.conf.lustre files (depending on the client distribution).
(In the remainder of this appendix, references to the /etc/modprobe.conf file can be understood
to include also the /etc/modprobe.conf.lustre file, and references to the /etc/
modules.conf file can be understood to include also the /etc/modules.conf.lustre file.)
• Add entries to the /etc/hosts file.
• Configure the lquota setting.
• Convert existing mount directives.
To configure the /etc/modprobe.conf or /etc/modules.conf file correctly, the sfsconfig
command needs to have information about each of the HP SFS servers that will be accessed for file system
mount operations. The sfsconfig command uses the http: protocol to get configuration information
from the HP SFS servers. If the client node does not have access to the HP SFS servers over a TCP/IP network,
or if the servers are offline, the sfsconfig command will not be able to configure the client node correctly,
and you will have to modify the configuration file manually, as described in Appendix B.
TIP: If the configuration of a server in the HP SFS system changes (at any time), you can run the
sfsconfig command again to reconfigure the settings in the /etc/modprobe.conf or
/etc/modules.conf file.
The sfsconfig command analyzes the client node to find the interconnects that can be used to connect
to the HP SFS servers. It then determines the appropriate options lnet settings for the node (including
the appropriate setting for the portals_compatibility attribute) and updates the
/etc/modprobe.conf file or the /etc/modules.conf file on the node accordingly. Unless the
-a|--all option is specified with the sfsconfig command, options lnet settings are configured
only for the interconnects that are identified as being needed.
In addition, the command adds an entry (short system name or system nickname) in the /etc/hosts file
for each HP SFS system that will be accessed by the client. This supports the use of server names in the
sfsmount command with the ldap: protocol.
The sfsconfig command gathers the list of servers that need to be accessed from several sources, as
follows:
• The -s|--server option(s) specified on the command line when the sfsconfig command is run.
(Note that you can use the -s|--server name option more than once with the sfsconfig
command, to specify multiple HP SFS servers.)
• The /etc/sfstab file—all entries.
• The /etc/sfstab.proto file—all entries.
• The /etc/fstab file—entries of the lustre type.
• The /proc/mounts file—entries of the lustre and lustre_lite types.
Theses sources are not mutually exclusive—the command uses all of these sources to gather information. If no
/etc/sfstab and /etc/sfstab.proto file exists (for example, on a new HP SFS client system), you
can create the files as described in Section 4.7.1 before you run the sfsconfig command.
Komentarze do niniejszej Instrukcji