当安装 btrfs 设备时很容易知道是否是 raid
btrfs filesystem df /
在这种情况下,fs 无法挂载,可能是一个 raid
sudo mount /dev/sdc2 /mnt/
mount: /mnt: mount(2) system call failed: No such file or directory.
dmesg 说
[ven nov 10 18:00:10 2023] BTRFS error (device sdc2): devid 1 uuid bf113911-2436-4976-a590-6b14c16445e0 is missing
[ven nov 10 18:00:10 2023] BTRFS error (device sdc2): failed to read the system array: -2
[ven nov 10 18:00:10 2023] BTRFS error (device sdc2): open_ctree failed
mount 和 degraded 不起作用,所以可能是 raid5 或 6,如何知道配置?
btrfs 设备统计失败
btrfs device stats /dev/sdc2
ERROR: '/dev/sdc2' is not a mounted btrfs device
这些命令失败了
btrfs inspect-internal dump-tree /dev/sdc2
btrfs property get /dev/sdc2