ZFS resilver stopped by Webmin.

Aperta
#2,883 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
debian, linux
Ambito
backend, devops

Direzione di ricerca

Start with /usr/share/webmin/fdisk/fdisk-lib.pl and trace the periodic disk inventory call that runs parted /dev/sdX unit cyl print; compare it with the existing fdisk -l path selected by mode=fdisk. Reproduce the device-change notifications and ZFS pool reopen events described in the report, then verify the inventory no longer interrupts a resilver.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Webmin disk inventory repeatedly restarts ZFS resilvering

On Debian 12, using Webmin 2.670 and OpenZFS 2.1.11-1+deb12u1, a drive replacement in a three-disk RAIDZ1 pool repeatedly restarted its resilver approximately every five minutes, preventing progress beyond about 1%.

Tracing Webmin showed its periodic disk inventory executing parted /dev/sdX unit cyl print, generated by /usr/share/webmin/fdisk/fdisk-lib.pl. Running this command independently with Webmin stopped reproduced Linux block-device change events and fresh ioctl reopen entries in ZFS pool history.

During the affected replacement, these reopen operations were followed by device ONLINE/UNAVAIL transitions and scan aborted, restarting errors=0. Stopping Webmin allowed the resilver to complete.

Workaround: Set mode=fdisk in /etc/webmin/fdisk/config and restart Webmin. This selects the existing fdisk -l inventory code instead of parted. Direct testing of fdisk produced no reopen entries, and the periodic reopens ceased after restarting Webmin with this setting.

Could the periodic disk inventory avoid using parted in a way that generates device-change notifications, particularly while ZFS pools are resilvering?

Lingua principale
HTML
Stelle
6.1k
Fork
804
Merge medio
2g 9h
PR unite (30g)
21

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di webmin/webmin

Tutte le issue di webmin/webmin

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.