33800 Docs

← Retour

Proposition : Fix NFS Detection + Nettoyage Jellyfin

Date : 07/01/2026 21:45 Status : IMPLEMENTEE Priorite : HAUTE


Probleme 1 : Fausse alerte NFS Proxmox1

Diagnostic

Le dashboard affiche "NFS non monte" pour Proxmox1 alors que 2 montages NFS sont actifs :

192.168.1.4:/stock_36to/data  -> /stock_36to/data
10.10.10.10:/stock_8to        -> /mnt/stock_8to_speed

Cause racine

Ligne 249 de collect.sh cherche 192.168.1.10 mais les montages viennent de :

# Actuel (BUG)
PROXMOX1_NFS=$(ssh_cmd 192.168.1.155 "mount | grep -c '192.168.1.10' || echo 0")

Solution proposee

Compter tous les montages NFS4 (plus fiable) :

# Corrige
PROXMOX1_NFS=$(ssh_cmd 192.168.1.155 "mount -t nfs4 | wc -l")

Ou chercher plusieurs IPs :

PROXMOX1_NFS=$(ssh_cmd 192.168.1.155 "mount | grep -cE '192.168.1.(4|10)|10.10.10.10' || echo 0")

Probleme 2 : Disque Jellyfin plein a 94%

Diagnostic

/dev/sda1  29G  26G  1.9G  94%  /

Consommateurs principaux : | Chemin | Taille | |--------|--------| | /var/lib/jellyfin | 4.2 Go | | /var/log/journal | 2.9 Go | | /var/lib/containerd | 2.1 Go | | /home | 6.1 Go | | /usr | 6.2 Go |

Cause principale

Journal systemd non limite = 2.9 Go de logs !

Solutions proposees

1. Nettoyer le journal systemd (gain immediat ~2.5 Go)

# Garder seulement 7 jours de logs
sudo journalctl --vacuum-time=7d

# OU garder max 500 Mo
sudo journalctl --vacuum-size=500M

2. Limiter le journal systemd (permanent)

# /etc/systemd/journald.conf
[Journal]
SystemMaxUse=500M
SystemKeepFree=1G
MaxFileSec=1week

Puis : sudo systemctl restart systemd-journald

3. Nettoyer containerd/docker si non utilise

# Si Docker n'est pas utilise sur Jellyfin
sudo apt remove docker.io containerd
# Gain : ~3 Go

4. Deplacer les metadonnees Jellyfin sur NFS (optionnel)

Les metadonnees Jellyfin (4.2 Go) pourraient etre sur /mnt/stock_8to :

# Arreter Jellyfin
sudo systemctl stop jellyfin

# Deplacer les donnees
sudo mv /var/lib/jellyfin /mnt/stock_8to/33800-stack/jellyfin-data
sudo ln -s /mnt/stock_8to/33800-stack/jellyfin-data /var/lib/jellyfin

# Redemarrer
sudo systemctl start jellyfin

Actions proposees

Immediat (validation requise)

  1. [ ] Corriger ligne 249 de collect.sh (detection NFS)
  2. [ ] Nettoyer journal systemd Jellyfin (vacuum-time=7d)
  3. [ ] Configurer limite journal permanent (500M max)

Optionnel

  1. [ ] Supprimer docker/containerd si non utilise
  2. [ ] Deplacer donnees Jellyfin sur NFS

Impact attendu

Action Gain estime
Vacuum journal ~2.5 Go
Limite journal Previent remplissage
Suppr docker ~3 Go
Total possible ~5.5 Go

Disque apres : 26G - 5.5G = ~20.5G utilise (71% au lieu de 94%)


Fichiers impactes

Fichier Action
/stock_8to/33800-stack/monitoring/collect.sh Modifier ligne 249
jellyfin:/etc/systemd/journald.conf Modifier

En attente de validation