Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReaR never gets to the backup step on systems with large numbers of disks #517

Closed
bjverzal opened this issue Dec 12, 2014 · 13 comments
Closed
Assignees

Comments

@bjverzal
Copy link

In our GPFS Analytical environment, the ReaR goes through the setup steps but never starts the actual backup because it takes so long to query all of the disk on the system

(root@myserver) /root # wc -l /proc/partitions
2458 /proc/partitions

@schlomo
Copy link
Member

schlomo commented Dec 13, 2014

Wow, I have never seen so many block devices!

Can you please provide a log and your configuration?

Also, does the same happen with rear mkrescue too?

@bjverzal
Copy link
Author

We've not tried rear mkrescue. I'll respond to the mail with an attachment because I cannot paste a zip file here.

@bjverzal
Copy link
Author

I've update the Git thread. Here is the attachment with the requested
information in it. I have included:

lshw
multipath -ll
/etc/redhat-release
rear.log

On Sat, Dec 13, 2014 at 4:02 PM, Schlomo Schapiro notifications@github.com
wrote:

Wow, I have never seen so many block devices!

Can you please provide a log and your configuration?

Also, does the same happen with rear mkrescue too?


Reply to this email directly or view it on GitHub
#517 (comment).

@schlomo
Copy link
Member

schlomo commented Dec 14, 2014

Attachments don't work. Please use https://gist.github.com for your logs and also add your ReaR configuration (there or here).

@bjverzal
Copy link
Author

https://gist.github.com/1ac2bf0072c5d85f6d10.git

I have there, the following:

/etc/redhat-release
lshw
multipath -ll
rear.log

Thanks!

On Sun, Dec 14, 2014 at 3:02 AM, Schlomo Schapiro notifications@github.com
wrote:

Attachments don't work. Please use https://gist.github.com for your logs
and also add your ReaR configuration (there or here).


Reply to this email directly or view it on GitHub
#517 (comment).

@bjverzal
Copy link
Author

As to the configuration:

NFS v4 to an AIX server. I think we are on Version 15 of ReaR. The
configs are standard across all 1600 of our servers. Only these two with
the large number of disks are failing.

On Sun, Dec 14, 2014 at 3:02 AM, Schlomo Schapiro notifications@github.com
wrote:

Attachments don't work. Please use https://gist.github.com for your logs
and also add your ReaR configuration (there or here).


Reply to this email directly or view it on GitHub
#517 (comment).

@gdha
Copy link
Member

gdha commented Dec 16, 2014

@bjverzal the link to the gist stays blank with me?

@gigawatts
Copy link

If there is a quick hack I can implement that ONLY scans the partition structure of sda, for example, instead of all disks, that is all I really need to get these couple servers backed up properly. Then we can try for a "real" solution later.

@gdha gdha self-assigned this Dec 17, 2014
@gdha
Copy link
Member

gdha commented Dec 17, 2014

A quick hack could be to put in script /usr/share/rear/layout/save/GNU/Linux/28_multipath_layout.sh the following lines in front of the other code:

if [[ "$AUTOEXCLUDE_MULTIPATH" =~ ^[yY1] ]] ; then
    return
fi

@gigawatts
Copy link

I assume we should also then set AUTOEXCLUDE_MULTIPATH = 1 in our local.conf, to activate this skip?

Edit: Never mind. I tried adding the if statement you provided without defining that variable anywhere, and it seems to have worked! I will be adding this hack to all my systems currently experiencing this issue.

Thank you very very much @gdha !

@schlomo
Copy link
Member

schlomo commented Dec 17, 2014

It seems to be enabled by default:

$ grep -r AUTOEXCLUDE_MULTIPATH .
./usr/share/rear/lib/layout-functions.sh:    if [[ -n "$res" || "$AUTOEXCLUDE_MULTIPATH" =~ ^[yY1] ]]; then
./usr/share/rear/conf/default.conf:AUTOEXCLUDE_MULTIPATH=y
./usr/share/rear/layout/save/default/32_autoexclude.sh:if [[ "$AUTOEXCLUDE_MULTIPATH" =~ ^[yY1] ]] ; then
./doc/user-guide/06-layout-configuration.txt:A similar mechanism exists for multipath disks. The +AUTOEXCLUDE_MULTIPATH=y+

Maybe the check was just missing from 28_multipath_layout.sh

@gdha
Copy link
Member

gdha commented Feb 3, 2015

no the check was not there on purpose as we like to have our multipath config in our layout and what later it will be commented anyway. It is always nice to see what was originally configured on your system (handy in DR mode to see what was on the production system).
However, in rare cases there are just too many devices. I would not modify this script.
Just gonna close this issue.

@gdha gdha closed this as completed Feb 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants