rathouse is for capsulv2 # Disk Stuff ### serial numbers ``` frontplate number | SSD serial number 0 | 19431D801189 1 | 22062712800355 2 | PHYF209106Y93P8EGN 3 | PHYF209300LX3P8EGN ``` use `smartctl -x /dev/sdb | grep Serial` to print serial numbers. ### raid setup #### setup ``` # raid setup for tank ``` # i left the chunk size default # also i chose near over far because # > mdadm cannot reshape arrays in far X layouts mdadm --create --verbose --level=10 --metadata=1.2 --raid- devices=2 --layout=n2 /dev/md/tank /dev/sda1 /dev/sdd1 mkfs.ext4 /dev/md/tank mount /dev/md/tank /tank ``` #### recovery if a disk is pulled from a running system, mdadm assumes the worst & disconnects it from the RAID permanently. > If the system had a way of knowing that the removal and restoration was intentional, it could automatically pick it up. But a software RAID has no such knowledge, so it assumes the worst and acts as if the disk or its connection has become unreliable for some reason, until told otherwise. to re-attach a disconnected disk, do this: ``` mdadm --manage /dev/md0 --add /dev/ ```