APK for DRBD/Pacemaker

7 posts / 0 new
Last post
#1 Fri, 2013-06-21 17:17
zipuppo
  • zipuppo's picture
  • Offline
  • Last seen: 4 years 7 months ago
  • Joined: 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

Mon, 2013-06-24 09:20
ncopa
  • ncopa's picture
  • Offline
  • Last seen: 2 years 1 month ago
  • Joined: 2011-05-12

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)

Mon, 2013-06-24 22:11 (Reply to #2)
zipuppo
  • zipuppo's picture
  • Offline
  • Last seen: 4 years 7 months ago
  • Joined: 2013-06-21

Thank you very much ncopa! I'll try to test it as soon as possible!!

Giuseppe

Thu, 2013-06-27 16:08
zipuppo
  • zipuppo's picture
  • Offline
  • Last seen: 4 years 7 months ago
  • Joined: 2013-06-21

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

Sat, 2013-07-27 09:42 (Reply to #4)
pluto
  • pluto's picture
  • Offline
  • Last seen: 3 years 9 months ago
  • Joined: 2013-07-27

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?

Wed, 2013-07-31 10:04 (Reply to #5)
zipuppo
  • zipuppo's picture
  • Offline
  • Last seen: 4 years 7 months ago
  • Joined: 2013-06-21

You have to change apk repositories in /etc/apk/, remove the usb line and add apk testing repos

Ciao,

Giuseppe

Wed, 2013-08-14 13:31 (Reply to #6)
ncopa
  • ncopa's picture
  • Offline
  • Last seen: 2 years 1 month ago
  • Joined: 2011-05-12

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

Log in or register to post comments