Solaris UNIX LUN Rescan With cfgadm Command

www.lautt‮moc.iru‬
Solaris UNIX LUN Rescan With cfgadm Command

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.

Created Time:2017-10-30 14:27:19  Author:lautturi