Installation guide
4: SRA Design Tips and Restrictions
DC 900-1325I 67
much more disk storage space than the flash drive, making it ideal for storing large
numbers of messages and/or log entries.
The Freeway Software CD pre-installs all the Freeway software on a rotating hard drive,
just as it does on a flash drive. The /usr partition is still mounted as read-only. The only
difference is that when installed onto a large rotating hard drive, an additional "
s2g" file-
system is created which you can mount in read-write mode, and where your SRA can
write data or log entries during runtime. This "
s2g" (or "/cache") filesystem normally
contains hundreds of gigabytes, leaving plenty of space for your SRA to store data. To
use it, simply add a command into your rc.startsra file to mount that filesystem:
mount /cache
You should do this before starting your SRA, especially if the SRA will be writing to that
filesystem. Then create your own sub-directories and files within the /cache filesystem,
either with the "mkdir" or "touch" commands in rc.startsra or with your SRA.
Below are some example commands which could be included in the rc.startsra file to
setup the syslogd daemon. This is similar to the example given in Section 4.3.2 on
page 65, but this example uses the rc.startsra file rather than the bootcfg file, and con-
figures the syslog daemon to write the logs to the /cache filesystem on the hard drive
rather than the /var filesystem in the RAM-disk partition. These lines would have to
precede the lines which start your SRA or any other code which uses the syslog daemon:
mount /cache
mkdir -p /cache/log
touch /cache/log/lastlog
chmod 644 /cache/log/lastlog
echo "auth_list = passwd" > /etc/auth.conf
touch /cache/log/all.log
chmod 644 /cache/log/all.log
echo "*.* /cache/log/all.log" > /etc/syslog.conf
/usr/sbin/syslogd -s