btrfs 问题 Ubuntu Server 18.04.1 - 无法挂载

btrfs 问题 Ubuntu Server 18.04.1 - 无法挂载

我已经运行了 5 磁盘 btrfs raid 5 几个月了,它一直运行良好。昨天我可以访问存储 raid。

因此我通过 ssh 登录到机器并执行以下操作:

今天早上开始查看系统日志:

Sep 14 07:50:07 fileserver kernel: [12762.427074] BTRFS warning (device sdb): 'recovery' is deprecated, use 'usebackuproot' instead
Sep 14 07:50:07 fileserver kernel: [12762.427075] BTRFS info (device sdb): trying to use backup root at mount time
Sep 14 07:50:07 fileserver kernel: [12762.427077] BTRFS info (device sdb): disabling disk space caching
Sep 14 07:50:07 fileserver kernel: [12762.427079] BTRFS info (device sdb): force clearing of disk cache
Sep 14 07:50:07 fileserver kernel: [12762.427080] BTRFS info (device sdb): has skinny extents
Sep 14 07:50:07 fileserver kernel: [12762.427795] BTRFS error (device sdb): devid 4 uuid fe572622-b6f2-4d65-b661-813c78c6ccd4 is missing
Sep 14 07:50:07 fileserver kernel: [12762.427823] BTRFS error (device sdb): failed to read chunk tree: -2
Sep 14 07:50:07 fileserver kernel: [12762.473645] BTRFS error (device sdb): open_ctree failed

btrfs fi show
warning, device 4 is missing
Label: 'storagearray'  uuid: 51df26b3-dd33-8c8d-334e1342ca36
        Total devices 6 FS bytes used 839.18GiB
        devid    1 size 1.82TiB used 158.00GiB path /dev/sdd
        devid    2 size 1.82TiB used 158.00GiB path /dev/sde
        devid    3 size 1.82TiB used 158.00GiB path /dev/sdf
        devid    5 size 1.82TiB used 158.01GiB path /dev/sdg
        devid    6 size 1.82TiB used 59.00GiB path /dev/sdb
        *** Some devices missing

1 到 6 - 4 丢失了。但我只有 5 个磁盘……所以不知道它怎么会丢失。

当我尝试以降级方式安装它时,无论我选择哪个磁盘:

mount -t btrfs -o degraded /dev/sdd /mnt/btrfs/
mount: /mnt/btrfs: wrong fs type, bad option, bad superblock on /dev/sdX, 
missing codepage or helper program, or other error.

用 Google 搜索并在所有磁盘上运行:

btrfs rescue zero-log /dev/sdX

尝试安装时的结果与之前相同。

当我尝试平衡它时:

btrfs balance /dev/sdb
ERROR: not a btrfs filesystem: /dev/sdb
root@fileserver:~# btrfs fi show /dev/sdb
warning, device 4 is missing
Label: 'storagearray'  uuid: 51df26b3-dd33-4dd8-8c8d-334e1342ca36
        Total devices 6 FS bytes used 839.18GiB
        devid    1 size 1.82TiB used 158.00GiB path /dev/sdd
        devid    2 size 1.82TiB used 158.00GiB path /dev/sde
        devid    3 size 1.82TiB used 158.00GiB path /dev/sdf
        devid    5 size 1.82TiB used 158.01GiB path /dev/sdg
        devid    6 size 1.82TiB used 59.00GiB path /dev/sdb
        *** Some devices missing

我没有主意了……请帮我保存我的数据!

相关内容