md raid hddのセットを別のPCへ取り付ける | how to attach md raid1 hdds to the other pc or server

  • PCへ取り付ける md raid1 の hdd のセットは /dev/sdb, /dev/sdc とする|attaching hdds are supposed to /dev/sdb and /dev/sdc
  • raid hdd の 確認 | confirm raid hdds status
sudo mdadm --examine --scan /dev/sdb /dev/sdc
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=801803f4:e4f4fc80:dbc3e415:986ba6cd
  • mdadm.conf へ追記 | write to mdadm.conf additionaly
sudo mdadm --examine --scan /dev/sdb /dev/sdc | sudo tee -a /etc/mdadm/mdadm.conf
  • mdadm.conf を読み込み | reload mdadm.conf
sudo mdadm --assemble --scan
  • raid 状態の確認|confirm the raid status
cat /proc/mdstat