[Debian-ha-maintainers] debian patches for resource-agents portblock and ganesha_mon

Jim At Your Service jimays at theidsp.net
Wed Apr 24 10:08:02 BST 2024


GREETINGS DEBIAN HA MAINTAINERS, 

I EXTRACTED YOUR LIST EMAIL ADDRESS FROM
HTTPS://TRACKER.DEBIAN.ORG/PKG/RESOURCE-AGENTS. 

Gratitude to you! We successfully now have a live high-availability
drive nfs-ganesha over glusterfs over zfs!
There were a couple of patches required to make things correct on debian
12. 

I am not sure of your procedures for submitting patches,
but here they are in raw form. I made patches to:

/usr/lib/ocf/resource.d/heartbeat/ganesha_mon

and 

/USR/LIB/OCF/RESOURCE.D/HEARTBEAT/PORTBLOCK 

WONDERING HOW YOU WOULD LIKE ME TO PROCEED. 

THANKS FOR THE BEST DISK DRIVE WE EVER HAVE HAD. 

JIM 

P.S. HERE IS THE INFO IN RAW FORM: 

vi /usr/lib/ocf/resource.d/heartbeat/ganesha_mon
        # 13.0.11.7.10-t6 jimays debian
        # local pid_file="/var/run/ganesha.pid"
        local pid_file="/run/ganesha/ganesha.pid"

vi /usr/lib/ocf/resource.d/heartbeat/portblock
        active_grep_pat()
        {
          # 13.0.11.9.2-t12 jimays according to chat gpt...
          # In Red Hat-based distributions like CentOS and Fedora, the
iptables -n -L command displays the protocol
          # as names like tcp, udp, or icmp, representing TCP, UDP, and
ICMP protocols respectively.
          # However, in Debian-based distributions like Debian itself
and Ubuntu, the iptables -n -L command displays
          # the protocol as numbers. For example, 6 represents TCP, 17
represents UDP, and 1 represents ICMP.
          if [ "$1" = "tcp" ]; then
             prot=6
          elif [ "$1" = "udp" ]; then
             prot=17
          else
             prot=x
          fi
          w="[  ][      ]*"
          any="0\\.0\\.0\\.0/0"
          src=$any dst=$3
          if [ "$4" = "s" ]; then
            local src=$3
            local dst=$any
          fi
          # echo
"^DROP${w}${1}${w}--${w}${src}${w}${dst}${w}multiport${w}${4}ports${w}${2}$"
          echo
"^DROP${w}${prot}${w}--${w}${src}${w}${dst}${w}multiport${w}${4}ports${w}${2}$"
        }

        tickle_remote()
        {
                [ -z "$OCF_RESKEY_tickle_dir" ] && return
                # 13.0.11.9.1-t11 jimays "NOTE: net.ipv4.tcp_tw_recycle
has been removed from Linux in 4.12."
                # gratitude
https://stackoverflow.com/questions/6426253/tcp-tw-reuse-vs-tcp-tw-recycle-which-to-use-or-both
                # gratitude
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4396e46187ca5070219b81773c4e65088dac50cc
                # echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle
                f=$OCF_RESKEY_tickle_dir/$OCF_RESKEY_ip
                [ -r $f ] || return
                $TICKLETCP -n 3 < $f
        }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-ha-maintainers/attachments/20240424/e13742d0/attachment.htm>


More information about the Debian-ha-maintainers mailing list