-
Notifications
You must be signed in to change notification settings - Fork 246
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
Does REAR support DRBD on LVM? #368
Comments
We implemented and tested it in both ways a few years ago. It should work... |
I tried it now with a very special (maybe stupid) configuration (LVM on DRBD on LVM) and I got the following "error": Disk configuration is identical, proceeding with restore. |
Any updates or solutions for this yet? I've run into the same issue. While testing a Rear recover of a system which includes a DRBD device on an LVM volume, received this error: No code has been generated to restore device /dev/drbd0 (drbd). Please add code to /var/lib/rear/layout/diskrestore.sh to manually install it or choose abort. My local.conf looks like this: OUTPUT=ISO Thanks |
@bbeaver Personally I don not have experience with DRBD. If you could run savelayout in debug mode that would be a nice start. |
Please see savelayout info below: disklayout.conf:
disktodo.conf:
diskdeps.conf:
Thanks |
After performing additional tests, I believe REAR handles full NETFS tar restores of drbd nodes properly by just skipping over the error mentioned above. I've been able to run full rear restore tests on each of my 2 node drdb cluster nodes successfully. After confirming I had a full rear backup for each of the drbd nodes, I manually destroyed the primary node using the dd utillity. Then performed a rear recovery, and chose the option to "Continue" when receiving the "No code has been generated to restore device /dev/drbd0 (drbd) Please add code to /var/lib/rear/layout/diskrestore.sh to manually install it or choose abort" error message. I did not add any code to /var/lib/rear/layout/diskrestore.sh. REAR restored the node perfectly, and drbd automatically knew to re-sync on it's own from the remaining online node. |
By any chance do you have the script |
I do not have the diskrestore.sh file. Apparently this is not created by default, and I did not create one. Thanks |
@bbeaver the diskrestore.sh script is generated during the |
A few days ago I was able to do a restore with DRBD on LVM using REAR 1.17.2 on RedHat 7.2 without any issues. Maybe the problem is already fixed or does not exist on all plattforms. |
@dragon299 That is good news. You can always pre-view the diskrestore.sh script - see http://www.it3.be/2016/06/08/rear-diskrestore/ |
According to #368 (comment) |
Hello,
I am currently try to find out, if REAR does support DRBD on LVM volume. I know that LVM on DRBD works perfectly but I never tried the other way around.
Is there someone who already tried this?
Thank you.
The text was updated successfully, but these errors were encountered: