#1544 PR merged
: #1523 Netbackup agents not automatically started¶
Labels: enhancement
, fixed / solved / done
, external tool
rmetrich opened issue at 2017-10-25 13:22:¶
When using NetBackup 7 for ReaR backup (BACKUP=NBU in /etc/rear/local.conf), the NetBackup initscript (/etc/init.d/netbackup) is automatically added to the ReaR rescue image as /etc/scripts/system-setup.d/90-netbackup.sh.
Upon recovery, the agent is not started automatically.
Also the /etc/scripts/system-setup aborts immediately after sourcing
NetBackup initscript, causing auto-recovery to not work.
The root cause is /etc/scripts/system-setup sourcing initscripts,
instead of executing them.
This is OK for other internal scripts, but not for 3rd-party initscripts
ReaR doesn't control.
In particular, netbackup executes "exit XX" at its end, causing
/etc/scripts/system-setup to exit.
Suggested fix is to modify /usr/share/rear/rescue/NBU/default/450_prepare_netbackup.sh so that the "/etc/scripts/system-setup.d/netbackup" script runs in a sub-shell, as shown below:
- /etc/init.d/netbackup is copied as /etc/scripts/system-setup.d/netbackup.real
- /etc/scripts/system-setup.d/90-netbackup.sh is created to encapsulate /etc/scripts/system-setup.d/netbackup.real execution in a sub-shell
jsmeix commented at 2017-10-26 12:03:¶
@gdha could you have a look here if time permits
because you also had a look at
https://github.com/rear/rear/issues/1523
jsmeix commented at 2017-10-26 12:06:¶
@pdanek could you review this pull request because
you submitted
https://github.com/rear/rear/issues/1523
rmetrich commented at 2017-11-30 08:57:¶
I got confirmation that, along with fix for #1609 (PR #1610), the NetBackup daemons are now up and running at boot.
pdanek commented at 2017-11-30 09:10:¶
Hello guys,
Apologies for late response.
I was in touch with Red Hat Support during last few weeks to resolve
this
issue.
They finally fixed this and we have funtional RPM for RHEL7 now.
Perhaps they will provide this back to upstream, but apologies if
double
work was done.
I requested information what was the exact cause of the issue, but not
provided yet.
Best Wishes,
Peter Danek
On Thu, Nov 30, 2017 at 9:57 AM, Renaud Métrich
notifications@github.com
wrote:
I got confirmation that, along with fix for #1609
https://github.com/rear/rear/issues/1609 (PR #1610
https://github.com/rear/rear/pull/1610), the NetBackup daemons are now
up and running at boot.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rear/rear/pull/1544#issuecomment-348123543, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATBf9BcMN9hkxwEY-SslI1ZMiBBNFNuWks5s7m36gaJpZM4QF_hd
.
rmetrich commented at 2017-11-30 09:17:¶
Hello Peter @pdanek , I filed PR #1610 to fix upstream rear.
pdanek commented at 2017-11-30 09:31:¶
Oh I see that now.
Thanks Renaud.
On Thu, Nov 30, 2017 at 10:17 AM, Renaud Métrich
notifications@github.com
wrote:
Hello Peter @pdanek https://github.com/pdanek , I filed PR #1610
https://github.com/rear/rear/pull/1610 to fix upstream rear.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rear/rear/pull/1544#issuecomment-348128490, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATBf9NLNSeMsNGc-6Aj6R9voFhmQwxIGks5s7nKrgaJpZM4QF_hd
.
[Export of Github issue for rear/rear.]