samset - Change the StorageTek QFS or Oracle HSM environment
samset
[keyword
[parameter…]]
SUNWsamfs
samset
is used to change or display variables that control StorageTek QFS or Oracle HSM operation.
Without any arguments, samset displays current settings to
stdout. If samset is executed with a keyword but with no
parameter…, then the current value for just that keyword is
displayed to stdout.
The keywords all have values assigned to them at startup.
These values come from the defaults.conf file. samset allows
you to change keywords while sam-fsd is running.
Any changes made
remain effective only during the current instance of sam-fsd; values
revert to the defaults in defaults.conf at the next startup.
The following keywords are supported:
attended yes | attended noattended tells the StorageTek QFS or Oracle HSM
library daemon if an operator is available to manually
mount media. Regardless of the attended setting, requests for
media which are mounted in a drive, or present in a media changer, will
be satisfied as soon as possible. attended affects the behavior
of StorageTek QFS or Oracle HSM library daemon
when a medium is requested which is not currently present in
either a manually mounted drive, or in a library. The usual action
taken by the library daemon when such a request occurs is to place it into the
preview display (see samu (1m)), and await manual
intervention (but see stale_time, below). However, if either
attended is set to no, or the medium is marked
"unavailable" in the historian catalog, then the request will not go
into the preview display, and will fail with an ESRCH error. If other
archive copies are available, they will be tried. If no further copies
are available, ENXIO will be returned to the requester.
exported_media +u eq… | exported_media -u eq…This option controls the flagging of media exported (see
export (1m))
from the listed libraries as unavailable (+u)
or available (-u) in the historian's catalog. See
attended, above, for the effect of this flag. The setting of the
flag for a given medium may be changed after export using chmed.
idle_unloadThis is the time (in seconds) that a media changer controlled device may be idle before the media in that device is unloaded. A value of zero will disable this feature.
labels label-optionThis option applies only to barcode-reader equipped tape libraries.
The media daemon can obtain the tape label from the upper-cased
characters of the
tape's barcode. label-option may be: barcodes, to use the
first six characters of the barcode as label; barcodes_low, to
use the trailing six characters; or read, to disable barcode
processing and to read the magnetic label from the tape.
When labels is set to barcodes or barcodes_low, any tape
robotically mounted for a write operation that is write enabled,
unlabeled, has never been mounted before, and has a readable barcode
will have a magnetic label written before the write is started.
stale_time minutesSets the amount of time (in minutes) that a request for media will wait
in the preview table before being canceled with an ETIME. The file
system will react to an ETIME error in the same way as an ESRCH error
(see attended, above).
timeout secondsSets the time (in seconds) that will be allowed to elapse between I∕O
requests for direct access to removable media (see
request (1)).
If a process fails to issue the next I∕O to the device within this
time, the device will be closed and, on the next I∕O, the process will
receive an ETIME error. A value of 0 implies no timeout will occur.
debugdebug manipulates the debug∕trace flags within StorageTek QFS or Oracle HSM environments to produce expanded logging. Unless otherwise specified, the debug messages are logged to the syslog facility at the LOG_DEBUG priority. parameter… is a space separated list of flags. To set a flag, give its name. To clear a flag, give its name prefixed with a '-'. The flags are:
allTurn on all debug flags (except trace_scsi and robot_delay).
noneTurn off all debug flags.
defaultSet all debug flags to the default as defined by defaults.conf.
loggingFile system requests to the daemons and the daemons response to the requests are logged to files. These files are used only by Oracle support.
debugThis is catch-all for messages that might be of interest but generally do not show a problem.
movesLog move-media commands issued to media changers.
eventsThis should only be used by Oracle analysts to trace the flow of events used by the media changer daemons. These messages are coded and of little use in the field. These messages are logged to syslog at LOG_NOTICE priority.
timingThis setting has been replaced by the
device log timing event
devlog eq [ event …].
This is described in more detail under the
devlog
keyword.
od_rangeFor optical disk media, log the range of sectors allowed for writing.
labelingLog the VSN, blocksize (for tape media only), and label date when a label is read from a medium following the media's being mounted. These messages are logged to syslog at LOG_INFO priority.
canceledLog when the stage process detects a canceled stage request.
disp_scsiDisplay the current SCSI cdb being executed by a device. This
information is appended to any existing message. If the length of the
existing message and the cdb would overflow the message area, the cdb
is not displayed. The message area for a device can be viewed with
samu (see
samu (1m))
in the "s" or "r" displays.
messagesThis is used by Oracle analysts to trace the flow of messages used by the media changer daemons. These messages are coded and of little use to customers. These messages are logged to syslog at LOG_NOTICE priority.
migkitLog events connected with the StorageTek SAM Migration Toolkit.
mountsLog media mount requests.
opensLog open and close of removable media devices.
trace_scsiThis option may only be set by the super user through the samset command. It causes all scsi commands issued through the user_scsi interface to be written to a file named ∕tmp∕sam_scsi_trace_xx (where xx is the equipment number of either the media changer to which this device belongs or the device itself if it does not belong to a media changer.) The trace file is opened with O_APPEND and O_CREAT on the next I∕O to each device after this flag is set. It is closed when the option is cleared and the next I∕O to that device occurs. Oracle does not recommend running with this option for long periods. The format of the trace information is:
struct {
int eq; ∕* equipment number *∕
int what; ∕* 0 - issue, 1 - response *∕
time_t now; ∕* unix time *∕
int fd; ∕* the fd the ioctl was issued on *∕
char cdb[16]; ∕* the cdb *∕
char sense[20]; ∕* returned sense(valid if what=1) *∕
}cdb_trace;
Oracle does not recommend setting this option indiscriminately, as large output files are quickly produced.
stageallThis should be used only by Oracle analysts to trace stageall processing.
devlog eq [ event …]devlog manipulates the device log event flags for device eq. eq is either an equipment number or "all"; if "all", then the flags are set or listed for all devices. These flags control which events get written to the device log files. [ event …] is a space separated list of event names. To set an event flag, give its name. To clear a flag, give its name prefixed with a '-'. The events are:
allTurn on all events.
noneTurn off all events.
defaultSet the event flags to the default which are: err, retry, syserr, and date.
detailevents which may be used to track the progress of operations.
errError messages.
labelLabeling operations.
migMigration toolkit messages.
msgThread∕process communication.
retryDevice operation retries.
syserrSystem library errors.
timeTime device operations.
moduleInclude module name and source line in messages.
eventInclude the event name in the message.
dateInclude the date in the message.
tapealert eq [on|off|default]tapealert allows the user to enable or disable support for device implemented TapeAlert.
is either an equipment number or "all"; if "all", then the flags are set or listed for all devices.
on Enable TapeAlert if the device supports it.
off Disable requesting TapeAlert information from the device.
defaultReturn TapeAlert to the factory setting.
sef eq [on|off|default] intervalsef allows the user to enable or disable support for tape drive implemented Log Sense delivered via sysevents.
eqis either an equipment number or "all"; if "all", then the flags are set or listed for all devices.
on Enable requesting tape drive Log Sense sysevents if the drive supports it.
off Disable requesting tape drive Log Sense sysevents.
defaultReturn tape drive Log Sense sysevents to the factory setting.
intervalTape drive Log Sense polling interval in seconds. A value of 300 is a polling interval once every five minutes. A string value of "once" specifies one time just before media unload and is the default. A value of 3600 is a polling interval once every hour. The smallest polling interval is five minutes.
request (1),
chmed (1m),
export (1m),
samu (1m),
defaults.conf (4),
mcf (4),
tapealert (1m),
sefsysevent (4).
A complete description of SEF sysevents is in the Oracle HSM Documentation Library.