We offen need to add or remove an scsi or a fiber channel attached disk under Linux. This is can be done easly (be carefull when removing a device: do not forgot to unmount all filesystems present on the device to be removed. Moreover, before reducing disk size, underlaying partitions' size must be reduced).

  • Rescan scsi device bus: echo 1 | sudo tee /sys/class/scsi_device/*/device/rescan

  • Rescan device gemeometry change : echo "- - -" | sudo tee /sys/class/scsi_host/host*/device/scsi_host/host*/scan