1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

preseed.cfgでraid設定

Last updated at Posted at 2018-05-16

preseed.cfgのUEFI環境RAID設定での備忘録です。
一見、冗長に見える項目も以下のように全て設定しないとセットアップに失敗します。

preseed_debian_raid.cfg
# == Partitioning =============================================================
  d-i partman-efi/non_efi_system boolean true
  d-i partman/confirm_nooverwrite boolean true
  d-i partman/confirm boolean true
  d-i partman/choose_partition select finish
  d-i partman-partitioning/confirm_write_new_label boolean true
  d-i partman-md/device_remove_md boolean true
  d-i partman-md/confirm boolean true
  d-i partman-lvm/device_remove_lvm boolean true
  d-i partman-lvm/confirm_nooverwrite boolean true
  d-i partman-lvm/confirm boolean true
  d-i mdadm/boot_degraded boolean true
# -- raid / uefi / lvm / hdd * 4 ----------------------------------------------
  d-i partman-auto/method string raid
  d-i partman-auto/disk string /dev/sda /dev/sdb /dev/sdc /dev/sdd
# -----------------------------------------------------------------------------
  d-i partman-auto/expert_recipe string multiraid :: \
      256 1 1024 fat32 $gptonly{ } $primary{ } $lvmignore{ } method{ efi }    format{ } . \
      256 2 1024 raid              $primary{ } $lvmignore{ } method{ raid } . \
      512 3   -1 raid              $primary{ } $lvmignore{ } method{ raid } . \
     100% 4 300% linux-swap  $defaultignore{ } $lvmok{ }     method{ swap }   format{ } lv_name{ swap } . \
    20480 5   -1 ext4        $defaultignore{ } $lvmok{ }     method{ format } format{ } lv_name{ root } use_filesystem{ } filesystem{ ext4 } mountpoint{ / } . 
# -----------------------------------------------------------------------------
  d-i partman-auto-raid/recipe string \
    1 4 0 ext4 /boot /dev/sda2#/dev/sdb2#/dev/sdc2#/dev/sdd2 . \
    5 4 0 lvm  -     /dev/sda3#/dev/sdb3#/dev/sdc3#/dev/sdd3 .
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?