Find disk with Megacli
Find disk with megacli tool with SN of disk
megacli -PDList -aALL | grep -B 27 -A 18 'SN of disk'
Start lightsmegacli -pdlocate -start -physdrv[enclosure:slot] -a0
megacli -pdlocate -stop -physdrv[enclosure:slot] -a0
Find disk with megacli tool with SN of disk
megacli -PDList -aALL | grep -B 27 -A 18 'SN of disk'
Start lightsmegacli -pdlocate -start -physdrv[enclosure:slot] -a0
megacli -pdlocate -stop -physdrv[enclosure:slot] -a0
To create raid 1 in live linux system
parted -a optimal /dev/sdf
Place a flag gpt or mbrmklabel gpt
Create partitionsmkpart primary ext4 0% 100%
When installing archlinux on raid do not forget update hooks at filevim /etc/mkinitcpio.conf
update lineHOOKS="base udev autodetect block mdadm_udev filesystems usbinput fsck"
and update initramfsmkinitcpio -p linux
Check whether there are raid arrays on diskcat /proc/mdstat
mdadm --detail /dev/mdX
Shut down arraymdadm --stop /dev/md0
Scan all arrays and try to fix themmdadm --assemble --scan
after successful boot save raid configurationmdadm --detail --scan >> /etc/mdadm/mdadm.conf
And in the end generate new initramfs
cat /proc/mdstat
mdadm --misc --detail /dev/md0