既インストールのLinuxをRAIDに移行
非RAIDシステムのRAID化 - CentOSで自宅サーバー構築
CentOS 5
稼働済みのHDDで後からRAIDを設定する - ログ日記
Debian squeeze (6) ★
Yoshiyuki O. Takahashi: debian インストール後に Software RAID を設定
debian 10.0.0
Linuxでmdadmを使ったソフトウェアRAIDの構築・管理メモ - nabeの雑記帳
software RAID 1 on Centos 7, EUFI running system – SvennD
CentOS 7 gpt UEFI ★
Step by Step: シングルHDDをRAID 1に変換; LVM on RAID編 (Fedora 20) | Netsphere Laboratories
Fedora 20 ★
How to set up software RAID 1 on a running system ( Incl UEFI boot mechanism ) - Newroco tech docs
インストール時にRAID構成にする
CentOS 7 with Mdadm Software RAID and UEFI Boot – terrydactyl10
CentOS7 UEFI
OpenStack Linux UEFI Software RAID - @//メモ
CentOS 7 UEFI
CentOS 7 UEFI Install on appliance with mirrored GPT partitions — Lucid Solutions
CentOS 7 UEFI
EFI
CentOS7でソフトウエアRAID1のHDDを交換したときのメモ - Qiita
efibootmgr
エントリの重複
[SOLVED] Double items in bios boot order page efi/uefi - Linux Mint Forums
How to delete duplicate bootloader from dual-boot setup? - Ask Ubuntu
パーティションのコピー
http://blog.nizyu.xyz/blog/partition_backup_restore/
sfdisk (MBR)
sfdisk でパーティション情報のコピー - うまいぼうぶろぐ
sdaのパーティション情報をsdbにコピー
sfdisk -d /dev/sda > sda.dump cat sda.dump sfdisk /dev/sdb < sda.dump
GRUB
grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet..
Hmm ... apparently this line was the clue:
grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet..
Previously I had installed btrfs directly on /dev/sda and /dev/sdb. That's why both of them had a FSTYPE and LABEL attached (as shown in lsblk).Solution: I have now wiped both /dev/sda and /dev/sdb with hdparm (Secure Erase). There is probably a better way to unset those flags ... but this worked for me.
以下のエラーが出る場合は
grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet..
# dd if=/dev/zero of=/dev/sdb seek=1 count=2047
を実行してブートセクタから第一パーテションまでを一度消去します.MBR(bios)でもESP(uefi)でも起動できるgrub2の設定方法 - pyopyopyo - Linuxとかプログラミングの覚え書き -