vxfend process consuming 100% CPU on CPS-based fencing cluster

book

Article ID: 1000766229

calendar_today

Updated On:

Description

The vxfend process (/sbin/vxfend -m cps -t 120) is observed consuming 100% CPU in the top command output on all cluster nodes. The process runs at real-time (RT) priority.

Environment:

  • InfoScale 8.0.2.2600

  • RHEL 8.10 (kernel 4.18.0-553.el8_10.x86_64)

  • VRTSvxfen modules running in compatibility mode (built for 4.18.0-513.5.1.el8_9.x86_64)

  • CPS-based customized fencing with 3 CP servers

  • CVM/CFS cluster configuration

Evidence from top command (shows real-time/current CPU usage):

 
 
 
top - 11:33:06 up 116 days, 19:58, 10 users, load average: 2.58, 3.07, 3.00 Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie %Cpu(s): 3.3 us, 50.0 sy, 0.0 ni, 46.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 15761.1 total, 950.9 free, 12832.7 used, 1977.5 buff/cache MiB Swap: 65536.0 total, 64836.7 free, 699.2 used. 2416.2 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 8136 root rt 0 27584 2216 1968 S 100.0 0.0 1069:02 vxfend

Evidence from ps -aux --sort=-pcpu (shows average CPU usage over process lifetime):

 
 
 
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 8136 0.6 0.0 27584 2216 ? Rs Apr03 1070:22 /sbin/vxfend -m cps -t 120

Note on the difference between top (100%) and ps (0.6%):

  • top shows current/real-time CPU usage at the moment of observation.

  • ps %CPU is calculated as (total CPU time / total elapsed wall-clock time) x 100.

  • In this case: 1070 minutes CPU / 167,040 minutes uptime (116 days) = 0.64%.

  • This confirms the process was NOT spinning since boot — the spin started at some point after initial startup.

Key observations from logs:

  • CPS registration completed successfully on all 3 CP servers
  • vxfenconfig -l shows all 3 coordination points with valid UUIDs

  • vxfen kernel threads [vxfen] continue CPS heartbeat communication even after vxfend is killed

  • System-wide %sys CPU is sustained at 50-62% due to the RT priority spin

Cause

The vxfend user-space daemon enters an unthrottled spin loop after successful CPS registration. Additional logs are required to investigate the issue which is mentioned below.

 

Resolution

Step 1: Collect diagnostic data (while vxfend is spinning — BEFORE any restart/reboot)

1a. Generate the process core dump using gcore:

 
 
 
gcore -o /tmp/vxfend_core <PID>

Note: If gcore is not installed, install it first:

 
 
 
yum install gdb -y

1b. Use vxgetcore to package the core with its binaries and libraries:

Once the core is generated in step 1a, use the below procedure to collect the complete bundle (core file + binary + shared libraries + debug symbols) needed by engineering for analysis:
vxgetcore log collection.

1c. Collect kernel and user-space stacks:

 
 
 
# Kernel stack — shows which syscall/IOCTL vxfend is stuck in cat /proc/<PID>/stack > /tmp/vxfend_kernel_stack.txt
# User-space stack — 5 samples, 10 seconds apart for i in 1 2 3 4 5; do echo "=== Sample $i ===" >> /tmp/vxfend_pstack.txt date >> /tmp/vxfend_pstack.txt pstack <PID> >> /tmp/vxfend_pstack.txt 2>&1 sleep 10 done

1d. Collect strace (30-second syscall trace):

 
 
 
strace -p <PID> -tt -f -o /tmp/vxfend_strace.out 1e. Collect vxfen runtime state:
 
 
 
vxfenconfig -l > /tmp/vxfenconfig_l.txt vxfenadm -d > /tmp/vxfenadm_d.txt 2>&1 cat /proc/vxfen/* > /tmp/proc_vxfen.txt 2>&1

1f. Collect full journalctl logs from both nodes:

 
 
 
journalctl --since "boot" > /tmp/journal_boot_nodeX.txt

Step 2: Kill and restart the vxfend process

 
 
 
# Verify vxfen kernel module is loaded and port b is active gabconfig -a | grep "Port b" # Kill the spinning vxfend process kill -9 <PID> # Verify vxfen kernel threads are still running (CPS communication continues) ps -ef | grep vxfen # Restart vxfend nohup /sbin/vxfend -m cps -t 120 & # Verify CPU usage is normal on the new process top -p <new_PID>

Step 3: Verify cluster state after restart

 
 
 
vxfenconfig -l vxfenadm -d gabconfig -a hastatus -sum

Step 4: Long-term fix

Need above requested logs to find the PCA and planning for a fix.


IMPORTANT NOTES:

  • Do NOT run vxfenconfig -U on a live CVM/CFS cluster — this unloads the fencing kernel module and removes split-brain protection.

  • Do NOT stop the vxfen service (systemctl stop vxfen) — same risk as above.

  • Do NOT reboot both nodes simultaneously — this will cause a full service outage.

  • Killing vxfend is safe because vxfen kernel threads continue CPS heartbeat communication. Only the fencing race-execution capability is briefly unavailable until vxfend is restarted.

  • If a split-brain occurs during the brief window when vxfend is not running, the node will self-fence (panic) — this is the expected safe outcome that prevents data corruption.

Issue/Introduction

The vxfend user-space daemon consumes 100% CPU at real-time (RT) priority on one or more cluster nodes configured with CPS-based fencing. The issue is observed on InfoScale 8.0.2 running on RHEL 8.10 kernel . CPS registration and heartbeat communication remain functional via kernel threads. Killing and restarting the vxfend process resolves the immediate symptom without impacting cluster fencing protection.