![Black Box LS1016A User Manual Download Page 137](http://html.mh-extra.com/html/black-box/ls1016a/ls1016a_user-manual_2763435137.webp)
Chapter 3 - Additional Features
User Guide
137
Data Buffering
Introduction
Data buffering can be done in local files or in remote files through NFS. When using remote
files, the limitation is imposed by the remote Server (disk/partition space) and the data is kept
in linear (sequential) files in the remote Server. When using local files, the limitation is
imposed by the size of the available ramdisk. You may wish to have data buffering done in
file, syslog or both. For syslog,
all.syslog_buffering
and
conf.DB_facility
are the parameters
to be dealt with, and syslog-ng.conf file should be set accordingly. (Please see
Syslog
for the
syslog-ng configuration file.) For the file,
all.data_buffering
is the parameter to be dealt with.
Conf.nfs_data_buffering is a remote network file system where databuffering will be written,
instead of using the default directory /var/run/DB.When commented, it indicates local data
buffering. The directory tree to which the file will be written must be NFS-mounted and the
local path name is /mnt/DB_nfs. The remote host must have NFS installed and the administra-
tor must create, export, and allow reading/writing to this directory. The size of this file is not
limited by the value of the parameter s1.data_buffering,though the value cannot be zero since
a zero value turns off data buffering.
The conf.nfs_data_buffering parameter format is:
<server name or IP address>:<remote pathname>
If data buffering is turned on for port 1, for example, the data will be stored in the file
ttyS1.data (or <serverfarm1>.data if s1.serverfarmwas configured) in local directory
/var/run/DB or in remote path name and server indicated by the conf.nfs_data_buffering.
Ramdisks
Data buffering files are created in the directory
/var/run/DB
. If the parameter s<nn>.server-
farm is configured for the port <nn>, this name will be used. For example, if the serverfarm is
called bunny, the data buffering file will be named bunny.data.
The shell script
/bin/build_DB_ramdisk
creates a 48 Mbyte ramdisk for the BLACK BOX
®
Advanced Console Server. Use this script as a model to create customized ramdisks for your
environment. Any user-created scripts should be listed in the file /etc/user_scripts because
rc.sysinit executes all shell scripts found there. This avoids changing rc.sysinit itself.