Thursday, August 21, 2008

Solaris Insight

Hi Friends

Today I will be discussing Q&A on Solaris.

Q. What are the different phases in Solaris boot process?
Ans. Boot phases of Solaris Operating Environment are:
1.boot PROM
2.boot programs like bootblk,ufsboot
3.kernel initialization like loading modules
4. init phase

Q. Why we use / for mount any filesystem?
Ans. / represents the top most level of the OE directory hierarchy, therefore other sub directories have to be mounted under /

Q. What is diffrence between Process and Daemon?
Ans. A 'daemon' is a software process that runs in the background (continuously) and provides the service to client upon request. For example named is a daemon. When requested it will provide DNS service. Other examples are:
xinetd (it is a super-daemon, it is responsible for invoking other Internet servers when they are needed) inetd (same as xinetd, but with limited configuration options) sendmail/postfix (to send/route email) Apache/httpd (web server) 'server process' run runs one time, when called by a daemon. Once done it will stop. For example telnetd (in.telnetd) or ftpd called from xinetd/inetd daemon . By calling server process from daemon you can save the load and memory. Use a server process for small services such as ftpd, telnetd.

Q. What is Piping?
Ans. Piping: sending the output of a command to the input of another is called piping. A unix pipe provides a one-way flow of data.
example:
if a Unix users issues the command $who sort lpr then the Unix shell would create three processes with two pipes between them:
A pipe can be explicitly created in Unix using the pipe system call. Two file descriptors are returned--fildes[0] and fildes[1], and they are both open for reading and writing. A read from fildes[0] accesses the data written to fildes[1] on a first-in-first-out (FIFO) basis and a read from fildes[1] accesses the data written to fildes[0] also on a FIFO basis.
When a pipe is used in a Unix command line, the first process is assumed to be writing to stdout and the second is assumed to be reading from stdin. So, it is common practice to assign the pipe write device descriptor to stdout in the first process and assign the pipe read device descriptor to stdin in the second process. This is elaborated below in the discussion of multiple command pipelines.

Q. What file controls global variables for system wide values for the Bourne Shell?
Ans./etc/profile

Q. Partition sizes can be set manually or from what configuration?
Ans. /etc/format.dat
I will be sharing some more Q&A on Solaris on my next Write up.
Keep Reading
Cheers
Padhaku Einstein

No comments: