Ubuntu Preseed Raid 1 具有多个分区

Ubuntu Preseed Raid 1 具有多个分区

我打算创建以下 RAID 1:

Partition   Size         Filesystem
    /       20GB            ext4
    /boot   500MB           ext4
    swap    2GB         swap
   /backup  10GB            ext4
   /opt     all free size   ext4 

我已经尝试过这种配置:

d-i partman-md/device_remove_md boolean true
d-i partman-auto/method string raid
d-i partman-auto/disk string /dev/sda /dev/sdb
d-i partman-auto/expert_recipe string \
      multiraid ::                                         \
              10000 5000 20000 raid                        \
                      $primary{ } method{ raid }           \
              .                                            \
              200 512 500 raid                             \
                      method{ raid }                       \
              .                                            \
              2000 512 4000 raid                           \
                      method{ raid }                       \
              .                                            \
              10000 512 15000 raid                         \
                      method{ raid }                       \
              .                                            \
              10000 10000 1000000000 raid                  \
                      method{ raid }                       \
              .

d-i partman-auto-raid/recipe string \
    1 2 0 ext4 /                    \
          /dev/sda1#/dev/sdb1       \
    .                               \
    1 2 0 ext4 /boot                \
          /dev/sda2#/dev/sdb2       \
    .                               \
    1 2 0 swap                      \
          /dev/sda3#/dev/sdb3       \
    .                               \
    1 2 0 ext4 /backup              \
          /dev/sda5#/dev/sdb5       \
    .                               \
    1 2 0 ext4 /opt                 \
          /dev/sda6#/dev/sdb6       \
    .


d-i mdadm/boot_degraded boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true

安装程序显示 RAID 配置错误并要求我检查系统日志文件。

你可以帮帮我吗?

谢谢!

相关内容