Created attachment 241282 [details] git diff for fence-agents version 4.12.1 This is a patch to add new port fence-agents to the latest version 4.12.1 (Tested ok on a custom poudriere repo on FreeBSD CURRENT) A lot of these agents have Linuxism and have to be adapted, but the same problem exists for resource-agents so I think it is ok to have this as a base. We can add patches later to modify the more used fencing agents to work out of the box on FreeBSD. One side-note I observed when using fence-scsi : It would seem that on FreeBSD devices like /dev/da0 are not detected as block devices by Python, but instead are detected as character devices, this seems weird.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8ab3666e9a903031a556ecaa3f2514169143d94d commit 8ab3666e9a903031a556ecaa3f2514169143d94d Author: Florian Millet <florian.millet@ovhcloud.com> AuthorDate: 2023-04-03 13:20:11 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2023-04-03 13:24:36 +0000 net-mgmt/fence-agents: new port Fence agents were developed as device "drivers" which are able to prevent computers from destroying data on shared storage. Their aim is to isolate a corrupted computer, using one of three methods: - Power - A computer that is switched off cannot corrupt data, but it is important to not do a "soft-reboot" as we won't know if this is possible. This also works for virtual machines when the fence device is a hypervisor. - Network - Switches can prevent routing to a given computer, so even if a computer is powered on it won't be able to harm the data. - Configuration - Fibre-channel switches or SCSI devices allow us to limit who can write to managed disks. This is used by the Pacemaker cluster resource management. Note: A lot of these agents have Linuxism and have to be adapted, they will be patched later to work out of the box on FreeBSD. PR: 270623 Sponsored by: OVHcloud net-mgmt/Makefile | 1 + net-mgmt/fence-agents/Makefile (new) | 35 +++++++ net-mgmt/fence-agents/distinfo (new) | 3 + net-mgmt/fence-agents/pkg-descr (new) | 13 +++ net-mgmt/fence-agents/pkg-plist (new) | 184 ++++++++++++++++++++++++++++++++++ 5 files changed, 236 insertions(+)
Thank you for the merge