unreachable nfs causes high load

limone

Well-Known Member
Aug 1, 2017
89
9
48
30
Hi,

I have my local router connected to a proxmox installation via nfs (over vpn).
It's working, I noticed, when my router is down, and so the nfs storage isn't reachable on the proxmox server, the server load goes up from 0.05 (test server, no vm's running) to 1, and from 0.5 to 3.5 (low used server)

Is this a known issue, or someway I can fix this?
 
Hi,

I guess this is the reconnects from the NFS, what makes this load.
But to be sure you have to look which process makes this load.
 
I'm not entirely sure how to check this, I used 'ps -ax' and the only process with a 'D' is snmp.
I guess it's trying to read to information from that mounted drive, and that doesn't work and the load goes up.

On another server I had a script running every minute to remount the nfs storages, and I had no timeout built in, so the load went up to 200+ and then the server crashed (no ram left)
SNMP seems to have a timeout, but I'm not entirely sure about that, because the load keeps being constat.

#!/bin/bash
list=$(ls /mnt/pve)

for i in $list
do
status=$(timeout 10 ls /mnt/pve/$i 2>&1)

if [[ $status =~ .*Stale.* ]]
then
umount /mnt/pve/$i
fi
done

So, not a proxmox issue.. :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!