Hello. Thank you for the wip package!I have compiled it with no errors but when trying to load it, it throws an error related to writing to the grastate.dat file. The file is created but remains empty. Permissions are correctly set (660, mariadb user owned).
I don't know why it uses preallocation when working with a tiny file like this one.
230112 08:22:05 mysqld_safe Starting mariadbd daemon with databases from /var/db/mariadb 2023-01-12 8:22:06 0 [Note] WSREP: Loading provider /usr/pkg/lib/libgalera_smm.so initial position: 00000000-0000-0000-0000-000000000000:-1 2023-01-12 8:22:06 0 [Note] WSREP: wsrep_load(): loading provider library '/usr/pkg/lib/libgalera_smm.so' 2023-01-12 8:22:06 0 [Note] WSREP: wsrep_load(): Galera 4.13(rXXXX) by Codership Oy <info%codership.com@localhost> loaded successfully. 2023-01-12 8:22:06 0 [Note] WSREP: CRC-32C: using "slicing-by-8" algorithm. 2023-01-12 8:22:06 0 [Note] WSREP: Found saved state: 00000000-0000-0000-0000-000000000000:-1, safe_to_bootstrap: 1 2023-01-12 8:22:06 0 [ERROR] WSREP: File preallocation failed: 45 (Operation not supported) at /usr/pkgsrc/wip/galera/work/galera-release_26.4.13/galerautils/src/gu_fdesc.cpp:prealloc():251 2023-01-12 8:22:06 0 [ERROR] WSREP: Failed to create a new provider '/usr/pkg/lib/libgalera_smm.so' with options '': Failed to initialize wsrep provider
2023-01-12 8:22:06 0 [ERROR] WSREP: Failed to load provider 2023-01-12 8:22:06 0 [ERROR] Aborting On Wed, 11 Jan 2023, Thomas Klausner wrote:
Date: Wed, 11 Jan 2023 21:28:11 +0100 From: Thomas Klausner <wiz%NetBSD.org@localhost> To: xfalkenx%SDF.ORG@localhost Cc: pkgsrc-users%netbsd.org@localhost Subject: Re: MariaDB: Galera wsrep provider is missing On Wed, Jan 11, 2023 at 08:55:12PM +0100, Thomas Klausner wrote:On Wed, Jan 11, 2023 at 06:50:16PM +0000, xfalkenx%SDF.ORG@localhost wrote:I was trying to build a MariaDB multi-master replication cluster on NetBSD as I already did on Linux before but I have encountered a problem: Galera software is not available in pkgsrc.I've started a package for this in wip/galera and added some NetBSD support by just following FreeBSD where possible and writing some VM support where necessary.martin@ pointed out an API change in kqueue in NetBSD 10 to me. I've finished the package now. It just installs bin/garbd and lib/libgalera_smm.so. Is that enough for you to build mariadb with multi-master replication cluster support? Thomas
xfalkenx%sdf.org@localhost SDF Public Access UNIX System - https://sdf.org