On Solaris, you can use the cfgadm
command to scan for new or removed devices, including logical unit numbers (LUNs) on Fibre Channel (FC) or SCSI devices.
To scan for new or removed LUNs on a FC device, use the following command:
cfgadm -al
This command will list all the FC devices and their associated LUNs.
To scan for new or removed LUNs on a SCSI device, use the following command:
cfgadm -c configure cX
Replace X
with the SCSI controller number. This command will scan for new or removed LUNs on the specified SCSI controller.
You can also use the cfgadm
command to rescan for new or removed devices by specifying the -r
flag:
cfgadm -r -c configure cX
This will rescan the specified SCSI controller for new or removed devices.
Note: These commands require root privileges to execute.