I've been trying to cluster together two Packetfence 6.4 servers together and
have been getting nothing but trouble in my attempts. I'm following the
Clustering guide word for word but can't seem to get it to work. Everything
goes fine up until the point of finalizing the DRBD portion. When I create the
ext4 filesystem for /dev/drbd0 and then try to mount it at /var/lib/mysql as
per the guide, it mounts in read only mode. I cannot move my SQL files back
into the folder nor can I write anything to it. I've tried remounting the drive
as read-write but I get an error saying the drive is write protected.
I've found that a way around this problem is to instead make the /dev/drbd0
device as an ext3 filesystem. I can then move my SQL backup files back into the
mysql folder and restart the mariadb process. However, at this point everything
breaks on me. I can no longer access the admin gui for packetfence and I get
fatal errors in the logs saying "ERROR: Could not write namespace resource
::switches_list to L2 cache!" and "ERROR: Couldn't connect to MySQL database to
access L2. This is a major problem!"
When this first happened I figured it would all be fixed once I finish all the
steps in the cluster guide. But I've now done everything I'm supposed to in the
guide and it's still not working properly. The PCS cluster is set up, I can see
my master and slave server in the cluster and there are no errors when I run
"pcs status."
However I'm still not able to log into the admin gui anymore, it tells me I'm
using the wrong user name and password. I tried restarting the packetfence
service and now it won't start at all anymore. I've been working at this for
the past few days and have had no progress. Both servers are virtual machines
so I can revert to older snapshots and try everything in the guide multiple
times but each time I attempt to set up clustering everything goes wrong.
I'm convinced it has something to do with DRBD and mounting in the
/var/lib/mysql folder because that's the point where the errors start flowing
in. Any help would be appreciated.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users