Page 1 of 1

snopshot Repository show nothing

Posted: Wed May 22, 2019 1:21 am
by cdcsysadmin
I setup a Snapshot Repository for archiving index and already clicked the "save Settings" at snapshot and Maintenance page.

after a few weeks , the snapshots table still nothing to show up , only the header "Created/Name, State, Indexes, Actions"

what is the problem will my Repositories

log server size 7TB , backup Repository size 3TB

Re: snopshot Repository show nothing

Posted: Wed May 22, 2019 9:53 am
by cdienger
Please provide a screenshot of the Snapshots & Maintenance screen so we can review the settings.

I'd also like you to run the backup_maintenance job under Admin > System > Command Subsystem, wait about 10 seconds and then provide me with a copy of /usr/local/nagioslogserver/var/jobs.log.

Re: snopshot Repository show nothing

Posted: Thu May 23, 2019 8:59 pm
by cdcsysadmin

Re: snopshot Repository show nothing

Posted: Thu May 23, 2019 9:17 pm
by cdcsysadmin
the jobs.log only contains 4lines

Running command run_alerts with args ' ' for job id: run_all_alerts
SUCCESS
Running command run_alerts with args ' ' for job id: run_all_alerts
SUCCESS

Re: snopshot Repository show nothing

Posted: Fri May 24, 2019 9:07 am
by cdienger
Were you seeing snapshots previously and it suddenly stopped working or is this a new setup?

What is the output look like if you run "ls -alh /usr/local/nagioslogserver/snapshots" ? Sometimes a failed backup will produce files of 0 bytes which will prevent NLS from displaying the rest of the files in the repo. The fix is to delete these 0 byte files.

Try running the job again, wait 30 seconds, then provide me with the jobs.log and PM a profile which can be gathered under Admin > System > System Status > Download System Profile or from the command line with:

/usr/local/nagioslogserver/scripts/profile.sh

This will create /tmp/system-profile.tar.gz.

Note that this file can be very large and may not be able to be uploaded through the PM system. This is usually due to the logs in the logstash and/or elasticseach directories found in it. If it is too large, please open the profile, extract these directories/files and send them separately.

Re: snopshot Repository show nothing

Posted: Sun May 26, 2019 8:43 pm
by cdcsysadmin
result of "ls" command

[root@localhost ~]# ls -alh /usr/local/nagioslogserver/snapshots
total 36K
drwxrwxr-x 4 nagios nagios 4.0K May 26 10:38 .
drwxrwxr-x. 10 nagios nagios 4.0K Oct 29 2018 ..
drwxrwxr-x 31 nagios nagios 4.0K Apr 28 01:51 indices
drwxrwxr-x 2 nagios nagios 16K Apr 28 00:51 lost+found
-rwxrwxr-x 1 nagios nagios 519 Apr 28 01:51 metadata-curator-20190427175153
-rwxrwxr-x 1 nagios nagios 824 Apr 28 01:11 snapshot.1556385102.tar.gz
-rwxrwxr-x 1 nagios nagios 0 Apr 28 08:30 snapshot-curator-20190427175153

Re: snopshot Repository show nothing

Posted: Mon May 27, 2019 4:23 am
by cdcsysadmin
the snapshot cmd seem running now and the size of snapshot size is same as primary storage?

the primary disk is 7.4 TB now and the snapshots repository is 2.9 TB only

do I need to expand the snapshot Repository?

[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 7.4T 6.8T 340G 96% /
/dev/mapper/snapshot_vg-data_lv 2.9T 1.8T 1.1T 63% /usr/local/nagioslogserver/snapshots

Re: snopshot Repository show nothing

Posted: Mon May 27, 2019 12:09 pm
by cdcsysadmin
snapshot completed after delete 0kb file at /usr/local/nagioslogserver/snapshot

Re: snopshot Repository show nothing

Posted: Tue May 28, 2019 7:01 am
by scottwilkerson
cdcsysadmin wrote:snapshot completed after delete 0kb file at /usr/local/nagioslogserver/snapshot
Great!

Locking thread