I have often had o scan for new disks on Linux systems. Eg. when just adding a new disk, or when expanding an LVM volume, which also requires to add a new disk.
When the new disk has been added, ususally nothing happens. You need to scan for the new disk/disks in order to operate them. Theres a tool called rescan-scsi-bus.sh for doing this specific task, but sometimes you don’t have that, then you need to do it manually, and it’s actually not that difficult.
You then need to echo “- – -” to the scsi system. I have found a lot of different methods to do the same thing, a lot of them telling you to do something like: echo “- – -” >> /sys/class/scsi_host/hostxx/scan where xx can be anything, and sometimes theres a lot, so tyoing in all the different host numbers is not optimal. Then someone suggests a for loop, like: for i in $(/sys/class/scsi_host/hosts); do echo “- – -” /sys/class/scsi_host/host$i/scan; done
I have tried them all (I think) but in my opinion, the best and easiest solution is the one below, as it is pretty easy to remember:
echo "- - -" | sudo tee /sys/class/scsi_host/host*/scan
List your newly installed disk with lsblk and partition them with fdisk