如何使 zpool 中的第二个磁盘可启动?

如何使 zpool 中的第二个磁盘可启动?

我有两个 M2 驱动器。旧驱动器似乎处于故障前模式,因此我正尝试将系统迁移到新的 M2 驱动器。我已在 M2 驱动器上成功创建了四个分区(启动、交换、bpool、rpool)。以下是我的驱动器的布局:

nvme0n1                                          rpool  /dev/nvme0n1   zfs_member
|-nvme0n1p1 68f4123e-f220-4ea3-8746-339e258a1f75        /dev/nvme0n1p1 vfat
|-nvme0n1p2 e692f860-5c8c-3f4a-816b-66a2d7e79ab5        /dev/nvme0n1p2 swap
|-nvme0n1p3 78355110-6778-1e4e-99d9-a4fc5710b98e bpool  /dev/nvme0n1p3 zfs_member
`-nvme0n1p4 9cc22f93-728b-5f49-91a7-baa51221c316 rpool  /dev/nvme0n1p4 zfs_member
nvme1n1                                                 /dev/nvme1n1   
|-nvme1n1p1 7b0882df-0a4c-4c3a-ac2b-7c82460d7115 EFI    /dev/nvme1n1p1 vfat
|-nvme1n1p2 6919f33c-901a-4f83-bdc7-6ede83ea5a5a        /dev/nvme1n1p2 swap
|-nvme1n1p3 d190dac1-dd2d-4c18-9089-f6c884f227c5 bpool  /dev/nvme1n1p3 zfs_member
`-nvme1n1p4 3399b10d-ecb6-402f-8aa2-2e503e92cb90 rpool  /dev/nvme1n1p4 zfs_member

以下是 的状态rpool

  pool: rpool
 state: ONLINE
  scan: resilvered 254G in 0 days 00:05:32 with 0 errors on Fri Nov 12 11:22:50 2021
config:

    NAME                                      STATE     READ WRITE CKSUM
    rpool                                     ONLINE       0     0     0
      mirror-0                                ONLINE       0     0     0
        9cc22f93-728b-5f49-91a7-baa51221c316  ONLINE       0     0     0
        3399b10d-ecb6-402f-8aa2-2e503e92cb90  ONLINE       0     0     0

errors: No known data errors

的现状bpool

  pool: rpool
 state: ONLINE
  scan: resilvered 254G in 0 days 00:05:32 with 0 errors on Fri Nov 12 11:22:50 2021
config:

    NAME                                      STATE     READ WRITE CKSUM
    rpool                                     ONLINE       0     0     0
      mirror-0                                ONLINE       0     0     0
        9cc22f93-728b-5f49-91a7-baa51221c316  ONLINE       0     0     0
        3399b10d-ecb6-402f-8aa2-2e503e92cb90  ONLINE       0     0     0

errors: No known data errors

nvme1我尝试重新启动并从启动菜单中选择第二个硬盘驱动器 ( )。但是,我收到一条消息,说这是一个无效的启动设备。我该如何从第二个驱动器启动,以便nvme1从池中移除原始驱动器 ( )?我尝试执行以下操作:

sudo mkdosfs -F 32 -s 1 -n EFI /dev/disk/nvme1n1p1
sudo grub-install /dev/nvme1n1p1

看起来这不起作用。有什么建议吗?

相关内容