This chapter is aimed at the LSF administrator running a Windows NT only cluster. If your cluster contains any UNIX hosts, see Chapter 6, `LSF Database - UNIX', on page 41.
All examples in this chapter assume the use of Microsoft SQL Server 6.5 as the LSF database, and use of an ODBC-compliant DBMS.
Log on as the Microsoft SQL Server Database Administrator (DBA) and complete the following procedures in order.
By default, LSF Analyzer also uses this account to read information in the LSF database.
LSF Analyzer does not require permission to write to the database, so if you create the guest account, LSF Analyzer will use it instead of the LSF database user account. The guest account could also be used by other users who only need to read the contents of the database.
To simplify database setup, give the LSF database user account the same name as your LSF primary administrator user account, and do not create the LSF database guest account. You can specify any password you want, but do not confuse the database password with the password for the Windows NT user account.
Create a database that will be the new LSF database.
To simplify database setup, give the database the same name as your LSF cluster (e.g., cluster1
).
Create the tables in the new database according to the LSF database schema. The LSF database schema is specified in a Microsoft SQL Server 6.5 ISQL executable file named createschema.sql
, located in the cluster
\bin
directory (e.g., cluster1\bin
).
Grant the LSF database user account Select, Delete, and Update permissions for all tables in the new database.
If you created an LSF database guest account, grant it Read permission for the new database.
Before you can use LSF Analyzer, you must install the ODBC driver and set up a Data Source Name (DSN) on each batch host in the cluster and on the host used to run the LSF Analyzer (xanalyzer) graphical user interface.
Log onto each host and, if necessary, install the ODBC driver before you set up the DSN.
LSF Analyzer requires the version 3.0 or later ODBC driver for Microsoft SQL Server 6.5. The driver is available from Microsoft.
http://www.microsoft.com/data/odbc
cluster1.ana
).
lsfadmin
) and the password of the LSF database account for Password. Click Next.
cluster1
). Click Next.
Log on as an LSF cluster administrator (not the LSF primary administrator).
The following process describes the activities for the LSF cluster administrator to carry out for setting up LSF for use with Microsoft SQL Server 6.5 and LSF Analyzer:
LSF needs to know the database password for the LSF database user account and the LSF database guest account, if it was created (see `Create LSF Database Accounts' on page 50).
Use the lsdbpasswd
command to set the passwords in LSF, see `lsdbpasswd' on page 56. This command will ask for the password for the specified user ID, encrypt the password and save it into a file. For example, type:
C:> lsdbpasswd lsfadmin
If the LSF database user account has the same name as a Windows NT user account, use this command to input the database password, not the Windows NT password.
Edit the lsf.conf
file and set the following parameters to define the LSF database environment.
If you took all the recommended steps to simplify database setup, you do not need to set these parameters. The default values will match your database setup.
LSF_DB_ACTIVE
Specifies the name of the active LSF database, see `Step 5' on page 52.
Default: the name of the cluster is used (e.g., cluster1
), but the variable remains undefined.
LSF_DB_ACCT
Specifies the Login ID for the LSF database account, see `Create LSF Database Accounts' on page 50.
Default: the name of the LSF primary administrator account is used (e.g., lsfadmin
), but the variable remains undefined.
LSF_DB_GUEST_ACCT
Specifies the Login ID for the LSF database guest account, see `Create LSF Database Accounts' on page 50.
Default: the name of the LSF primary administrator account is used (e.g., lsfadmin
), but the variable remains undefined.
The procedure to update LSF differs depending on whether LSF is running or yet to be started. Is LSF running?
Reconfigure LSF by executing the following two commands:
C:> lsadmin reconfig C:> badmin reconfig
The LSF service and daemons on each LSF server host will start automatically when the machine is restarted.
If you cannot restart each host at this time, log on as an LSF cluster administrator (a member of the LSF Global Administrators group) and start the LSF service and daemons manually.
You should not use the primary LSF administrator's account (normally lsfadmin
) to start or stop LSF service and daemons.
To start the LSF service and daemons, use any one of the following methods:
C:> lssrvcntrl start -m all lssrvman
Usage information for lssrvcntrl
is available by typing lssrvcntrl
with no options.
lsdbpasswd [ -h ] userID
Sets and changes the user's password. The password is encrypted then written to thelsf.dbpasswd
file.
-h
Print command usage to stderr and exit.
userID
Specifies user ID.
Data collection can be tuned by modifying the parameters configured in the lsb.params
file. For example, edit:
LSB_CONFDIR\cluster\configdir\lsb.params
The following parameters can be configured:
DB_DEFAULT_INTVAL
Specifies the time interval to log job data (except load information and resource usage of running and suspended jobs) to the database, in minutes. To stop logging job data, setDB_DEFAULT_INTVAL=-1
.
Default: 5
DB_JOB_RES_USAGE_INTVAL
Optional. If defined, specifies the time interval to log job resource usage to the database, in minutes.
Default: undefined (job resource is not logged).
DB_LOAD_INTVAL
Specifies the time interval to log load information (internal and external load indices and shared resources), in minutes.
Minimum: 15
Default: 60 (1 hour)
DB_SELECT_LOAD
Optional. Specifies which load information to collect. Possible values internal load indices, external load indices, and shared resources. This parameter is case sensitive. If more than 4 load values are specified (separated by spaces) only the first 4 will be used. For example,
DB_SELECT_LOAD = ut mem ext_idx1 shared_lic1
will collect CPU utilization, available memory, the user-specified external load indexext_idx1
, and the user-specified shared resourceshared_lic1
.
Default: ut
The acct2db
utility is used to convert job log files (e.g., lsb.acct
) into LSF databases, allowing you to analyze LSF data collected before LSF Analyzer was installed. These databases cannot be used as online (active) databases. The license for the acct2db
utility expires 30 days after your LSF 3.2 license is generated.
To convert data from an existing job log file, take the following steps (all Windows NT examples assume the use of Microsoft SQL Server 6.5 as the LSF database, and use of an ODBC-compliant DBMS). Log on as the Microsoft SQL Server Database Administrator to complete steps 1 through 4.
lsb.acct
) is stored.
acct2db
command and specify the new database as the target database. Each finished job record in the job log file is converted into a database record.
acct2db [ -h ] [ -V ] [ -f
lsb.acct.file
]
database_name
-h
Prints command usage to stderr and exits.
-V
Prints the LSF release version to stderr and exits.
-f
lsb.acct.file
Specifies the job log file on the local host which is to be converted into a database.
Default:LSB_SHAREDIR\
cluster\
logdir\lsb.acct
database_name
Specifies the name of the target LSF database. The target database cannot be the online (active) database.