Solaris UNIX LUN Rescan With cfgadm Command

Posted on in Categories , , , last updated February 17, 2009

I know how to do LUN rescan under Linux using echo command. A reboot option (downtime) is not available for me. How do I rescan LUN under Solaris UNIX operating systems?

The cfgadm command provides configuration administration operations on dynamically reconfigurable hardware resources. Pass the -l option to Lists the state and condition of attachment points specified. Login as root and type the following command:
cfgadm -al
For further information read cfgadm and format command man page

Sun Solaris UNIX display list for loaded kenel device driver / modules

Posted on in Categories , , last updated August 20, 2007

Q. How do I display information about loaded kernel modules under Sun Solaris UNIX operating system?

A. You need to use modinfo command which is a trivial program to display information about the loaded modules. The format of the information is as follows:

Id Loadaddr Size Info Rev Module Name

where Id is the module ID, Loadaddr is the starting text address in hexadecimal, Size is the size of text, data, and bss in hexadecimal bytes, Info is module specific information, Rev is the revision of the loadable modules system, and Module Name is the filename and description of the module.

Task: Displaying the status of kernel modules

Just enter modinfo command:
You can pass -c option to modinfo command to display the number of instances of the module loaded and the module’s current state:
modinfo -c

Display information about particular module / driver only

You can also display information about particular module only by specifying its ID #:
modinfo -i 5
The above example displays the status of module # 5.

Read modinfo man page for other information and options.