Page 2 of 4
Re: Scheduled Backups not running
Posted: Fri Jan 23, 2015 4:11 pm
by krobertson71
Yes I agree. Point I was trying to make is that the message is a little misleading when testing permissions.
We were trying to find a way for nagios to be able run backups and have netdev as the group which contains a service account used for our enterprise backup system.
Linux guys said they can work around it.
I would suggest changing the wording on the test, or add some info to the page specifying both apache and nagios need permissions to create backups as the message deliverd states to make sure that the Nagios user OR the nagios group has permissions to write.
Just having Nagios be the owner does not work.
Thanks for the clarification.
Re: Scheduled Backups not running
Posted: Sat Jan 24, 2015 7:39 pm
by krobertson71
Changed to nagios:nagcmd. Scheduled Backups are still not writing anything to the /backups/ directory.
Selection_110.png
Here Is a screenshot of the Scheduled Backups screen
Selection_111.png
Re: Scheduled Backups not running
Posted: Mon Jan 26, 2015 10:06 am
by scottwilkerson
krobertson71 wrote:Changed to nagios:nagcmd. Scheduled Backups are still not writing anything to the /backups/ directory.
Are you sure? It says right on the page "last backup size was 141.43MB"
Re: Scheduled Backups not running
Posted: Mon Jan 26, 2015 6:12 pm
by krobertson71
Yeah....... I am sure
Selection_116.png
That 141mb you see is when I did the Local Backup "Create Now' which put it in /store/backup
The scheduled backups are not working.
Can anyone help with this?
And before anyone asks... Yes the Nagios user can write to the directory.
Selection_117.png
Re: Scheduled Backups not running
Posted: Tue Jan 27, 2015 10:46 am
by tgriep
In XI, go to Admin > System Backups > Local Backup Archives
Do you see the backups there?
Can you provide a screen shot of that?
Re: Scheduled Backups not running
Posted: Tue Jan 27, 2015 10:57 pm
by krobertson71
Here it is. Only shows the autoupgrade backup from the last upgrade.
Selection_118.png
Re: Scheduled Backups not running
Posted: Wed Jan 28, 2015 11:28 am
by tgriep
Could you run these commands and post back the results?
Re: Scheduled Backups not running
Posted: Wed Jan 28, 2015 12:19 pm
by krobertson71
Here you go:
Code: Select all
[kar54@nagiasp01 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg-root 1008M 514M 444M 54% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 97M 50M 43M 54% /boot
/dev/mapper/vg-home 1008M 34M 924M 4% /home
/dev/mapper/vg-opt 2.0G 212M 1.7G 12% /opt
/dev/mapper/vg-tmp 1008M 659M 299M 69% /tmp
/dev/mapper/vg-usr 60G 2.6G 54G 5% /usr
/dev/mapper/vg-var 79G 1.2G 74G 2% /var
/dev/mapper/vgbu-bu 79G 184M 75G 1% /backups
[kar54@nagiasp01 ~]$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg-root 65536 8778 56758 14% /
tmpfs 2042014 1 2042013 1% /dev/shm
/dev/sda1 25688 44 25644 1% /boot
/dev/mapper/vg-home 65536 97 65439 1% /home
/dev/mapper/vg-opt 131072 962 130110 1% /opt
/dev/mapper/vg-tmp 65536 11306 54230 18% /tmp
/dev/mapper/vg-usr 3932160 77546 3854614 2% /usr
/dev/mapper/vg-var 5242880 6245 5236635 1% /var
/dev/mapper/vgbu-bu 5242880 13 5242867 1% /backups
[kar54@nagiasp01 ~]$ ll /backups
total 16
drwx------ 2 root root 16384 Jan 22 11:20 lost+found
-rw-r--r-- 1 nagios users 0 Jan 26 18:21 test1
-rw-r--r-- 1 nagios users 0 Jan 26 18:21 test2
[kar54@nagiasp01 ~]$
Re: Scheduled Backups not running
Posted: Wed Jan 28, 2015 1:37 pm
by tgriep
For a test, could you change the permissions on the backups folder and schedule a backup to happen just after you do that to see if it works?
Run these commands.
Code: Select all
chown nagios.nagios /backups
chmod ug+wrx /backups
After this, try the backup.
Re: Scheduled Backups not running
Posted: Wed Jan 28, 2015 3:32 pm
by krobertson71
No Go... no errros, time passes and it just reschedules for the next day.
Selection_119.png
Selection_120.png
Still only showing the backup that was done during the last upgrade.