降级的 zfs 池中数据丢失

降级的 zfs 池中数据丢失

这是我第一次尝试在 Proxmox 下手动创建 zfs 池。

我创建了一个包含 5 个驱动器(4 个 WD RED 1TB NAS 驱动器和 1 个旧的 1TB Seagate)的 raidz2 zfs 池。我还忘记指定 2 个备用驱动器,因此池中最终有 5 个驱动器。其中一个硬盘停止正常工作(有时显示为 FAULTED,有时显示为 UNAVAIL),池降级。

    NAME                                          STATE     READ WRITE CKSUM
    storage                                       DEGRADED     0     0     0
      raidz2-0                                    DEGRADED     0     0     0
        ata-ST31000524AS_9VPCK7DZ                 ONLINE       0     0     0
        ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J1AKT5C7  ONLINE       0     0     0
        ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J1AKTPZ9  ONLINE       0     0     0
        ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J2RS3EP8  ONLINE       0     0     0
        ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J2YX0L9Z  FAULTED      0     0     1  too many errors

我还创建了几个子目录,以便将数据与虚拟机分开(例如:/storage/share/iso。/storage/share/Movies...)

storage/share 将由 VM 通过 NFS 挂载和共享。storage/vmstorage 是存储 VM 的地方。

NAME                                  USED  AVAIL  REFER  MOUNTPOINT
storage                               415G  2.19T   170K  /storage
storage/repos                         170K  2.19T   170K  /storage/repos
storage/share                         400G  2.19T   397G  /storage/share       
storage/share/Backups                 170K  2.19T   170K  /storage/share/Backups
storage/share/BuildDrop               170K  2.19T   170K  /storage/share/BuildDrop
storage/share/Movies                  170K  2.19T   170K  /storage/share/Movies
storage/share/Software                170K  2.19T   170K  /storage/share/Software
storage/share/Tv Shows                170K  2.19T   170K  /storage/share/Tv Shows
storage/share/iso                    3.21G  2.19T  3.21G  /storage/share/iso
storage/vmstorage                    14.8G  2.19T   199K  /storage/vmstorage
storage/vmstorage/subvol-100-disk-1   850M  7.17G   850M  /storage/vmstorage/subvol-100-disk-1
storage/vmstorage/subvol-101-disk-1   894M  7.13G   894M  /storage/vmstorage/subvol-101-disk-1
storage/vmstorage/subvol-102-disk-1  1.06G  6.94G  1.06G  /storage/vmstorage/subvol-102-disk-1
storage/vmstorage/subvol-103-disk-1   667M  7.35G   667M  /storage/vmstorage/subvol-103-disk-1
storage/vmstorage/subvol-104-disk-1   460M  7.55G   460M  /storage/vmstorage/subvol-104-disk-1
storage/vmstorage/subvol-108-disk-0   795M  7.22G   795M  /storage/vmstorage/subvol-108-disk-0

我能够从网络访问共享文件夹并将其用作普通网络共享,没有任何问题,直到磁盘损坏。/storage/share/* 下的一些数据消失了。虚拟机很好。

即使在降级模式下数据是否仍然可以访问?

谢谢你的帮助 !

答案1

存储/共享数据集不知何故被卸载。再次安装 zfs 数据集即可解决问题!

相关内容