無法導入池,因為使用不相容的版本進行格式化

無法導入池,因為使用不相容的版本進行格式化

我無法存取 Debian 上的 zfs 池,因為它說我的版本太舊:

root@Microknoppix:~# zpool import
  pool: WD_4TB
    id: 12726205736285302822
 state: UNAVAIL
status: The pool is formatted using an incompatible version.
action: The pool cannot be imported.  Access the pool on a system running newer
    software, or recreate the pool from backup.
   see: http://www.sun.com/msg/ZFS-8000-A5
config:

    WD_4TB                                                       UNAVAIL  newer version
      disk/by-id/ata-WDC_WD40EZRX-00SPEB0_WD-WCC4E0184707-part1  ONLINE

此外,提供的sun 連結已損壞。

我已經透過以下方式安裝了最新的 zfs-fuse:

root@Microknoppix:~# apt-cache madison zfs-fuse
  zfs-fuse |   0.7.0-12 | http://ftp.de.debian.org/debian/ testing/main i386 Packages
  zfs-fuse |   0.7.0-12 | http://ftp.de.debian.org/debian/ unstable/main i386 Packages
  zfs-fuse |    0.7.0-8 | http://ftp.de.debian.org/debian/ stable/main i386 Packages
root@Microknoppix:~# apt-get install zfs-fuse=0.7.0-12
root@Microknoppix:~# zfs upgrade
This system is currently running ZFS filesystem version 4.

但升級並沒有太大幫助。

如何存取我的池或如何將 zfs 升級到與上述池相容的最新版本?

答案1

在 Linux 上卸載 zfs-fuse 並安裝 ZFS:http://zfsonlinux.org,特別是對於 Debian:http://zfsonlinux.org/debian.html

上面連結中的說明非常簡單,但是,我遇到的一些警告沒有提及:

  • /etc/hostid 檔案不存在,導致 initramfs 映像建置失敗,修復很簡單:hostid > /etc/hostid 並選擇在此過程中進一步安裝維護者 /etc/hostid。

  • 確保安裝了建置必需的套件

  • 將 vmalloc 大小增加到至少 512M

相關內容