es
$ sam start station [--name=<name>][--quiet|--verbose] [--nofork] [--auto-stagers=yes|no] [<config-options>]
If the name flag is omitted, the environment variable SAM_STATION must be set. The --auto-stagers option defaults to "yes" and specifies whether the station should automatically start a stager for each local disk. The config-options are described in the next section.
$ sam configure station [--station=<name>] [<config-options>]
where config-options are:
--min-delivery=<KBytes>
--preferred-loc=<location>
--honor-opter-order=yes|no
--file-release-timeout=<minutes>
--max-project-file-usage=<num>
--default-batch-sytem=<name>
The min-delivery flag works as follows. The SAM optimizer (global resource manager) groups requests for file deliveries by the file's tape, in order to minimize the tape mounts. Normally, the station will deliver all or none of the files in the group. If the entire group cannot be fit on disk and the min-delivery flag is set to a number in KBytes, then the station will attempt to deliver a fraction of the group but at least as much as the value of the flag. If the value of min-delivery is zero, there is no minimum unit of delivery (i.e., a single file may be delivered).
The preferred-loc flag specifies the preferred source location for the files to deliver. It affects all of the subsequently started projects and none of the already running projects.
The honor-opter-order flag determines whether the SM strictly follows the order of delivery units (request groups) authorized by the optimizer. If the flag is set to "no", the SM will try to deliver other units if the unit in the head of the "queue" is undeliverable for any reason.
The file-release-timeout flag specifies the maximum time a project is allowed to hold files and not release any of them. The feature is targeted to reap seemingly abandoned projects (when the user abandons his/her project, the project still "uses" files given to it, if any, as far as the station is concerned).
The max-project-file-usage flag limits the number of files that a project can hold (use) at the same time. If more files are available in cache at the time the project is started, they also may be given to the project, however, no more files will be requested from HSM on the project's behalf once it is using "too many" files. The feature is designed to guard HSM from requests for files for projects that are abandoned or proceed to slowly to "deserve file deliveries".
The default-batch-system flag sets the default batch system to which user jobs will be submitted unless users specify otherwise.
Obviously, configuring the station requires the station administrator privilege (check using sam dump station --groups).
$ sam add|configure group --group=<group_name> [--station=<station_name>] [--max-disk=<KBytes>] [--max-lock=KBytes] [--max-projects=<num>] [--admin=<name1,[name2...]> ]
The add group command applies to a new group whereas the configure group command applies to a group which is already known to the station. The group itself must be known to SAM; use the SAM Web browsing tools to know about the valid groups (requests to create a new group should also be directed to sam-design@fnal.gov ). Note the difference between a group being known to the SAM system as a whole and a group being known to a particular station. If the station flag is omitted, the environment variable SAM_STATION must be set.
The max-disk flag specifies how much disk space
the group may use on this station. The argument is the size allocated and a unit,
for example 10G is 10 Gigabytes, and 10M is 10 Megabytes.
The max-lock flag specifies
the amount of disk space that is occupied by the files that
the group group locks on disk (see the section on file locking). The max-projects
flag
specifies the maximum number of simultaneously run projects by the group.
The admin flag specifies admistrators of the group
on the station (a group administrator on one station may not be an admistrator
of that group on another station. For example, a member of a group may
setup a 'private' station on her desktop and dub herself an administrator
of that group on the station). The value of the flag is a comma-separated
list of UNIX user names of group administrators. The corresponding persons
must be members of the group (from SAM's perspectives, see SAM
Web browsing tools) in the first place.
$ sam add disk [--station=<station_name>] --mount=<path> --sizeK=<size> [--machine=<machine>]
If the machine argument is omitted, the current node is used;
the disk space must be in KBytes. It is also possible to remove a
disk from a station at run time, provided there are no cached files on
the disk:
$ sam remove disk [--station=<station_name>] --mount=<path> [--machine=<machine>]
For removal of a disk that does have files cached on it, contact SAM administrators.
$ sam set policy --group=<group_name> [--station=<station_name>] --policy=RANDOM|FIFO|LRU [--param=<policy-dependent-value>]
The policy determines what files are to be erased from disk when new
deliveries are required. Note that the cache replacement policy does not
affect files that group has locked on disk. Those files will not be removed
until explicitly unlocked by the group (see the section on file locking).
The currently implemented policies are Least Recently Used, First In First
Out and Random. Some policies require a parameter whose meaning is policy-dependent.
Currently, only the Random algorithm requires a parameter which must be
positive integer seed.
$ sam lock|unlock file --file=<file_name> --group=<group_name>
[--station=<station_name>]
$ sam add batch system [--station=<station_name>] --name=<bs_name>
$ sam remove batch system [--station=<station_name>] --name=<bs_name>
If a particular batch system is the first one that is being added to the
station, it will also become the default batch system. Similarly,
if a batch system that is being removed from the station is configured
as default, the new default batch system will be chosen randomly
from the list of the remaining batch systems.
$ sam dump station [--disks | --projects | --groups | --files={cached|requested|all}
| --all [--station=<station_name>]
--consumption-map=<regular expr>::node1,node2,node3Regular expression defines locations of the consumer processes this option should be applied to. List of nodes defines locations where station will stage files to for those consumer processes that were matched by the regular expr. Example : see --pmaster-arg option example.
=============================================================================
Project : SAM
Package : sam
$Id: Station.html,v 1.16 2005/04/15 19:21:45 lauri Exp $
This work is part of a development project, called SAM, which consists
of a
number of coordinated packages each named sam_xxxx .
Notice of authorship, copyright status, and terms and conditions,
should
the software eventually become available for use outside Fermilab,
can be
found in the README and LICENCE files in the top level directory
of the main
sam package.
==============================================================================