Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

Configuring Junos Space to write RRD files to external storage

0

0

Article ID: KB30727 KB Last Updated: 09 Feb 2016Version: 1.0
Summary:
Configuring Junos Space to write RRD files to external storage as a data loss prevention measure.

Symptoms:
Junos Space network monitoring (openNMS) writes RRD files to hard disk to provide time-series historical graphs.
RRD files cause a large number of small random disk writes usually with a few writes per update.
In some fail-over situations, there may be loss of a few RRD file writes.
This loss of data will not cause complete failure of the graph data but may cause a small time gap in the available data.
Cause:
 
Solution:
As a workaround, Juniper recommends to have these RRD files written on an external drive (NFS server) which will be accessible by both Space nodes. In case of failover, no data is lost as both Junos Space nodes are writing and reading from a central data storage.   This central data storage would only be for openNMS RRD files.

This requires configuration changes for Opennms. 

Below are detailed steps to be done on the NFS server and Space nodes.
You need a linux server which would act as a NFS server.

Do the following on NFS server:

service portmap stop
service nfs stop
groupadd -g 504 opennms
useradd -u 503 -g opennms -G opennms opennms
mkdir /opennmsrrd
chown opennms:opennms /opennmsrrd
vi /etc/exports, add the following line
/opennmsrrd *(rw,sync,all_squash,anonuid=503,anongid=504)
service portmap start
service nfs start


Do the following changes on both Space nodes.

service jmp-watchdog stop
service jmp-opennms stop
mv /var/opennms/rrd /var/opennms/rrd.old
mkdir –p /var/opennms/rrd
chown opennms:opennms /var/opennms/rrd
mount -t nfs -o nolock 10.206.40.38:/opennmsrrd /var/opennms/rrd/
cp –rf /var/opennms/rrd.old/* /var/opennms/rrd/
service jmp-watchdog start
vi /etc/csync2/csync2.cfg
comment out the following 2 lines
#include /var/opennms/rrd/response/;
#include /var/opennms/rrd/snmp/;
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search