Moxa V2616A-C8-CT-W7E [64/111] File overview

Moxa V2616A-C5 [64/111] File overview
V2616A Linux Hot-swap Function
6-2
File Overview
The major files are listed below:
mxhtspd: a daemon for monitoring hot-swap events
mxhtspd-setled: a command to set up LED signals
/etc/mxhtspd/scripts: scripts executed when an event occurs; the following files are included:
action-btn-long-pressed
action-btn-short-pressed
action-disk-plugged
action-disk-unplugged
action-part-over-usage
/etc/mxhtspd/mxhtspd.conf: configuration file for the mxhtspd daemon
libmxhtsp.so: library
Hot-swap Daemon Configuration
An mxhtspd daemon is provided for the V2616A hot-swap function. It is launched with the
/etc/init.d/mxhtspd.sh script at startup and will detect the disk status in the background.
You can configure mxhtspd with the following options:
-t time: time in seconds to identify how long a button is pressed
-i interval: interval in seconds to check partition usage
-l facility_num: log daemon's message by rsyslogd with LOCAL[facility_num]
-v: run in verbose mode
-h: print usage
The following example shows how to use the v option to modify /etc/init.d/mxhtspd.sh:
start)
echo "Starting mxhtspd daemon..."
sleep 1
mxhtspd -v &
The mxhtspd daemon also provides the capability to monitor partition usage. You can configure the
mxhtspd.conf file to monitor a mount point of hotswap disks such as /medik/disk1p1. Note that disknpm
is the m-th partition of hotswap disk n.
An example of mxhtspd.conf is shown below:
#mount point usage limit(%)
/media/disk2p1 90
/media/disk1p1 90
When more than 90% of either partition 1 of disk 2, or partition 1 of disk 1 is in use, the corresponding event
will be triggered.

Содержание

Похожие устройства

Скачать