ZFS resilver stopped by Webmin.

オープン
#2,883 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
debian, linux
領域
backend, devops

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
HTML
スター
6.1k
フォーク
804
平均マージ
2日 9時間
マージ済み PR(30日)
21

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

webmin/webmin のほかの issue

webmin/webmin の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。