APK for DRBD/Pacemaker
#1
Fri, 2013-06-21 17:17
zipuppo
-
- Offline
- 4 years 7 months ago
- 2013-06-21
Hello everybody and, first of all, sorry for my English!
I'm a new (italian) user of Alpine Linux and i like it very much. DRBD apk and Pacemaker apk (2012 apks) are incomptible with Alpine 2.6 (libgnutls.so.26 is missing and drbd script is incorrect; drbd module and drbd userland are different). Is anyone working for a new release of these apks? How can i help you (us) and compile DRBD on Alpine 2.6 and make an apk?
Thank you for your fantastic work!
See you,
Giuseppe
The problem is that drbd package is in "testing", it means somebody asked for it, we built it but then we never got feedback if it worked or not, so we could not move it to "main" repository, where it would be maintained.
I have upgraded drbd package to 8.4.2. It would be nice if you could test it and let us know if it works. If it does we can move it to main and it will be available in next stable release (v2.7)
Thank you very much ncopa! I'll try to test it as soon as possible!!
Giuseppe
New drbd apk works with little mods.
Install apks:
apk add drbd
apk add perl (for "drbd-overview" command)
Edit drbd init script:
vi /etc/init.d/drbd
delete at line 33 and line 43 the first word, "function"
It works!
Now it's time to update, if you want, pacemaker and corosync apk! (drbd+pacemaker is great!)
Thank you very much,
Giuseppe
apk add drdb goes into following error:
WARNING: Ignoring /media/usb/apks/x86_64/APKINDEX.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
drbd (missing):
required by: world[drbd]
what could i do to solve that?
You have to change apk repositories in /etc/apk/, remove the usb line and add apk testing repos
Ciao,
Giuseppe
I have upgraded drbd to 8.4.3 and updated the init.d as suggested. I didnt add perl as a dependency since i think drbd-overview does not seem to be a requirement. We could maybe have a drbd-overview subpackage with proper perl dependency. That way deps will be correct while it is still possible to run drbd without installling perl. (the script appears to be simple enough to be able to be rewritten in shell/awk or Lua or so)
Could you please test it? If you think its good enough I'll move it to main so it becomes available in v2.7