Reboot with disk
- Shutdown the system.
- Insert the previous boot-disk again.
- Boot the system.
Partition the (former boot) disk
Make partitions
Now make the partitions on this disk as computed before,
but postponed because it was the boot-disk until now.
Use fdisk again to do so.
Do not forget to remove the active (boot) flag.
Shutdown and reboot to use the new partition table.
Add the (free) disk to the mirrors
- For every partition there must be an equally sized partition
on one of the other disks. Check with fdisk -l.
- mdadm --create /dev/md? --level=1 --raid-devices=2 --assume-clean /dev/sd?? /dev/sd??
Add both /dev/sd?? partitions into the mirrord partition /dev/md?.
- pvcreate /dev/md? initialise the mirror disk for the volume group
- vgextend all_disks /dev/md? add the mirror disk to the volume group
- update_mdadm.cfg save the mdadm configuration also in a file
- grub-mkdevicemap saves the current mdadm configuration in /etc/mdadm/mdadm.conf
- update_initramfs saves this file in the compressed initial boot-ram-filesystrem.