Solved

Location of default kernel modules in Solaris

Posted on 2007-12-06
4
1,581 Views
Last Modified: 2013-12-27
Hello,

When I execute 'sysdef' command in solaris, I'm seeing a lot of information on kernel drivers which are loaded by default while system booting.
I would like to know from which location these default kernel modules are getting loaded. And what is the significance of having /etc/system file?

Thanks,
Ashok
0
Comment
Question by:rdashokraj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 25 total points
ID: 20425645
Hi,

Solaris kernel modular one and modules are loaded when needed or referenced, or they can be forced to load even if not referenced.

The /etc/system file is self explaining. The location of kernel modules is set by moddir. I have pasted the lines below from system file:

* moddir:
*
*       Set the search path for modules.  This has a format similar to the
*       csh path variable. If the module isn't found in the first directory
*       it tries the second and so on. The default is /kernel /usr/kernel
*
*       Example:
*               moddir: /kernel /usr/kernel /other/modules

To force a module load you use forceload.

* forceload:
*
*       Cause these modules to be loaded at boot time, (just before mounting
*       the root filesystem) rather than at first reference. Note that
*       forceload expects a filename which includes the directory. Also
*       note that loading a module does not necessarily imply that it will
*       be installed.
*
*       Example:
*               forceload: drv/foo
0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 25 total points
ID: 20425795
The actual kernel modules themselves are located under /kernel
0
 
LVL 16

Accepted Solution

by:
Hanno P.S. earned 75 total points
ID: 20426111
Solaris looks for kernel modules by default in the following directories:
  /kernel/drv
  /usr/kernel/drv
  /platform/`uname -m`/kernel/drv

To boot a standard Solaris system, you don't need a /etc/system at all.
If you want to modify the system behavior, you may add entries to /etc/system
0
 

Author Closing Comment

by:rdashokraj
ID: 31413349
Thanking you all for your inputs.
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question