[Tech Preview] Linux Storage Node & Updater

Also, I would like to recommend adding standart logging to /var/log/storagenode and /var/log/storagenode-updater It will working for Debian/Ubuntu systems. (I using Debian 10)

mkdir -p /var/log/storagenode/
mkdir -p /var/log/storagenode-updater/

/etc/rsyslog.d/storagenode-updater.conf

if ( $programname == "storagenode-updater" ) then {
    action(type="omfile" file="/var/log/storagenode-updater/storagenode-updater.log")
    stop
}

/etc/rsyslog.d/storagenode.conf

if ( $programname == "storagenode" ) then {
    action(type="omfile" file="/var/log/storagenode/storagenode.log")
    stop
}

service rsyslog restart

And log rotation too:

/etc/logrotate.d/storagenode

/var/log/storagenode/storagenode.log
{
    rotate 60
    daily
    missingok
    dateext
    copytruncate
    notifempty
    compress
}

/etc/logrotate.d/storagenode-updater

/var/log/storagenode-updater/storagenode-updater.log
{
    rotate 60
    daily
    missingok
    dateext
    copytruncate
    notifempty
    compress
}

service logrotate restart

PS. I will continually monitor how it working (Linux storagenode & updater) and report here the results.

5 Likes